[PATCH 3 of 3] use per-directory clustered stat calls even in cases where known tree is walked

Matt Mackall mpm at selenic.com
Tue Oct 14 13:43:04 CDT 2008


On Tue, 2008-10-14 at 17:34 +0200, Benoit Boissinot wrote:
> On Mon, Oct 6, 2008 at 12:59 PM, Petr Kodl <petrkodl at gmail.com> wrote:
> >>
> >> Wouldn't it be cleaner to call normpath on those filenames ?
> >
> > normcase is probably what you want in this case. I submitted a patch based
> > on Benoit's suggestions a while ago, but here it is again - just in case .
> > It is reasonably clean except for one thing - the error handling of errors
> > coming from os.listdir - result of some incompatibilities in Python versions
> 
> Matt, do you have any objection to this patch ? conceptual or anything else ?
> 
> It really helps windows for big trees.

I'm a little worried that it's going to make things worse on Unix when
doing diff with widely-scattered changes. But only a little worried.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list