rawdata: add the method to bundlerevlog
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 07 Aug 2019 22:00:57 +0200
changeset 42738 161d39e9be4b
parent 42737 bf1e8d2ab900
child 42739 c9f3f4c8999a
rawdata: add the method to bundlerevlog The bundlerepo logic has its own `revision` method on its own `revlog` object. We need to "implement" `rawdata` there too.
mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py	Wed Aug 07 21:59:20 2019 +0200
+++ b/mercurial/bundlerepo.py	Wed Aug 07 22:00:57 2019 +0200
@@ -146,6 +146,9 @@
         self._revisioncache = (node, rev, rawtext)
         return text
 
+    def rawdata(self, nodeorrev, _df=None):
+        return self.revision(nodeorrev, _df=_df, raw=True)
+
     def baserevision(self, nodeorrev):
         # Revlog subclasses may override 'revision' method to modify format of
         # content retrieved from revlog. To use bundlerevlog with such class one