Show More
@@ -330,6 +330,9 b' def getobsoleted(repo, tr):' | |||||
330 | class _succs(list): |
|
330 | class _succs(list): | |
331 | """small class to represent a successors with some metadata about it""" |
|
331 | """small class to represent a successors with some metadata about it""" | |
332 |
|
332 | |||
|
333 | def copy(self): | |||
|
334 | return _succs(self) | |||
|
335 | ||||
333 | def successorssets(repo, initialnode, closest=False, cache=None): |
|
336 | def successorssets(repo, initialnode, closest=False, cache=None): | |
334 | """Return set of all latest successors of initial nodes |
|
337 | """Return set of all latest successors of initial nodes | |
335 |
|
338 | |||
@@ -530,7 +533,7 b' def successorssets(repo, initialnode, cl' | |||||
530 | productresult = [] |
|
533 | productresult = [] | |
531 | for prefix in markss: |
|
534 | for prefix in markss: | |
532 | for suffix in cache[suc]: |
|
535 | for suffix in cache[suc]: | |
533 |
newss = |
|
536 | newss = prefix.copy() | |
534 | for part in suffix: |
|
537 | for part in suffix: | |
535 | # do not duplicated entry in successors set |
|
538 | # do not duplicated entry in successors set | |
536 | # first entry wins. |
|
539 | # first entry wins. |
General Comments 0
You need to be logged in to leave comments.
Login now