Show More
@@ -2557,6 +2557,15 class revlog(object): | |||||
2557 | if self._maxchainlen and self._maxchainlen < deltainfo.chainlen: |
|
2557 | if self._maxchainlen and self._maxchainlen < deltainfo.chainlen: | |
2558 | return False |
|
2558 | return False | |
2559 |
|
2559 | |||
|
2560 | # bad delta from intermediate snapshot size limit | |||
|
2561 | # | |||
|
2562 | # If an intermediate snapshot size is higher than the limit. The | |||
|
2563 | # limit exist to prevent endless chain of intermediate delta to be | |||
|
2564 | # created. | |||
|
2565 | if (deltainfo.snapshotdepth is not None and | |||
|
2566 | (textlen >> deltainfo.snapshotdepth) < deltainfo.deltalen): | |||
|
2567 | return False | |||
|
2568 | ||||
2560 | return True |
|
2569 | return True | |
2561 |
|
2570 | |||
2562 | def _addrevision(self, node, rawtext, transaction, link, p1, p2, flags, |
|
2571 | def _addrevision(self, node, rawtext, transaction, link, p1, p2, flags, |
General Comments 0
You need to be logged in to leave comments.
Login now