hg local ignore

This is what I was looking for.

Add the following to the repo’s .hg/hgrc:

ignore = /path/to/repo/.hg/hgignore

and create a new file .hg/hgignore beside it. This new file will be
untracked, but work the same as the versioned .hgignore file for this
specific working copy. (The /path/to/repo bit is unfortunate but
necessary to make it work when invoking ‘hg’ from within a subdir of
the repo.)

Leave a Comment