##// END OF EJS Templates
templatekw: fix join format of revset() function...
Yuya Nishihara -
r29623:33bf8bd8 stable
parent child Browse files
Show More
@@ -547,7 +547,8 b' def showrevslist(name, revs, **args):'
547 547 revs = [str(r) for r in revs] # ifcontains() needs a list of str
548 548 f = _showlist(name, revs, **args)
549 549 return _hybrid(f, revs,
550 lambda x: {name: x, 'ctx': repo[int(x)], 'revcache': {}})
550 lambda x: {name: x, 'ctx': repo[int(x)], 'revcache': {}},
551 lambda d: d[name])
551 552
552 553 @templatekeyword('subrepos')
553 554 def showsubrepos(**args):
@@ -3433,6 +3433,11 b' a revset item must be evaluated as an in'
3433 3433 $ hg log -l 1 -T '{revset("%s", "null") % "{rev}:{node|short}"}\n'
3434 3434 -1:000000000000
3435 3435
3436 join() should pick '{rev}' from revset items:
3437
3438 $ hg log -R ../a -T '{join(revset("parents(%d)", rev), ", ")}\n' -r6
3439 4, 5
3440
3436 3441 Test active bookmark templating
3437 3442
3438 3443 $ hg book foo
General Comments 0
You need to be logged in to leave comments. Login now