Patchwork [06,of,15] rawdata: update callers in debugcommands

login
register
mail settings
Submitter Pierre-Yves David
Date Aug. 15, 2019, 10:40 a.m.
Message ID <3de6d776f3515adf35f1.1565865604@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/41289/
State Accepted
Headers show

Comments

Pierre-Yves David - Aug. 15, 2019, 10:40 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1565201408 -7200
#      Wed Aug 07 20:10:08 2019 +0200
# Node ID 3de6d776f3515adf35f1b9abcb4c2cd9d398d7ef
# Parent  333d279ffd3109ce7e2e899fe7b513e1334174e7
# EXP-Topic rawdata
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 3de6d776f351
rawdata: update callers in debugcommands

We update callers incrementally because this help bisecting failures. This was
useful during development, so we expect it might be useful again in the future.

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -562,7 +562,7 @@  def debugdata(ui, repo, file_, rev=None,
         raise error.CommandError('debugdata', _('invalid arguments'))
     r = cmdutil.openstorage(repo, 'debugdata', file_, opts)
     try:
-        ui.write(r.revision(r.lookup(rev), raw=True))
+        ui.write(r.rawdata(r.lookup(rev)))
     except KeyError:
         raise error.Abort(_('invalid revision identifier %s') % rev)