Show More
@@ -336,7 +336,9 class _deltacomputer(object): | |||
|
336 | 336 | len(delta) - hlen): |
|
337 | 337 | btext[0] = delta[hlen:] |
|
338 | 338 | else: |
|
339 | basetext = revlog.revision(baserev, _df=fh, raw=True) | |
|
339 | # deltabase is rawtext before changed by flag processors, which is | |
|
340 | # equivalent to non-raw text | |
|
341 | basetext = revlog.revision(baserev, _df=fh, raw=False) | |
|
340 | 342 | btext[0] = mdiff.patch(basetext, delta) |
|
341 | 343 | |
|
342 | 344 | try: |
@@ -2084,7 +2086,10 class revlog(object): | |||
|
2084 | 2086 | # full versions are inserted when the needed deltas |
|
2085 | 2087 | # become comparable to the uncompressed text |
|
2086 | 2088 | if rawtext is None: |
|
2087 | textlen = mdiff.patchedsize(self.rawsize(cachedelta[0]), | |
|
2089 | # need rawtext size, before changed by flag processors, which is | |
|
2090 | # the non-raw size. use revlog explicitly to avoid filelog's extra | |
|
2091 | # logic that might remove metadata size. | |
|
2092 | textlen = mdiff.patchedsize(revlog.size(self, cachedelta[0]), | |
|
2088 | 2093 | cachedelta[1]) |
|
2089 | 2094 | else: |
|
2090 | 2095 | textlen = len(rawtext) |
General Comments 0
You need to be logged in to leave comments.
Login now