hg status not showing empty dirs out of dirstate

Bryan O'Sullivan bos at serpentine.com
Fri Jun 16 14:05:21 UTC 2006


On Fri, 2006-06-16 at 08:00 +0200, Andrea Arcangeli wrote:

> My only argument is that the most common case when you run 'hg status'
> without arguments is to see what garbage has been left around.

That may be true for you, but it's not for me :-)

> > Since dc is often a copy of the entire dirstate map, this is something
> > like O(n**2) in behaviour.

> Yes math speaking but in practice the number of directories is much
> smaller than the number of files so it normally doesn't hurt, but I
> agree to improve it.

Actually, dc is a dict containing (at the beginning) every file
Mercurial knows about.  Track 135,000 files and it will have 135,000
entries, which it will iterate over every trip through the loop.  Not
just a theoretical consideration, then :-)

	<b




More information about the Mercurial mailing list