Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 49289:223d55086d7c
cleanup: rename some functions to avoid redefinitions
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Sun, 29 May 2022 12:25:24 +0200 |
parents | a321304269cf |
children | d44e3c45f0e4 |
comparison
equal
deleted
inserted
replaced
49288:311fcc5a65f6 | 49289:223d55086d7c |
---|---|
2804 @command( | 2804 @command( |
2805 b'debugp2copies', | 2805 b'debugp2copies', |
2806 [(b'r', b'rev', b'', _(b'revision to debug'), _(b'REV'))], | 2806 [(b'r', b'rev', b'', _(b'revision to debug'), _(b'REV'))], |
2807 _(b'[-r REV]'), | 2807 _(b'[-r REV]'), |
2808 ) | 2808 ) |
2809 def debugp1copies(ui, repo, **opts): | 2809 def debugp2copies(ui, repo, **opts): |
2810 """dump copy information compared to p2""" | 2810 """dump copy information compared to p2""" |
2811 | 2811 |
2812 opts = pycompat.byteskwargs(opts) | 2812 opts = pycompat.byteskwargs(opts) |
2813 ctx = scmutil.revsingle(repo, opts.get(b'rev'), default=None) | 2813 ctx = scmutil.revsingle(repo, opts.get(b'rev'), default=None) |
2814 for dst, src in ctx.p2copies().items(): | 2814 for dst, src in ctx.p2copies().items(): |