Mercurial > public > mercurial-scm > hg-stable
diff mercurial/subrepo.py @ 18364:6252b4f1c4b4
subrepos: process subrepos in sorted order
Add sorted() in places found by testing with PYTHONHASHSEED=random and code
inspection.
An alternative to sprinkling sorted() all over would be to change substate to a
custom dict with sorted iterators...
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 12 Dec 2012 02:38:14 +0100 |
parents | 7196f11c5c7d |
children | f254ab6207ae |
line wrap: on
line diff
--- a/mercurial/subrepo.py Tue Jan 15 02:59:12 2013 +0100 +++ b/mercurial/subrepo.py Wed Dec 12 02:38:14 2012 +0100 @@ -147,7 +147,7 @@ r = "%s:%s:%s" % r repo.ui.debug(" subrepo %s: %s %s\n" % (s, msg, r)) - for s, l in s1.items(): + for s, l in sorted(s1.iteritems()): a = sa.get(s, nullstate) ld = l # local state with possible dirty flag for compares if wctx.sub(s).dirty():