Show More
@@ -148,13 +148,13 b' def missingancestors(revs, bases, pfunc)' | |||||
148 |
|
148 | |||
149 | revsvisit = set(revs) |
|
149 | revsvisit = set(revs) | |
150 | basesvisit = set(bases) |
|
150 | basesvisit = set(bases) | |
151 | if not revsvisit: |
|
|||
152 | return [] |
|
|||
153 | if not basesvisit: |
|
151 | if not basesvisit: | |
154 | basesvisit.add(nullrev) |
|
152 | basesvisit.add(nullrev) | |
155 | start = max(max(revsvisit), max(basesvisit)) |
|
|||
156 | bothvisit = revsvisit.intersection(basesvisit) |
|
153 | bothvisit = revsvisit.intersection(basesvisit) | |
157 | revsvisit.difference_update(bothvisit) |
|
154 | revsvisit.difference_update(bothvisit) | |
|
155 | if not revsvisit: | |||
|
156 | return [] | |||
|
157 | start = max(max(revsvisit), max(basesvisit)) | |||
158 | # At this point, we hold the invariants that: |
|
158 | # At this point, we hold the invariants that: | |
159 | # - revsvisit is the set of nodes we know are an ancestor of at least one |
|
159 | # - revsvisit is the set of nodes we know are an ancestor of at least one | |
160 | # of the nodes in revs |
|
160 | # of the nodes in revs |
General Comments 0
You need to be logged in to leave comments.
Login now