Proposed Patch to hgignore

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Thu Mar 6 13:42:42 CST 2008


On Thu, Mar 6, 2008 at 10:57 AM,  <pistazienfresser at web.de> wrote:
> Hello.
>
>  I would like to propose an addition to the syntax of the .hgignore file,
>  namely, the possibility to _not_ ignore files matching a wildcard or regular
>  expression.
>
>  This change is similar to the .gitignore semantics, and is very helpful for
>  example to track changes to varios dotfiles.
>
>  one would use for example
>
>  syntax: glob
>  *
>  !^.bashrc
>  !^.emacs
>  !^.emacs.d/*
>  !^.muttrc
>
>  to only track .bashrc, .muttrc, .emacs and everything below .emacs.d
>
>  Implementing this behaviour with the current syntax might be possible but would
>  involve complicated regular expressions.

+1 on the feature.


More information about the Mercurial-devel mailing list