Show More
@@ -492,7 +492,7 def showrevslist(name, revs, **args): | |||||
492 | repo = args['ctx'].repo() |
|
492 | repo = args['ctx'].repo() | |
493 | f = _showlist(name, revs, **args) |
|
493 | f = _showlist(name, revs, **args) | |
494 | return _hybrid(f, revs, |
|
494 | return _hybrid(f, revs, | |
495 | lambda x: {name: x, 'ctx': repo[x], 'revcache': {}}) |
|
495 | lambda x: {name: x, 'ctx': repo[int(x)], 'revcache': {}}) | |
496 |
|
496 | |||
497 | def showsubrepos(**args): |
|
497 | def showsubrepos(**args): | |
498 | """:subrepos: List of strings. Updated subrepositories in the changeset.""" |
|
498 | """:subrepos: List of strings. Updated subrepositories in the changeset.""" |
@@ -3310,6 +3310,13 Test revset function | |||||
3310 | 0 a |
|
3310 | 0 a | |
3311 | p |
|
3311 | p | |
3312 |
|
3312 | |||
|
3313 | a revset item must be evaluated as an integer revision, not an offset from tip | |||
|
3314 | ||||
|
3315 | $ hg log -l 1 -T '{revset("null") % "{rev}:{node|short}"}\n' | |||
|
3316 | -1:000000000000 | |||
|
3317 | $ hg log -l 1 -T '{revset("%s", "null") % "{rev}:{node|short}"}\n' | |||
|
3318 | -1:000000000000 | |||
|
3319 | ||||
3313 | Test active bookmark templating |
|
3320 | Test active bookmark templating | |
3314 |
|
3321 | |||
3315 | $ hg book foo |
|
3322 | $ hg book foo |
General Comments 0
You need to be logged in to leave comments.
Login now