##// END OF EJS Templates
revlog: _addrevision creates full-replace deltas based on censored revisions...
Mike Edgar -
r24123:eb2d41c6 default
parent child Browse files
Show More
@@ -1261,6 +1261,12 class revlog(object):
1261 delta = cachedelta[1]
1261 delta = cachedelta[1]
1262 else:
1262 else:
1263 t = buildtext()
1263 t = buildtext()
1264 if self.iscensored(rev):
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:
1264 ptext = self.revision(self.node(rev))
1270 ptext = self.revision(self.node(rev))
1265 delta = mdiff.textdiff(ptext, t)
1271 delta = mdiff.textdiff(ptext, t)
1266 data = self.compress(delta)
1272 data = self.compress(delta)
General Comments 0
You need to be logged in to leave comments. Login now