changeset 42771:fdeb4c1d23d5

rawdata: update caller in remotefilelog We update callers incrementally because this help bisecting failures. This was useful during development, so we expect it might be useful again in the future.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 07 Aug 2019 22:35:12 +0200
parents af9c591216ea
children 5c2e8a661418
files hgext/remotefilelog/contentstore.py hgext/remotefilelog/fileserverclient.py hgext/remotefilelog/remotefilelog.py hgext/remotefilelog/remotefilelogserver.py
diffstat 4 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/remotefilelog/contentstore.py	Wed Aug 07 20:09:10 2019 +0200
+++ b/hgext/remotefilelog/contentstore.py	Wed Aug 07 22:35:12 2019 +0200
@@ -264,7 +264,7 @@
         self._repackstartlinkrev = 0
 
     def get(self, name, node):
-        return self._revlog(name).revision(node, raw=True)
+        return self._revlog(name).rawdata(node)
 
     def getdelta(self, name, node):
         revision = self.get(name, node)
--- a/hgext/remotefilelog/fileserverclient.py	Wed Aug 07 20:09:10 2019 +0200
+++ b/hgext/remotefilelog/fileserverclient.py	Wed Aug 07 22:35:12 2019 +0200
@@ -569,7 +569,7 @@
             node = bin(id)
             rlog = self.repo.file(file)
             if rlog.flags(node) & revlog.REVIDX_EXTSTORED:
-                text = rlog.revision(node, raw=True)
+                text = rlog.rawdata(node)
                 p = _lfsmod.pointer.deserialize(text)
                 oid = p.oid()
                 if not store.has(oid):
--- a/hgext/remotefilelog/remotefilelog.py	Wed Aug 07 20:09:10 2019 +0200
+++ b/hgext/remotefilelog/remotefilelog.py	Wed Aug 07 22:35:12 2019 +0200
@@ -262,7 +262,7 @@
                 revision = None
                 delta = self.revdiff(basenode, node)
             else:
-                revision = self.revision(node, raw=True)
+                revision = self.rawdata(node)
                 delta = None
             yield revlog.revlogrevisiondelta(
                 node=node,
@@ -277,8 +277,8 @@
                 )
 
     def revdiff(self, node1, node2):
-        return mdiff.textdiff(self.revision(node1, raw=True),
-                              self.revision(node2, raw=True))
+        return mdiff.textdiff(self.rawdata(node1),
+                              self.rawdata(node2))
 
     def lookup(self, node):
         if len(node) == 40:
--- a/hgext/remotefilelog/remotefilelogserver.py	Wed Aug 07 20:09:10 2019 +0200
+++ b/hgext/remotefilelog/remotefilelogserver.py	Wed Aug 07 22:35:12 2019 +0200
@@ -335,7 +335,7 @@
         text = filectx.data()
     else:
         # lfs, read raw revision data
-        text = flog.revision(frev, raw=True)
+        text = flog.rawdata(frev)
 
     repo = filectx._repo