equal
deleted
inserted
replaced
1265 |
1265 |
1266 # - 'dist' is the distance from the base revision -- bounding it limits |
1266 # - 'dist' is the distance from the base revision -- bounding it limits |
1267 # the amount of I/O we need to do. |
1267 # the amount of I/O we need to do. |
1268 # - 'compresseddeltalen' is the sum of the total size of deltas we need |
1268 # - 'compresseddeltalen' is the sum of the total size of deltas we need |
1269 # to apply -- bounding it limits the amount of CPU we consume. |
1269 # to apply -- bounding it limits the amount of CPU we consume. |
1270 if (d is None or dist > textlen * 2 or l > textlen or |
1270 if (d is None or dist > textlen * 4 or l > textlen or |
1271 compresseddeltalen > textlen * 2 or |
1271 compresseddeltalen > textlen * 2 or |
1272 (self._maxchainlen and chainlen > self._maxchainlen)): |
1272 (self._maxchainlen and chainlen > self._maxchainlen)): |
1273 text = buildtext() |
1273 text = buildtext() |
1274 data = self.compress(text) |
1274 data = self.compress(text) |
1275 l = len(data[1]) + len(data[0]) |
1275 l = len(data[1]) + len(data[0]) |