Show More
@@ -960,6 +960,12 b' class deltacomputer(object):' | |||
|
960 | 960 | delta = revinfo.cachedelta[1] |
|
961 | 961 | if delta is None: |
|
962 | 962 | delta = self._builddeltadiff(base, revinfo, fh) |
|
963 | # snapshotdept need to be neither None nor 0 level snapshot | |
|
964 | if revlog.upperboundcomp is not None and snapshotdepth: | |
|
965 | lowestrealisticdeltalen = len(delta) // revlog.upperboundcomp | |
|
966 | snapshotlimit = revinfo.textlen >> snapshotdepth | |
|
967 | if snapshotlimit < lowestrealisticdeltalen: | |
|
968 | return None | |
|
963 | 969 | header, data = revlog.compress(delta) |
|
964 | 970 | deltalen = len(header) + len(data) |
|
965 | 971 | offset = revlog.end(len(revlog) - 1) |
General Comments 0
You need to be logged in to leave comments.
Login now