[PATCH 13 of 15] rawdata: update callers in delta utils

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


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1565201495 -7200
#      Wed Aug 07 20:11:35 2019 +0200
# Node ID 6e8516552f75a8b1f0e1b2169bdf1004aa48e534
# Parent  acb5122380b83993dc724135e45a041097199044
# EXP-Topic rawdata
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 6e8516552f75
rawdata: update callers in delta utils

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/revlogutils/deltas.py b/mercurial/revlogutils/deltas.py
--- a/mercurial/revlogutils/deltas.py
+++ b/mercurial/revlogutils/deltas.py
@@ -925,7 +925,7 @@ class deltacomputer(object):
             header = mdiff.replacediffheader(revlog.rawsize(base), len(t))
             delta = header + t
         else:
-            ptext = revlog.revision(base, _df=fh, raw=True)
+            ptext = revlog.rawdata(base, _df=fh)
             delta = mdiff.textdiff(ptext, t)
 
         return delta


More information about the Mercurial-devel mailing list