largefiles: make prompt order deterministic
authorMads Kiilerich <madski@unity3d.com>
Sun, 17 Jan 2016 19:29:27 +0100
changeset 27904 ee3123e19db9
parent 27903 512a814c5595
child 27905 27f2f5c1d499
largefiles: make prompt order deterministic 42ae1b1f048f introduced iteration of a set. Make it stable.
hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Sun Jan 17 17:23:32 2016 +0100
+++ b/hgext/largefiles/overrides.py	Sun Jan 17 19:29:27 2016 +0100
@@ -470,7 +470,7 @@
         elif lfutil.standin(f) in p1:
             lfiles.add(f)
 
-    for lfile in lfiles:
+    for lfile in sorted(lfiles):
         standin = lfutil.standin(lfile)
         (lm, largs, lmsg) = actions.get(lfile, (None, None, None))
         (sm, sargs, smsg) = actions.get(standin, (None, None, None))