Mercurial > public > mercurial-scm > hg
comparison hgext/extdiff.py @ 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 | 684bad8c4265 |
children | aff73c777b0b |
comparison
equal
deleted
inserted
replaced
23148:b405dd6c90bf | 23149:dc80a0ad7bf5 |
---|---|
88 ui.note(_('making snapshot of %d files from working directory\n') % | 88 ui.note(_('making snapshot of %d files from working directory\n') % |
89 (len(files))) | 89 (len(files))) |
90 wopener = scmutil.opener(base) | 90 wopener = scmutil.opener(base) |
91 fns_and_mtime = [] | 91 fns_and_mtime = [] |
92 ctx = repo[node] | 92 ctx = repo[node] |
93 for fn in files: | 93 for fn in sorted(files): |
94 wfn = util.pconvert(fn) | 94 wfn = util.pconvert(fn) |
95 if wfn not in ctx: | 95 if wfn not in ctx: |
96 # File doesn't exist; could be a bogus modify | 96 # File doesn't exist; could be a bogus modify |
97 continue | 97 continue |
98 ui.note(' %s\n' % wfn) | 98 ui.note(' %s\n' % wfn) |