mercurial/commands.py
changeset 29426 26ac04a39e11
parent 29413 31d3ab7985b8
child 29427 33a6b750b5b9
equal deleted inserted replaced
29425:4f5531f8ac38 29426:26ac04a39e11
  2298 
  2298 
  2299 @command('debugdata', debugrevlogopts, _('-c|-m|FILE REV'))
  2299 @command('debugdata', debugrevlogopts, _('-c|-m|FILE REV'))
  2300 def debugdata(ui, repo, file_, rev=None, **opts):
  2300 def debugdata(ui, repo, file_, rev=None, **opts):
  2301     """dump the contents of a data file revision"""
  2301     """dump the contents of a data file revision"""
  2302     if opts.get('changelog') or opts.get('manifest'):
  2302     if opts.get('changelog') or opts.get('manifest'):
       
  2303         if rev is not None:
       
  2304             raise error.CommandError('debugdata', _('invalid arguments'))
  2303         file_, rev = None, file_
  2305         file_, rev = None, file_
  2304     elif rev is None:
  2306     elif rev is None:
  2305         raise error.CommandError('debugdata', _('invalid arguments'))
  2307         raise error.CommandError('debugdata', _('invalid arguments'))
  2306     r = cmdutil.openrevlog(repo, 'debugdata', file_, opts)
  2308     r = cmdutil.openrevlog(repo, 'debugdata', file_, opts)
  2307     try:
  2309     try: