[PATCH 0 of 2] The ui.ignore config option, one more time

Thomas Arendsen Hein thomas at intevation.de
Wed Sep 18 06:12:21 CDT 2013


* Laurens Holst <laurens.nospam at grauw.nl> [20130918 12:07]:
> Op 12-09-13 00:29, Isaac Jurado schreef:
> >This is another attempt to change the behaviour of ui.ignore.*
> >configuration option to a more useful one.
> >
> >The idea is to leave absolute paths as they are, but interpret relative
> >paths from the repository root instead of the current working directory.
> >Specially since the latter can be emulated with something like:
> >
> >     [ui]
> >     ignore = $PWD/custom-ignore
> 
> IMO it should be relative to the configuration file in which it is
> specified.

Instinctively I would have assumed that they are relative to the
repo root, so something like this in ~/.hgrc would be possible:

  [ui]
  ignore = .hg/localignore

> (See previous discussions.)

But reading this previous discussions I am no in favour of reading
it relative to the config file to match the behaviour of %include,
even if this differs from the behaviour of [paths].

Regards,
Thomas

-- 
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


More information about the Mercurial-devel mailing list