[PATCH 06 of 10] rawdata: forward `rawdata` call on `manifestlog`

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Aug 7 17:30:35 EDT 2019


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1565208484 -7200
#      Wed Aug 07 22:08:04 2019 +0200
# Node ID 61aefd21e509dac932964c332744f42e7d619546
# Parent  07298d6c4c98ee1f59ab1aa563226e8d1f91dbcf
# EXP-Topic rawdata
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 61aefd21e509
rawdata: forward `rawdata` call on `manifestlog`

This needs to be sent to the underlying `revlog` too.

diff --git a/mercurial/manifest.py b/mercurial/manifest.py
--- a/mercurial/manifest.py
+++ b/mercurial/manifest.py
@@ -1620,6 +1620,9 @@ class manifestrevlog(object):
     def revision(self, node, _df=None, raw=False):
         return self._revlog.revision(node, _df=_df, raw=raw)
 
+    def rawdata(self, node, _df=None):
+        return self._revlog.rawdata(node, _df=_df)
+
     def revdiff(self, rev1, rev2):
         return self._revlog.revdiff(rev1, rev2)
 
diff --git a/mercurial/repository.py b/mercurial/repository.py
--- a/mercurial/repository.py
+++ b/mercurial/repository.py
@@ -1164,6 +1164,9 @@ class imanifeststorage(interfaceutil.Int
     def revision(node, _df=None, raw=False):
         """Obtain fulltext data for a node."""
 
+    def rawdata(node, _df=None):
+        """Obtain raw data for a node."""
+
     def revdiff(rev1, rev2):
         """Obtain a delta between two revision numbers.
 


More information about the Mercurial-devel mailing list