mercurial/debugcommands.py
changeset 41749 f96988680afe
parent 41691 09814946cc6a
child 41755 a4358f7345b4
equal deleted inserted replaced
41748:980e05204ed8 41749: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"""