changeset 23149:dc80a0ad7bf5

extdiff: sort files when snapshotting This fixes output stability and is generally filesystem-performance-friendly.
author Matt Mackall <mpm@selenic.com>
date Mon, 03 Nov 2014 16:30:21 -0600
parents b405dd6c90bf
children aff73c777b0b
files hgext/extdiff.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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