[PATCH] Allowing multiple project-specific .hgignore files

Daniel Holth dholth at fastmail.fm
Mon Apr 30 03:51:51 UTC 2007


On Mon, 30 Apr 2007 11:41:56 +0800, "Tim Post"
<tim.post at netkinetics.net> said:
> On Sun, 2007-04-29 at 21:05 -0500, Matt Mackall wrote:
> > [reply-to set to mercurial-devel, where such things go now]
> > 
> > On Mon, Apr 30, 2007 at 10:43:28AM +1000, Stuart wrote:
> > > Hey,
> > > 
> > > I've created a patch which allows .hgignore to be either a file (in the
> > > current style) or a directory containing multiple files, all of which
> > > are parsed for ignore patterns.
> > 
> > That's kind of neat.
> > 
> > It could also be done by adding an include: syntax to .hgignore, which
> > might be more flexible and simpler?
> 
> I'd be inclined to leave it as a directory. What .hgignore is (file or
> directory) could be meaningful, too, for other scripts that run and
> manage nightly builds.
> 
> Just a thought, either way is very useful :)
> 
> Best,
> --Tim
> 
> 
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
I would be suspicious that too many things expect .hgignore to be a
file, although vim is certainly graceful about directories. How about
.hgignore.d? I think I like the include syntax best though.
e.g.: include: .hgignore.d/*



More information about the Mercurial-devel mailing list