Mercurial > public > mercurial-scm > hg-stable
diff mercurial/fileset.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 | 1310489eb5d6 |
children | 3ce3f2b059a1 |
line wrap: on
line diff
--- a/mercurial/fileset.py Tue Jan 15 02:59:12 2013 +0100 +++ b/mercurial/fileset.py Wed Dec 12 02:38:14 2012 +0100 @@ -373,7 +373,7 @@ # i18n: "subrepo" is a keyword getargs(x, 0, 1, _("subrepo takes at most one argument")) ctx = mctx.ctx - sstate = ctx.substate + sstate = sorted(ctx.substate) if x: pat = getstring(x, _("subrepo requires a pattern or no arguments"))