[PATCH] handle relative paths for hgrc's ignore files

Martin Geisler mg at aragost.com
Wed Jun 2 07:39:26 CDT 2010


Greg Ward <greg-hg at gerg.ca> writes:

> On Tue, Jun 1, 2010 at 1:17 PM, Roger Pate <roger at qxxy.com> wrote:
>> # HG changeset patch
>> # User Roger Pate <roger at qxxy.com>
>> # Date 1275411353 14400
>> # Node ID abcaddaadfc893794166c9d4dcd7a8c0d5238e82
>> # Parent  c61442f6d106ae2b91672898715e0fee26eeb54d
>> handle relative paths for hgrc's ignore files
>
> So... what does everyone else feel?  I think the options are:
>
> 1) status quo: ui.ignore is relative to current dir, meaning only
> absolute paths are useful
> 2) Roger's idea: ui.ignore is relative to repo root, meaning a
> ui.ignore setting in ~/.hgrc means different things in different
> places
> 3) my idea: ui.ignore is relative to the config file, making the
> implementation harder

The %include directive already works relative to the config file it is
used in and that is what I would expect of the ignore path too.

-- 
Martin Geisler

aragost Trifork
Professional Mercurial support
http://aragost.com/mercurial/


More information about the Mercurial-devel mailing list