# HG changeset patch # User Matt Mackall # Date 1415053821 21600 # Node ID dc80a0ad7bf56afcde2aefe103f314d75b6cd03a # Parent b405dd6c90bf8bab363fb4449b2b643a464d8da8 extdiff: sort files when snapshotting This fixes output stability and is generally filesystem-performance-friendly. diff -r b405dd6c90bf -r dc80a0ad7bf5 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