.hgignore in subfolders
Matt Mackall
mpm at selenic.com
Tue Aug 11 18:59:17 UTC 2015
On Tue, 2015-08-11 at 11:29 -0700, Gregory Szorc wrote:
> On Tue, Aug 11, 2015 at 10:50 AM, Matt Mackall <mpm at selenic.com> wrote:
>
> > On Tue, 2015-08-11 at 11:06 +0000, Harry . wrote:
> > > Why is .hgignore in subfolders ignored (unless specifically included by
> > the top-level .hgignore)?
> >
> > Two reasons. First, there is a substantial cost to trying to open a file
> > in every directory on a large project. Second, we can build an optimized
> > regular expression matcher if we have all the data at the beginning, but
> > not if we load it incrementally.
>
>
> Could we not maintain a cache of known .hgignore files?
Nope. The hard part is not files that go missing, it's files that appear
without anyone telling you. The ones that users just created moments
before running hg status to check if it's working. You can't find those
without looking everywhere for them every time.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list