Proposed Patch to hgignore

Brendan Cully brendan at
Thu Mar 6 20:14:32 CST 2008

On Thursday, 06 March 2008 at 17:46, Matt Mackall wrote:
> On Thu, Mar 06, 2008 at 03:52:07PM -0800, Brendan Cully wrote:
> > I lean a
> > bit towards an ignore set and an unignore myself, where unignore takes
> > precedence (so in your ignore foo/, unignore bar.c case, foo/bar.c
> > would not be ignored). Maybe it's less intuitive, but I think in
> > practice it can sometimes make a proper .hgignore much shorter, and
> > shorter means less bugs, right? :)
> So how does it work? You can't guess there's a bar.c file in foo/
> without traversing foo/. So does it look at all the files in the repo? I
> think that's a complete non-starter and I'm sure many people with
> large repos will agree.

You're right, I hadn't thought it through. None of the alternatives I
can currently think of for dealing with that are very attractive.

More information about the Mercurial-devel mailing list