[patch] syntax:plain for .hgignore

Guido Ostkamp hg at ostkamp.fastmail.fm
Wed Sep 5 17:28:23 CDT 2007


Hello,

>>> Can't you reuse the path:/relpath: from the pattern (just map plain to 
>>> path)
>>
>> can you please explain what you mean? I'm not sure I understand the 
>> comment.
>
> what I mean is that plain: looks very similar to 'path:'. So I
> think the patch could be done in 2 parts:
> 1) speed up path (putting them in a a dict and check for existence,
> instead of compiling a regexp)
> 2) add a 'plain:' syntax to hgignore which will map to 'path:'.
>
> I hope it clarifies, sorry if I misread the patch, I only overlooked it.

currently the 'man hgignore' does not mention any valid syntax except the 
"style: regexp" and "style:glob" followed by entries belonging to them.

Are you saying that in the already existing Mercurial version in the file 
'.hgignore' you can prefix a single entry with 'path:' like in 'path: 
<somepath>/mybinary' for a single entry despite of the 'style' definition 
part this is be belonging to?

Regards,

Guido


More information about the Mercurial-devel mailing list