Show More
@@ -700,6 +700,9 b' class _DeltaSearch:' | |||||
700 | self.cachedelta = cachedelta |
|
700 | self.cachedelta = cachedelta | |
701 | self.excluded_bases = excluded_bases |
|
701 | self.excluded_bases = excluded_bases | |
702 | self.target_rev = target_rev |
|
702 | self.target_rev = target_rev | |
|
703 | if snapshot_cache is None: | |||
|
704 | # map: base-rev: [snapshot-revs] | |||
|
705 | snapshot_cache = SnapshotCache() | |||
703 | self.snapshot_cache = snapshot_cache |
|
706 | self.snapshot_cache = snapshot_cache | |
704 |
|
707 | |||
705 | def candidate_groups(self): |
|
708 | def candidate_groups(self): | |
@@ -886,8 +889,6 b' class _DeltaSearch:' | |||||
886 | debug_info['cached-delta.accepted'] += 1 |
|
889 | debug_info['cached-delta.accepted'] += 1 | |
887 | yield None |
|
890 | yield None | |
888 | return |
|
891 | return | |
889 | if self.snapshot_cache is None: |
|
|||
890 | self.snapshot_cache = SnapshotCache() |
|
|||
891 | groups = self._raw_groups() |
|
892 | groups = self._raw_groups() | |
892 | for candidates in groups: |
|
893 | for candidates in groups: | |
893 | good = yield candidates |
|
894 | good = yield candidates | |
@@ -965,9 +966,6 b' class _DeltaSearch:' | |||||
965 | yield parents |
|
966 | yield parents | |
966 |
|
967 | |||
967 | if sparse and parents: |
|
968 | if sparse and parents: | |
968 | if self.snapshot_cache is None: |
|
|||
969 | # map: base-rev: [snapshot-revs] |
|
|||
970 | self.snapshot_cache = SnapshotCache() |
|
|||
971 | # See if we can use an existing snapshot in the parent chains to |
|
969 | # See if we can use an existing snapshot in the parent chains to | |
972 | # use as a base for a new intermediate-snapshot |
|
970 | # use as a base for a new intermediate-snapshot | |
973 | # |
|
971 | # |
General Comments 0
You need to be logged in to leave comments.
Login now