Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 41758: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 | 09814946cc6a |
children | a4358f7345b4 |
comparison
equal
deleted
inserted
replaced
41757:980e05204ed8 | 41758:f96988680afe |
---|---|
1813 def debugpathcopies(ui, repo, rev1, rev2, *pats, **opts): | 1813 def debugpathcopies(ui, repo, rev1, rev2, *pats, **opts): |
1814 """show copies between two revisions""" | 1814 """show copies between two revisions""" |
1815 ctx1 = scmutil.revsingle(repo, rev1) | 1815 ctx1 = scmutil.revsingle(repo, rev1) |
1816 ctx2 = scmutil.revsingle(repo, rev2) | 1816 ctx2 = scmutil.revsingle(repo, rev2) |
1817 m = scmutil.match(ctx1, pats, opts) | 1817 m = scmutil.match(ctx1, pats, opts) |
1818 for dst, src in copies.pathcopies(ctx1, ctx2, m).items(): | 1818 for dst, src in sorted(copies.pathcopies(ctx1, ctx2, m).items()): |
1819 ui.write('%s -> %s\n' % (src, dst)) | 1819 ui.write('%s -> %s\n' % (src, dst)) |
1820 | 1820 |
1821 @command('debugpeer', [], _('PATH'), norepo=True) | 1821 @command('debugpeer', [], _('PATH'), norepo=True) |
1822 def debugpeer(ui, path): | 1822 def debugpeer(ui, path): |
1823 """establish a connection to a peer repository""" | 1823 """establish a connection to a peer repository""" |