hg status slow

Bryan O'Sullivan bos at serpentine.com
Sun Sep 18 16:00:24 CDT 2005


On Sat, 2005-09-17 at 22:56 -0700, Bryan O'Sullivan wrote:

> I don't think this will be difficult to fix.

It won't be as trivial as I thought, either.

The walk code copies the manifest (files that Mercurial already knows it
manages), then goes through the filesystem, deleting each file it finds
that's in the manifest.  What's left in the manifest after this is files
that are known to Mercurial, but don't exist in the filesystem.

Now that we don't walk directories that show up in the .hgignore file,
the logic needs to become a little more complicated.  Files that are in
the manifest but matched by .hgignore still need to be walked, unless an
earlier attempt to walk them failed or they've been eliminated from
consideration by -I or -X or such.

Subtle stuff.

	<b



More information about the Mercurial mailing list