[PATCH 06 of 15] rawdata: update callers in debugcommands

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Aug 15 06:40:04 EDT 2019


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at 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.

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)
 


More information about the Mercurial-devel mailing list