[issue166] Add per-user hgignore
Bryan O'Sullivan
bos at serpentine.com
Thu Mar 16 15:54:57 UTC 2006
On Thu, 2006-03-16 at 16:29 +0100, Thomas Arendsen Hein wrote:
> Ah, nice idea, so I can have my collection of ignore files (If I
> really want to have such things) and put them in /etc/mercurial,
> $HOME, .hg/hgignore, just as I want.
>
> +1 on that!
Yay!
> Should ignore paths be relative to the working dir or .hg dir?
Well, we should probably have a uniform way of working with all paths in
the hgrc file, so that we don't have special cases or arbitrary
behaviour.
What I'd suggest is that all paths be absolute by default, and that
there be predefined default keys that can be used when interpolating
paths:
* "%(home)s" for the user's home directory.
* "%(repo)s" for the root of the current repository. Make this
either empty or /tmp if hg is run outside a repo, so we don't
get interpolation exceptions from the ConfigParser.
* "%(prefix)s" for the root of the hg install directory. For
example, if hg is in /usr/local/bin, prefix is /usr/local. As a
special case, prefix is / if hg is in /usr/bin.
This seems nice and clean to me.
<b
More information about the Mercurial
mailing list