mercurial/debugcommands.py
changeset 50957 1e2be2c9a74d
parent 50956 91c32fccd282
child 50958 206d7fad2a1c
equal deleted inserted replaced
50956:91c32fccd282 50957:1e2be2c9a74d
  2838     _(b'[-r REV]'),
  2838     _(b'[-r REV]'),
  2839 )
  2839 )
  2840 def debugp2copies(ui, repo, **opts):
  2840 def debugp2copies(ui, repo, **opts):
  2841     """dump copy information compared to p2"""
  2841     """dump copy information compared to p2"""
  2842 
  2842 
  2843     opts = pycompat.byteskwargs(opts)
  2843     ctx = scmutil.revsingle(repo, opts.get('rev'), default=None)
  2844     ctx = scmutil.revsingle(repo, opts.get(b'rev'), default=None)
       
  2845     for dst, src in ctx.p2copies().items():
  2844     for dst, src in ctx.p2copies().items():
  2846         ui.write(b'%s -> %s\n' % (src, dst))
  2845         ui.write(b'%s -> %s\n' % (src, dst))
  2847 
  2846 
  2848 
  2847 
  2849 @command(
  2848 @command(