# HG changeset patch # User Martin von Zweigbergk # Date 2019-02-14 23:17:54 # Node ID f96988680afe2d674f7cb36135641e936c016873 # Parent 980e05204ed8de4ad3e65295050bf7e845f88f66 debugpathcopies: sort output so it's deterministic Differential Revision: https://phab.mercurial-scm.org/D5983 diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -1815,7 +1815,7 @@ def debugpathcopies(ui, repo, rev1, rev2 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)