##// END OF EJS Templates
template: add showbranch template for {branch}...
Eric Eisner -
r13156:d79fdff5 default
parent child Browse files
Show More
@@ -145,6 +145,9 def getrenamedfn(repo, endrev=None):
145 def showauthor(repo, ctx, templ, **args):
145 def showauthor(repo, ctx, templ, **args):
146 return ctx.user()
146 return ctx.user()
147
147
148 def showbranch(**args):
149 return args['ctx'].branch()
150
148 def showbranches(**args):
151 def showbranches(**args):
149 branch = args['ctx'].branch()
152 branch = args['ctx'].branch()
150 if branch != 'default':
153 if branch != 'default':
@@ -247,6 +250,7 def showtags(**args):
247 # revcache - a cache dictionary for the current revision
250 # revcache - a cache dictionary for the current revision
248 keywords = {
251 keywords = {
249 'author': showauthor,
252 'author': showauthor,
253 'branch': showbranch,
250 'branches': showbranches,
254 'branches': showbranches,
251 'children': showchildren,
255 'children': showchildren,
252 'date': showdate,
256 'date': showdate,
@@ -570,7 +570,7 Issue2130: xml output for 'hg heads' is
570
570
571 Keys work:
571 Keys work:
572
572
573 $ for key in author branches date desc file_adds file_dels file_mods \
573 $ for key in author branch branches date desc file_adds file_dels file_mods \
574 > file_copies file_copies_switch files \
574 > file_copies file_copies_switch files \
575 > manifest node parents rev tags diffstat extras; do
575 > manifest node parents rev tags diffstat extras; do
576 > for mode in '' --verbose --debug; do
576 > for mode in '' --verbose --debug; do
@@ -604,6 +604,33 Keys work:
604 author--debug: other@place
604 author--debug: other@place
605 author--debug: A. N. Other <other@place>
605 author--debug: A. N. Other <other@place>
606 author--debug: User Name <user@hostname>
606 author--debug: User Name <user@hostname>
607 branch: default
608 branch: default
609 branch: default
610 branch: default
611 branch: foo
612 branch: default
613 branch: default
614 branch: default
615 branch: default
616 branch--verbose: default
617 branch--verbose: default
618 branch--verbose: default
619 branch--verbose: default
620 branch--verbose: foo
621 branch--verbose: default
622 branch--verbose: default
623 branch--verbose: default
624 branch--verbose: default
625 branch--debug: default
626 branch--debug: default
627 branch--debug: default
628 branch--debug: default
629 branch--debug: foo
630 branch--debug: default
631 branch--debug: default
632 branch--debug: default
633 branch--debug: default
607 branches:
634 branches:
608 branches:
635 branches:
609 branches:
636 branches:
General Comments 0
You need to be logged in to leave comments. Login now