hgignore or other tricks to not cross mount points?

Matt Mackall mpm at selenic.com
Fri Jul 17 13:42:19 CDT 2009


On Fri, 2009-07-17 at 13:26 -0500, Mike Gerdts wrote:
> I've found mercurial to be rather handy for keeping track of config
> file changes on unix boxes.  Ideally all config files should be under
> /etc, but it doesn't always work out that way.  This suggests the need
> for rooting the repository at /.  This in itself works fine, but it is
> rather tedious to maintain /.hgignore to exclude any place that
> someone may mount up an NFS file system, loopback mount, or some sort
> of removable disk.
> 
> Are there any tricks available to make it so that "hg status", "hg
> addremove", etc. do not cross mount points?  Alternatively, is there a
> mechanism with .hgignore to ignore all but a certain set of
> directories?

The usual trick is to ignore all and add only what you want.

Another possibility is to move all the interesting files under /etc and
use symlinks.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial mailing list