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.
--- 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)