changeset 41749:f96988680afe

debugpathcopies: sort output so it's deterministic Differential Revision: https://phab.mercurial-scm.org/D5983
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 14 Feb 2019 15:17:54 -0800
parents 980e05204ed8
children 1040d54eb7eb
files mercurial/debugcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Sun Feb 17 09:12:30 2019 -0800
+++ b/mercurial/debugcommands.py	Thu Feb 14 15:17:54 2019 -0800
@@ -1815,7 +1815,7 @@
     ctx1 = scmutil.revsingle(repo, rev1)
     ctx2 = scmutil.revsingle(repo, rev2)
     m = scmutil.match(ctx1, pats, opts)
-    for dst, src in copies.pathcopies(ctx1, ctx2, m).items():
+    for dst, src in sorted(copies.pathcopies(ctx1, ctx2, m).items()):
         ui.write('%s -> %s\n' % (src, dst))
 
 @command('debugpeer', [], _('PATH'), norepo=True)