[PATCH 10 of 10] rawdata: register the method for `ifiledata`
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Wed Aug 7 17:30:39 EDT 2019
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1565208169 -7200
# Wed Aug 07 22:02:49 2019 +0200
# Node ID 798e48124c8f0297f0eeab0277c58f38f88b9284
# Parent 9c998f6ff099877a0e53722a1c35a8e059cb17ee
# EXP-Topic rawdata
# Available At https://bitbucket.org/octobus/mercurial-devel/
# hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 798e48124c8f
rawdata: register the method for `ifiledata`
The interface have a `revision(..., raw=False)` method so it should get a
`rawdata` one. I am not sure why nothing complained about the lack of it
earlier.
diff --git a/mercurial/repository.py b/mercurial/repository.py
--- a/mercurial/repository.py
+++ b/mercurial/repository.py
@@ -597,6 +597,10 @@ class ifiledata(interfaceutil.Interface)
consumers should use ``read()`` to obtain the actual file data.
"""
+ def rawdata(node):
+ """Obtain raw data for a node.
+ """
+
def read(node):
"""Resolve file fulltext data.
More information about the Mercurial-devel
mailing list