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

login
register
mail settings
Submitter phabricator
Date April 28, 2019, 8:39 a.m.
Message ID <17d314b83e33af3a8609158a7333600c@localhost.localdomain>
Download mbox | patch
Permalink /patch/39880/
State Not Applicable
Headers show

Comments

phabricator - April 28, 2019, 8:39 a.m.
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




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

Patch

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]