--- a/mercurial/merge.py Tue Jan 15 02:59:12 2013 +0100
+++ b/mercurial/merge.py Wed Dec 12 02:38:14 2012 +0100
@@ -222,7 +222,7 @@
if '.hgsubstate' in m1:
# check whether sub state is modified
- for s in p1.substate:
+ for s in sorted(p1.substate):
if p1.sub(s).dirty():
m1['.hgsubstate'] += "+"
break
@@ -593,7 +593,7 @@
if not force and (wc.files() or wc.deleted()):
raise util.Abort(_("outstanding uncommitted changes"),
hint=_("use 'hg status' to list changes"))
- for s in wc.substate:
+ for s in sorted(wc.substate):
if wc.sub(s).dirty():
raise util.Abort(_("outstanding uncommitted changes in "
"subrepository '%s'") % s)