Show More
@@ -2108,7 +2108,8 b' def _rev(repo, subset, x):' | |||||
2108 | except (TypeError, ValueError): |
|
2108 | except (TypeError, ValueError): | |
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 | repo.changelog.node(l) # check that the rev exists |
|
2111 | if l not in _virtualrevs: | |
|
2112 | repo.changelog.node(l) # check that the rev exists | |||
2112 | return subset & baseset([l]) |
|
2113 | return subset & baseset([l]) | |
2113 |
|
2114 | |||
2114 |
|
2115 |
@@ -1263,6 +1263,13 b' default. join() should agree with the de' | |||||
1263 | 5:13207e5a10d9fd28ec424934298e176197f2c67f, |
|
1263 | 5:13207e5a10d9fd28ec424934298e176197f2c67f, | |
1264 | 4:bbe44766e73d5f11ed2177f1838de10c53ef3e74 |
|
1264 | 4:bbe44766e73d5f11ed2177f1838de10c53ef3e74 | |
1265 |
|
1265 | |||
|
1266 | %d parameter handling: | |||
|
1267 | ||||
|
1268 | $ hg log -T '{revset("%d", rev)}\n' -r'wdir()' | |||
|
1269 | 2147483647 | |||
|
1270 | $ hg log -T '{revset("%d", rev)}\n' -r'null' | |||
|
1271 | -1 | |||
|
1272 | ||||
1266 | Invalid arguments passed to revset() |
|
1273 | Invalid arguments passed to revset() | |
1267 |
|
1274 | |||
1268 | $ hg log -T '{revset("%whatever", 0)}\n' |
|
1275 | $ hg log -T '{revset("%whatever", 0)}\n' |
General Comments 0
You need to be logged in to leave comments.
Login now