How should dirstate.invalidate() interact with commands.debugstate(...) ?

Matt Mackall mpm at selenic.com
Tue Oct 25 12:33:55 CDT 2011


On Tue, 2011-10-25 at 19:15 +0200, Peer Stritzinger wrote:
> When I look at the code of debugstate and dirstate.invalidate I would
> expect the debugstate after the invalidate to be empty.  However it
> isn't.
> 
> How can this be?

The dirstate member of localrepo is recreated/reloaded on its next use
by calling this method:

http://www.selenic.com/hg/file/c1930992e111/mercurial/localrepo.py#l186

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list