[patch] syntax:plain for .hgignore

Guido Ostkamp hg at ostkamp.fastmail.fm
Wed Sep 12 13:46:13 CDT 2007


On Tue, 11 Sep 2007, Jonathan S. Shapiro wrote:
>>> Without seeing your .hgignore file, I can only speculate, but here is 
>>> my suspicion about it: (1) the .hgignore entries have many long common 
>>> prefixes, such as:
>>>
>>>    foo/bar/baz/bletch/file1.c
>>>    foo/bar/baz/bletch/file2.c
>>
>> For the 'style: plain' like patterns, we have the following 
>> distribution of entries (all with full pathname):
>
> Unfortunately those stats do not tell me what I was trying to find out. 
> Let me ask it differently: on those longer paths, do they mainly differ 
> at the end of the path? I suspect the answer is yes (this is also true 
> in our tree).

sorry for the late reply. Yes, the pathes mainly differ at the end. Most 
of them have the same first ~15 characters (hierarchical directory 
structure from top of tree) then they split up into different 
subdirectories and files. Some filenames (without dirname) may be 
identical (e.g. "Makefile" or so), but I cannot exclude them in general by 
patterns, because some Makefile are not generated and thus maintained by 
Mercurial.

In order to do regular simple string comparison, we of course need the 
full pathes.

Regards

Guido


More information about the Mercurial-devel mailing list