Show More
@@ -2109,7 +2109,10 b' def _rev(repo, subset, x):' | |||||
2109 | # i18n: "rev" is a keyword |
|
2109 | # i18n: "rev" is a keyword | |
2110 | raise error.ParseError(_(b"rev expects a number")) |
|
2110 | raise error.ParseError(_(b"rev expects a number")) | |
2111 | if l not in _virtualrevs: |
|
2111 | if l not in _virtualrevs: | |
2112 | repo.changelog.node(l) # check that the rev exists |
|
2112 | try: | |
|
2113 | repo.changelog.node(l) # check that the rev exists | |||
|
2114 | except IndexError: | |||
|
2115 | raise error.RepoLookupError(_(b"unknown revision '%d'") % l) | |||
2113 | return subset & baseset([l]) |
|
2116 | return subset & baseset([l]) | |
2114 |
|
2117 | |||
2115 |
|
2118 |
@@ -1269,6 +1269,12 b' default. join() should agree with the de' | |||||
1269 | 2147483647 |
|
1269 | 2147483647 | |
1270 | $ hg log -T '{revset("%d", rev)}\n' -r'null' |
|
1270 | $ hg log -T '{revset("%d", rev)}\n' -r'null' | |
1271 | -1 |
|
1271 | -1 | |
|
1272 | $ hg log -T '{revset("%d", rev + 1)}\n' -r'tip' | |||
|
1273 | abort: unknown revision '3'! | |||
|
1274 | [255] | |||
|
1275 | $ hg log -T '{revset("%d", rev - 1)}\n' -r'null' | |||
|
1276 | abort: unknown revision '-2'! | |||
|
1277 | [255] | |||
1272 |
|
1278 | |||
1273 | Invalid arguments passed to revset() |
|
1279 | Invalid arguments passed to revset() | |
1274 |
|
1280 |
General Comments 0
You need to be logged in to leave comments.
Login now