# HG changeset patch # User Gregory Szorc # Date 2018-08-20 23:08:57 # Node ID dd6bc2509bdcc62508f9dbff9f4cc9cb72399d3e # Parent da459d426c2097a65d7aa933ccf99d9af9664ce0 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 diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -556,7 +556,7 @@ def debugdata(ui, repo, file_, rev=None, 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: