rawdata: implement the method for `unionrepo` too
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 07 Aug 2019 21:17:48 +0200
changeset 42726 64387cd2bf4d
parent 42725 7492899c6fc6
child 42727 bbe71b5afd02
rawdata: implement the method for `unionrepo` too This is required for all implementations.
mercurial/unionrepo.py
--- a/mercurial/unionrepo.py	Wed Aug 07 20:51:52 2019 +0200
+++ b/mercurial/unionrepo.py	Wed Aug 07 21:17:48 2019 +0200
@@ -116,6 +116,9 @@
             # already cached
         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 unionrevlog with such class one