mercurial/debugcommands.py
changeset 39281 dd6bc2509bdc
parent 39279 cb9cf42c902f
child 39282 828a45233036
equal deleted inserted replaced
39280:da459d426c20 39281:dd6bc2509bdc
   554         if rev is not None:
   554         if rev is not None:
   555             raise error.CommandError('debugdata', _('invalid arguments'))
   555             raise error.CommandError('debugdata', _('invalid arguments'))
   556         file_, rev = None, file_
   556         file_, rev = None, file_
   557     elif rev is None:
   557     elif rev is None:
   558         raise error.CommandError('debugdata', _('invalid arguments'))
   558         raise error.CommandError('debugdata', _('invalid arguments'))
   559     r = cmdutil.openrevlog(repo, 'debugdata', file_, opts)
   559     r = cmdutil.openstorage(repo, 'debugdata', file_, opts)
   560     try:
   560     try:
   561         ui.write(r.revision(r.lookup(rev), raw=True))
   561         ui.write(r.revision(r.lookup(rev), raw=True))
   562     except KeyError:
   562     except KeyError:
   563         raise error.Abort(_('invalid revision identifier %s') % rev)
   563         raise error.Abort(_('invalid revision identifier %s') % rev)
   564 
   564