Mercurial > hg
diff hgext/remotefilelog/shallowbundle.py @ 42782:1d9031b6cb7e
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.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 07 Aug 2019 20:12:07 +0200 |
parents | 0531dff73d0b |
children | 2372284d9457 |
line wrap: on
line diff
--- 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)