rawdata: implement the method for `remotefilelog` too
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 07 Aug 2019 20:51:52 +0200
changeset 42742 7492899c6fc6
parent 42741 2177133724ab
child 42743 64387cd2bf4d
rawdata: implement the method for `remotefilelog` too This is needed for all storage implementations.
hgext/remotefilelog/remotefilelog.py
--- a/hgext/remotefilelog/remotefilelog.py	Wed Aug 07 20:48:05 2019 +0200
+++ b/hgext/remotefilelog/remotefilelog.py	Wed Aug 07 20:51:52 2019 +0200
@@ -324,6 +324,9 @@
         text, verifyhash = self._processflags(rawtext, flags, 'read')
         return text
 
+    def rawdata(self, node):
+        return self.revision(node, raw=False)
+
     def _processflags(self, text, flags, operation, raw=False):
         # mostly copied from hg/mercurial/revlog.py
         validatehash = True