hgignore or other tricks to not cross mount points?
Mike Meyer
mwm at mired.org
Fri Jul 17 22:58:52 UTC 2009
On Fri, 17 Jul 2009 13:26:24 -0500
Mike Gerdts <mgerdts at gmail.com> 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?
[Not quite what you asked, but vaguely on topic.]
Personally, I prefer perforce for this. You can map or not map pretty
much files between the repo and the workspace pretty much any way you
want. That all that information - as well as the repo - is on a server
means you don't have to worry about restoring it. I also add any data
files for the box (web server pages/scripts, etc.). Restoring a system
amounts to doing an install, installing the p4 binary, and running an
"p4 sync -f" to restore the config & data files.
<mike
--
Mike Meyer <mwm at mired.org> http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the Mercurial
mailing list