Mercurial > public > mercurial-scm > hg
diff hgext/mq.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 | cfa731b45b75 |
children | ff2c89ebf5d4 |
line wrap: on
line diff
--- a/hgext/mq.py Tue Jan 15 02:59:12 2013 +0100 +++ b/hgext/mq.py Wed Dec 12 02:38:14 2012 +0100 @@ -947,7 +947,7 @@ bctx = repo[baserev] else: bctx = wctx.parents()[0] - for s in wctx.substate: + for s in sorted(wctx.substate): if wctx.sub(s).dirty(True): raise util.Abort( _("uncommitted changes in subrepository %s") % s)