##// END OF EJS Templates
revlog: ensure intermediate snapshot have decreasing size...
Boris Feld -
r39192:b3b4bee1 default
parent child Browse files
Show More
@@ -2566,6 +2566,12 b' class revlog(object):'
2566 (textlen >> deltainfo.snapshotdepth) < deltainfo.deltalen):
2566 (textlen >> deltainfo.snapshotdepth) < deltainfo.deltalen):
2567 return False
2567 return False
2568
2568
2569 # bad delta if new intermediate snapshot is larger than the previous
2570 # snapshot
2571 if (deltainfo.snapshotdepth
2572 and self.length(deltainfo.base) < deltainfo.deltalen):
2573 return False
2574
2569 return True
2575 return True
2570
2576
2571 def _addrevision(self, node, rawtext, transaction, link, p1, p2, flags,
2577 def _addrevision(self, node, rawtext, transaction, link, p1, p2, flags,
General Comments 0
You need to be logged in to leave comments. Login now