# HG changeset patch # User Pierre-Yves David # Date 1565201527 -7200 # Node ID 1d9031b6cb7e53678bde1385ecb5ed10d71d33e8 # Parent aeb2be20b33b0cb1e46dd085d0cf153f5e9b119f 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. diff -r aeb2be20b33b -r 1d9031b6cb7e 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)