Adding globs to .hgignore
Thomas Arendsen Hein
thomas at intevation.de
Tue Jan 9 20:59:12 UTC 2007
* Steve Borho <steve at borho.org> [20070109 18:24]:
> The problem I'm running into is that there's no real straightforward way
> to add these new masks to .hgignore because of the way it's parsed
> (it's context sensitive based on the last 'syntax:' line it has seen). I'm
> looking for suggestions on the best way to implement this.
>
> One possible idea is to keep a section of the .hgignore file for my purposes:
>
> # Ignore masks added by Qct
> syntax: glob
> *.z
> # end of Qct supplied masks
>
> Another is to simply add 'syntax: glob *.z' for each mask I add.
Search for "syntax: glob", if not found, add at the end.
Insert your pattern after this line.
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list