Show More
@@ -44,6 +44,7 b' class _testrevlog(object):' | |||
|
44 | 44 | self._srdensitythreshold = density |
|
45 | 45 | self._srmingapsize = mingap |
|
46 | 46 | self._snapshot = set(snapshot) |
|
47 | self.index = None | |
|
47 | 48 | |
|
48 | 49 | def start(self, rev): |
|
49 | 50 | if rev == 0: |
@@ -120,7 +121,10 b' def slicechunk(revlog, revs, targetsize=' | |||
|
120 | 121 | targetsize = max(targetsize, revlog._srmingapsize) |
|
121 | 122 | # targetsize should not be specified when evaluating delta candidates: |
|
122 | 123 | # * targetsize is used to ensure we stay within specification when reading, |
|
123 | for chunk in _slicechunktodensity(revlog, revs, | |
|
124 | densityslicing = getattr(revlog.index, 'slicechunktodensity', None) | |
|
125 | if densityslicing is None: | |
|
126 | densityslicing = lambda x, y, z: _slicechunktodensity(revlog, x, y, z) | |
|
127 | for chunk in densityslicing(revs, | |
|
124 | 128 |
|
|
125 | 129 |
|
|
126 | 130 | for subchunk in _slicechunktosize(revlog, chunk, targetsize): |
General Comments 0
You need to be logged in to leave comments.
Login now