comparison mercurial/copies.py @ 42210:390ec72b8ea4

copies: process files in deterministic order for stable tests I also fixed a typo while at it. Differential Revision: https://phab.mercurial-scm.org/D6320
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 27 Apr 2019 22:55:54 -0700
parents a68036b849b0
children 57203e0210f8
comparison
equal deleted inserted replaced
42208:91104f10ff65 42210:390ec72b8ea4
202 missing = _computeforwardmissing(a, b, match=forwardmissingmatch) 202 missing = _computeforwardmissing(a, b, match=forwardmissingmatch)
203 203
204 ancestrycontext = a._repo.changelog.ancestors([b.rev()], inclusive=True) 204 ancestrycontext = a._repo.changelog.ancestors([b.rev()], inclusive=True)
205 205
206 if debug: 206 if debug:
207 dbg('debug.copies: missing file to search: %d\n' % len(missing)) 207 dbg('debug.copies: missing files to search: %d\n' % len(missing))
208 208
209 for f in missing: 209 for f in sorted(missing):
210 if debug: 210 if debug:
211 dbg('debug.copies: tracing file: %s\n' % f) 211 dbg('debug.copies: tracing file: %s\n' % f)
212 fctx = b[f] 212 fctx = b[f]
213 fctx._ancestrycontext = ancestrycontext 213 fctx._ancestrycontext = ancestrycontext
214 214