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,9 +121,12 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 | revlog._srdensitythreshold, | |
|
125 | revlog._srmingapsize): | |
|
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, | |
|
128 | revlog._srdensitythreshold, | |
|
129 | revlog._srmingapsize): | |
|
126 | 130 | for subchunk in _slicechunktosize(revlog, chunk, targetsize): |
|
127 | 131 | yield subchunk |
|
128 | 132 |
General Comments 0
You need to be logged in to leave comments.
Login now