Show More
@@ -1408,7 +1408,10 b' def p1(repo, subset, x):' | |||||
1408 | ps = set() |
|
1408 | ps = set() | |
1409 | cl = repo.changelog |
|
1409 | cl = repo.changelog | |
1410 | for r in getset(repo, fullreposet(repo), x): |
|
1410 | for r in getset(repo, fullreposet(repo), x): | |
1411 | ps.add(cl.parentrevs(r)[0]) |
|
1411 | try: | |
|
1412 | ps.add(cl.parentrevs(r)[0]) | |||
|
1413 | except error.WdirUnsupported: | |||
|
1414 | ps.add(repo[r].parents()[0].rev()) | |||
1412 | ps -= {node.nullrev} |
|
1415 | ps -= {node.nullrev} | |
1413 | # XXX we should turn this into a baseset instead of a set, smartset may do |
|
1416 | # XXX we should turn this into a baseset instead of a set, smartset may do | |
1414 | # some optimizations from the fact this is a baseset. |
|
1417 | # some optimizations from the fact this is a baseset. |
@@ -1221,6 +1221,15 b" BROKEN: should be '-1'" | |||||
1221 | Test working-directory revision |
|
1221 | Test working-directory revision | |
1222 | $ hg debugrevspec 'wdir()' |
|
1222 | $ hg debugrevspec 'wdir()' | |
1223 | 2147483647 |
|
1223 | 2147483647 | |
|
1224 | $ hg debugrevspec 'wdir()^' | |||
|
1225 | 9 | |||
|
1226 | $ hg up 7 | |||
|
1227 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |||
|
1228 | $ hg debugrevspec 'wdir()^' | |||
|
1229 | 7 | |||
|
1230 | For tests consistency | |||
|
1231 | $ hg up 9 | |||
|
1232 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
1224 | $ hg debugrevspec 'tip or wdir()' |
|
1233 | $ hg debugrevspec 'tip or wdir()' | |
1225 | 9 |
|
1234 | 9 | |
1226 | 2147483647 |
|
1235 | 2147483647 |
General Comments 0
You need to be logged in to leave comments.
Login now