Crash in 1.0.2: "TypeError: b2a_hex() argument 1 must be string ..."

Patrick Mézard pmezard at gmail.com
Sun Jan 11 13:32:35 UTC 2009


Greg Ward a écrit :
> I'm getting a crash + corrupt repository renaming a file with MQ under
> hg 1.0.2.  From that description, this sounds a *lot* like
> http://www.selenic.com/mercurial/bts/issue1152 ("mq corrupts dirstate on
> file rename"), which was deemed a duplicate of 1175 and fixed in 1.0.2.
> 
> But 1) I'm running 1.0.2 and 2) the error I'm getting is a TypeError at
> mercurial/localrepo.py:742, not a KeyError at mercurial/localrepo.py:712.
> 
> Here's a simple reproduction:
> 
>   $ hg init renametest
>   $ cd renametest
>   $ hg qinit
>   $ hg qnew patch1
>   $ touch foo
>   $ hg add foo
>   $ hg qref
>   $ hg mv foo newfoo
>   $ hg qref

Looks like issue 1441, should be fixed in crew-stable by:

    http://hg.intevation.org/mercurial/crew-stable/rev/5f7e3f17aece

--
Patrick Mézard



More information about the Mercurial mailing list