mercurial/templatekw.py
changeset 13047 6c375e07d673
parent 11655 6faf015e0ba0
child 13114 8f29a08e7bbc
equal deleted inserted replaced
13046:7cc4263e07a9 13047:6c375e07d673
   146     return ctx.user()
   146     return ctx.user()
   147 
   147 
   148 def showbranches(**args):
   148 def showbranches(**args):
   149     branch = args['ctx'].branch()
   149     branch = args['ctx'].branch()
   150     if branch != 'default':
   150     if branch != 'default':
   151         branch = encoding.tolocal(branch)
       
   152         return showlist('branch', [branch], plural='branches', **args)
   151         return showlist('branch', [branch], plural='branches', **args)
   153 
   152 
   154 def showchildren(**args):
   153 def showchildren(**args):
   155     ctx = args['ctx']
   154     ctx = args['ctx']
   156     childrevs = ['%d:%s' % (cctx, cctx) for cctx in ctx.children()]
   155     childrevs = ['%d:%s' % (cctx, cctx) for cctx in ctx.children()]