Show More
@@ -1332,6 +1332,14 b' class revlog(object):' | |||||
1332 | basecache = self._basecache |
|
1332 | basecache = self._basecache | |
1333 | p1r, p2r = self.rev(p1), self.rev(p2) |
|
1333 | p1r, p2r = self.rev(p1), self.rev(p2) | |
1334 |
|
1334 | |||
|
1335 | # full versions are inserted when the needed deltas | |||
|
1336 | # become comparable to the uncompressed text | |||
|
1337 | if text is None: | |||
|
1338 | textlen = mdiff.patchedsize(self.rawsize(cachedelta[0]), | |||
|
1339 | cachedelta[1]) | |||
|
1340 | else: | |||
|
1341 | textlen = len(text) | |||
|
1342 | ||||
1335 | # should we try to build a delta? |
|
1343 | # should we try to build a delta? | |
1336 | if prev != nullrev: |
|
1344 | if prev != nullrev: | |
1337 | if self._generaldelta: |
|
1345 | if self._generaldelta: | |
@@ -1345,14 +1353,6 b' class revlog(object):' | |||||
1345 | d = builddelta(prev) |
|
1353 | d = builddelta(prev) | |
1346 | dist, l, data, base, chainbase, chainlen, compresseddeltalen = d |
|
1354 | dist, l, data, base, chainbase, chainlen, compresseddeltalen = d | |
1347 |
|
1355 | |||
1348 | # full versions are inserted when the needed deltas |
|
|||
1349 | # become comparable to the uncompressed text |
|
|||
1350 | if text is None: |
|
|||
1351 | textlen = mdiff.patchedsize(self.rawsize(cachedelta[0]), |
|
|||
1352 | cachedelta[1]) |
|
|||
1353 | else: |
|
|||
1354 | textlen = len(text) |
|
|||
1355 |
|
||||
1356 | if not self._isgooddelta(d, textlen): |
|
1356 | if not self._isgooddelta(d, textlen): | |
1357 | text = buildtext() |
|
1357 | text = buildtext() | |
1358 | data = self.compress(text) |
|
1358 | data = self.compress(text) |
General Comments 0
You need to be logged in to leave comments.
Login now