changeset 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 91104f10ff65
children 20fce2742399
files mercurial/copies.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/copies.py	Fri Apr 19 14:26:32 2019 +0000
+++ b/mercurial/copies.py	Sat Apr 27 22:55:54 2019 -0700
@@ -204,9 +204,9 @@
     ancestrycontext = a._repo.changelog.ancestors([b.rev()], inclusive=True)
 
     if debug:
-        dbg('debug.copies:      missing file to search: %d\n' % len(missing))
+        dbg('debug.copies:      missing files to search: %d\n' % len(missing))
 
-    for f in missing:
+    for f in sorted(missing):
         if debug:
             dbg('debug.copies:        tracing file: %s\n' % f)
         fctx = b[f]