bug in localrepository.status due to r6769 + fix

Patrick Mézard pmezard at gmail.com
Sun Jul 20 13:04:00 CDT 2008


Christian Boos a écrit :
> Hi list,
> 
> I've upgraded my Mercurial to tip today, and I just noticed that 'hg
> qdiff <file>' died horribly:
> 
> ...
>  File "C:\Program
> Files\ActiveState\Python-2.5\Lib\site-packages\mercurial\localrepo.py",
> line 1002, in status
>    mf1 = mfmatches(ctx1)
>  File "C:\Program
> Files\ActiveState\Python-2.5\Lib\site-packages\mercurial\localrepo.py",
> line 956, in mfmatches
>    for fn in mf:
> RuntimeError: dictionary changed size during iteration
> 
> 
> The problem was introduced recently in rev 6769
> (http://selenic.com/repo/index.cgi/hg/rev/97c12b1ed1e0).
> 
> I also checked this with crew and there qdiff works, but it's only
> because it still has the older version of that code.
> 
> Quick fix attached.

In crew as 89ec85aa6cc3, thanks !

--
Patrick Mézard


More information about the Mercurial-devel mailing list