D6320: copies: process files in deterministic order for stable tests

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Sun Apr 28 04:39:00 EDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG390ec72b8ea4: copies: process files in deterministic order for stable tests (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6320?vs=14939&id=14952

REVISION DETAIL
  https://phab.mercurial-scm.org/D6320

AFFECTED FILES
  mercurial/copies.py

CHANGE DETAILS

diff --git a/mercurial/copies.py b/mercurial/copies.py
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -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]



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list