##// END OF EJS Templates
revlog: resolve lfs rawtext to vanilla rawtext before applying delta...
Jun Wu -
r36889:369aadf7 4.5.1 stable
parent child Browse files
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)
@@ -90,7 +90,7 Apply bundles
90 90 ---- Applying src-normal.bundle to dst-normal ----
91 91 OK
92 92 ---- Applying src-normal.bundle to dst-lfs ----
93 CRASHED
93 OK
94 94 ---- Applying src-lfs.bundle to dst-normal ----
95 95 OK
96 96 ---- Applying src-lfs.bundle to dst-lfs ----
General Comments 0
You need to be logged in to leave comments. Login now