Mercurial > hg
diff mercurial/copies.py @ 18355:2330d97e7707
copies: make the loss in _backwardcopies more stable
A couple of tests shows slightly more correct output. That is pure coincidence.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 15 Jan 2013 02:59:12 +0100 |
parents | f23dea2b296e |
children | 5a4f220fbfca |
line wrap: on
line diff
--- a/mercurial/copies.py Tue Jan 15 01:10:08 2013 +0100 +++ b/mercurial/copies.py Tue Jan 15 02:59:12 2013 +0100 @@ -151,7 +151,7 @@ # arbitrarily pick one of the renames. f = _forwardcopies(b, a) r = {} - for k, v in f.iteritems(): + for k, v in sorted(f.iteritems()): # remove copies if v in a: continue