Show More
@@ -124,7 +124,7 b' class shallowcg1packer(changegroup.cgpac' | |||||
124 | def nodechunk(self, revlog, node, prevnode, linknode): |
|
124 | def nodechunk(self, revlog, node, prevnode, linknode): | |
125 | prefix = '' |
|
125 | prefix = '' | |
126 | if prevnode == nullid: |
|
126 | if prevnode == nullid: | |
127 |
delta = revlog.r |
|
127 | delta = revlog.rawdata(node) | |
128 | prefix = mdiff.trivialdiffheader(len(delta)) |
|
128 | prefix = mdiff.trivialdiffheader(len(delta)) | |
129 | else: |
|
129 | else: | |
130 | # Actually uses remotefilelog.revdiff which works on nodes, not revs |
|
130 | # Actually uses remotefilelog.revdiff which works on nodes, not revs | |
@@ -267,7 +267,7 b' def addchangegroupfiles(orig, repo, sour' | |||||
267 | if not available(f, node, f, deltabase): |
|
267 | if not available(f, node, f, deltabase): | |
268 | continue |
|
268 | continue | |
269 |
|
269 | |||
270 |
base = fl.r |
|
270 | base = fl.rawdata(deltabase) | |
271 | text = mdiff.patch(base, delta) |
|
271 | text = mdiff.patch(base, delta) | |
272 | if not isinstance(text, bytes): |
|
272 | if not isinstance(text, bytes): | |
273 | text = bytes(text) |
|
273 | text = bytes(text) |
General Comments 0
You need to be logged in to leave comments.
Login now