Show More
@@ -383,7 +383,10 b' def ancestorspec(repo, subset, x, n, ord' | |||||
383 | cl = repo.changelog |
|
383 | cl = repo.changelog | |
384 | for r in getset(repo, fullreposet(repo), x): |
|
384 | for r in getset(repo, fullreposet(repo), x): | |
385 | for i in range(n): |
|
385 | for i in range(n): | |
386 | r = cl.parentrevs(r)[0] |
|
386 | try: | |
|
387 | r = cl.parentrevs(r)[0] | |||
|
388 | except error.WdirUnsupported: | |||
|
389 | r = repo[r].parents()[0].rev() | |||
387 | ps.add(r) |
|
390 | ps.add(r) | |
388 | return subset & ps |
|
391 | return subset & ps | |
389 |
|
392 |
@@ -1229,6 +1229,8 b' Test working-directory revision' | |||||
1229 | 7 |
|
1229 | 7 | |
1230 | $ hg debugrevspec 'wdir()^0' |
|
1230 | $ hg debugrevspec 'wdir()^0' | |
1231 | 2147483647 |
|
1231 | 2147483647 | |
|
1232 | $ hg debugrevspec 'wdir()~3' | |||
|
1233 | 5 | |||
1232 | $ hg debugrevspec 'wdir()~0' |
|
1234 | $ hg debugrevspec 'wdir()~0' | |
1233 | 2147483647 |
|
1235 | 2147483647 | |
1234 | $ hg debugrevspec 'p1(wdir())' |
|
1236 | $ hg debugrevspec 'p1(wdir())' |
General Comments 0
You need to be logged in to leave comments.
Login now