Show More
@@ -1434,7 +1434,12 def p2(repo, subset, x): | |||||
1434 | ps = set() |
|
1434 | ps = set() | |
1435 | cl = repo.changelog |
|
1435 | cl = repo.changelog | |
1436 | for r in getset(repo, fullreposet(repo), x): |
|
1436 | for r in getset(repo, fullreposet(repo), x): | |
|
1437 | try: | |||
1437 | ps.add(cl.parentrevs(r)[1]) |
|
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 | ps -= {node.nullrev} |
|
1443 | ps -= {node.nullrev} | |
1439 | # XXX we should turn this into a baseset instead of a set, smartset may do |
|
1444 | # XXX we should turn this into a baseset instead of a set, smartset may do | |
1440 | # some optimizations from the fact this is a baseset. |
|
1445 | # some optimizations from the fact this is a baseset. |
@@ -1233,6 +1233,7 Test working-directory revision | |||||
1233 | 2147483647 |
|
1233 | 2147483647 | |
1234 | $ hg debugrevspec 'p1(wdir())' |
|
1234 | $ hg debugrevspec 'p1(wdir())' | |
1235 | 7 |
|
1235 | 7 | |
|
1236 | $ hg debugrevspec 'p2(wdir())' | |||
1236 | $ hg debugrevspec 'parents(wdir())' |
|
1237 | $ hg debugrevspec 'parents(wdir())' | |
1237 | 7 |
|
1238 | 7 | |
1238 | $ hg debugrevspec 'wdir()^1' |
|
1239 | $ hg debugrevspec 'wdir()^1' |
General Comments 0
You need to be logged in to leave comments.
Login now