changeset 42725:7492899c6fc6

rawdata: implement the method for `remotefilelog` too This is needed for all storage implementations.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 07 Aug 2019 20:51:52 +0200
parents 2177133724ab
children 64387cd2bf4d
files hgext/remotefilelog/remotefilelog.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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