rawdata: update callers in shallowbundle
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 07 Aug 2019 20:12:07 +0200
changeset 42782 1d9031b6cb7e
parent 42781 aeb2be20b33b
child 42783 c8d3af9c7e65
rawdata: update callers in shallowbundle 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.
hgext/remotefilelog/shallowbundle.py
--- a/hgext/remotefilelog/shallowbundle.py	Wed Aug 07 20:11:50 2019 +0200
+++ b/hgext/remotefilelog/shallowbundle.py	Wed Aug 07 20:12:07 2019 +0200
@@ -124,7 +124,7 @@
     def nodechunk(self, revlog, node, prevnode, linknode):
         prefix = ''
         if prevnode == nullid:
-            delta = revlog.revision(node, raw=True)
+            delta = revlog.rawdata(node)
             prefix = mdiff.trivialdiffheader(len(delta))
         else:
             # Actually uses remotefilelog.revdiff which works on nodes, not revs
@@ -267,7 +267,7 @@
         if not available(f, node, f, deltabase):
             continue
 
-        base = fl.revision(deltabase, raw=True)
+        base = fl.rawdata(deltabase)
         text = mdiff.patch(base, delta)
         if not isinstance(text, bytes):
             text = bytes(text)