Show More
@@ -1434,7 +1434,12 def p2(repo, subset, x): | |||
|
1434 | 1434 | ps = set() |
|
1435 | 1435 | cl = repo.changelog |
|
1436 | 1436 | for r in getset(repo, fullreposet(repo), x): |
|
1437 | try: | |
|
1437 | 1438 | ps.add(cl.parentrevs(r)[1]) |
|
1439 | except error.WdirUnsupported: | |
|
1440 | parents = repo[r].parents() | |
|
1441 | if len(parents) == 2: | |
|
1442 | ps.add(parents[1]) | |
|
1438 | 1443 | ps -= {node.nullrev} |
|
1439 | 1444 | # XXX we should turn this into a baseset instead of a set, smartset may do |
|
1440 | 1445 | # some optimizations from the fact this is a baseset. |
General Comments 0
You need to be logged in to leave comments.
Login now