Show More
@@ -1261,8 +1261,14 b' class revlog(object):' | |||||
1261 | delta = cachedelta[1] |
|
1261 | delta = cachedelta[1] | |
1262 | else: |
|
1262 | else: | |
1263 | t = buildtext() |
|
1263 | t = buildtext() | |
1264 |
|
|
1264 | if self.iscensored(rev): | |
1265 | delta = mdiff.textdiff(ptext, t) |
|
1265 | # deltas based on a censored revision must replace the | |
|
1266 | # full content in one patch, so delta works everywhere | |||
|
1267 | header = mdiff.replacediffheader(self.rawsize(rev), len(t)) | |||
|
1268 | delta = header + t | |||
|
1269 | else: | |||
|
1270 | ptext = self.revision(self.node(rev)) | |||
|
1271 | delta = mdiff.textdiff(ptext, t) | |||
1266 | data = self.compress(delta) |
|
1272 | data = self.compress(delta) | |
1267 | l = len(data[1]) + len(data[0]) |
|
1273 | l = len(data[1]) + len(data[0]) | |
1268 | if basecache[0] == rev: |
|
1274 | if basecache[0] == rev: |
General Comments 0
You need to be logged in to leave comments.
Login now