extdiff: sort files when snapshotting
authorMatt Mackall <mpm@selenic.com>
Mon, 03 Nov 2014 16:30:21 -0600
changeset 23149 dc80a0ad7bf5
parent 23148 b405dd6c90bf
child 23150 aff73c777b0b
extdiff: sort files when snapshotting This fixes output stability and is generally filesystem-performance-friendly.
hgext/extdiff.py
--- a/hgext/extdiff.py	Sun Nov 02 14:58:50 2014 -0500
+++ b/hgext/extdiff.py	Mon Nov 03 16:30:21 2014 -0600
@@ -90,7 +90,7 @@
     wopener = scmutil.opener(base)
     fns_and_mtime = []
     ctx = repo[node]
-    for fn in files:
+    for fn in sorted(files):
         wfn = util.pconvert(fn)
         if wfn not in ctx:
             # File doesn't exist; could be a bogus modify