KeyError crash recipe (please test)

Matt Mackall mpm at selenic.com
Sat Jun 11 18:16:37 UTC 2005


On Sat, Jun 11, 2005 at 08:02:26PM +0200, Thomas Arendsen Hein wrote:
> * Andrew Thompson <andrewkt at aktzero.com> [20050611 17:52]:
> > I believe I am running a clean copy of hg. This recipe raises a KeyError 
> > for me. Can someone please verify that it is reproducable?
> > 
> > mkdir aa
> > cd aa
> > hg init <some repo>
> > hg pull <some other repo>
> > hg undo
> > hg status
> 
> Confirmed.
> 
> > I get a slightly different Key Error if I leave out the pull. (This is 
> > probably closer to the root of the error, I just didn't catch it that way.)
> > 
> > mkdir aa
> > cd aa
> > hg init <some repo>
> > hg undo
> > hg status
> 
> Confirmed, too.

The undo was resulting in dirstate being an empty file, which was
making the dirstate code think parents were the empty string. Fixed.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list