Show More
@@ -1074,6 +1074,12 b' class _DeltaSearch(_BaseDeltaSearch):' | |||||
1074 | # Test all parents (1 or 2), and keep the best candidate |
|
1074 | # Test all parents (1 or 2), and keep the best candidate | |
1075 | yield parents |
|
1075 | yield parents | |
1076 |
|
1076 | |||
|
1077 | def _iter_prev(self): | |||
|
1078 | # other approach failed try against prev to hopefully save us a | |||
|
1079 | # fulltext. | |||
|
1080 | self.current_stage = _STAGE_PREV | |||
|
1081 | yield (self.target_rev - 1,) | |||
|
1082 | ||||
1077 | def _refined_groups(self): |
|
1083 | def _refined_groups(self): | |
1078 | good = None |
|
1084 | good = None | |
1079 | groups = self._raw_groups() |
|
1085 | groups = self._raw_groups() | |
@@ -1221,10 +1227,7 b' class _DeltaSearch(_BaseDeltaSearch):' | |||||
1221 | yield tuple(sorted(full)) |
|
1227 | yield tuple(sorted(full)) | |
1222 |
|
1228 | |||
1223 | if not sparse: |
|
1229 | if not sparse: | |
1224 | # other approach failed try against prev to hopefully save us a |
|
1230 | yield from self._iter_prev() | |
1225 | # fulltext. |
|
|||
1226 | self.current_stage = _STAGE_PREV |
|
|||
1227 | yield (prev,) |
|
|||
1228 |
|
1231 | |||
1229 |
|
1232 | |||
1230 | class SnapshotCache: |
|
1233 | class SnapshotCache: |
General Comments 0
You need to be logged in to leave comments.
Login now