comparison mercurial/debugcommands.py @ 43136:ba5b062a1388

debugsidedata: small doc improvement The command has a mode to actually show the sidedata, but it wasn't documented. Differential Revision: https://phab.mercurial-scm.org/D6944
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 06 Oct 2019 23:36:51 -0400
parents 8ff1ecfadcd1
children 101ae8bbfa02
comparison
equal deleted inserted replaced
43135:6e3dc1eff5c7 43136:ba5b062a1388
3234 repo.setparents(node1, node2) 3234 repo.setparents(node1, node2)
3235 3235
3236 3236
3237 @command(b'debugsidedata', cmdutil.debugrevlogopts, _(b'-c|-m|FILE REV')) 3237 @command(b'debugsidedata', cmdutil.debugrevlogopts, _(b'-c|-m|FILE REV'))
3238 def debugsidedata(ui, repo, file_, rev=None, **opts): 3238 def debugsidedata(ui, repo, file_, rev=None, **opts):
3239 """dump the side data for a cl/manifest/file revision""" 3239 """dump the side data for a cl/manifest/file revision
3240
3241 Use --verbose to dump the sidedata content."""
3240 opts = pycompat.byteskwargs(opts) 3242 opts = pycompat.byteskwargs(opts)
3241 if opts.get(b'changelog') or opts.get(b'manifest') or opts.get(b'dir'): 3243 if opts.get(b'changelog') or opts.get(b'manifest') or opts.get(b'dir'):
3242 if rev is not None: 3244 if rev is not None:
3243 raise error.CommandError(b'debugdata', _(b'invalid arguments')) 3245 raise error.CommandError(b'debugdata', _(b'invalid arguments'))
3244 file_, rev = None, file_ 3246 file_, rev = None, file_