Mercurial > hg-stable
changeset 39308:dd6bc2509bdc
debugcommands: use openstorage() in debugdata (BC)
Nothing we're doing here requires a revlog. So use openstorage().
.. bc::
`hg debugdata` no longer accepts the path to a revlog file.
Differential Revision: https://phab.mercurial-scm.org/D4357
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 20 Aug 2018 23:08:57 +0000 |
parents | da459d426c20 |
children | 828a45233036 |
files | mercurial/debugcommands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Mon Aug 20 23:06:47 2018 +0000 +++ b/mercurial/debugcommands.py Mon Aug 20 23:08:57 2018 +0000 @@ -556,7 +556,7 @@ file_, rev = None, file_ elif rev is None: raise error.CommandError('debugdata', _('invalid arguments')) - r = cmdutil.openrevlog(repo, 'debugdata', file_, opts) + r = cmdutil.openstorage(repo, 'debugdata', file_, opts) try: ui.write(r.revision(r.lookup(rev), raw=True)) except KeyError: