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

Matt Mackall mpm at selenic.com
Wed Jun 2 10:16:31 CDT 2010


On Wed, 2010-06-02 at 14:39 +0200, Martin Geisler wrote:
> 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.

Yes, this is the right thing to do.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list