mercurial/templater.py
changeset 3456 451ec905625b
parent 3361 bc5985d53386
child 3457 fab28100ea88
equal deleted inserted replaced
3455:10b6fc51f672 3456:451ec905625b
   429                 yield one(last, tag=lastname)
   429                 yield one(last, tag=lastname)
   430             endname = 'end_' + names
   430             endname = 'end_' + names
   431             if endname in self.t:
   431             if endname in self.t:
   432                 yield self.t(endname, **args)
   432                 yield self.t(endname, **args)
   433 
   433 
   434         if brinfo:
   434         def showbranches(**args):
   435             def showbranches(**args):
   435             branch = changes[5].get("branch")
   436                 if changenode in brinfo:
   436             if branch:
   437                     for x in showlist('branch', brinfo[changenode],
   437                 yield showlist('branch', [branch], plural='branches', **args)
   438                                       plural='branches', **args):
   438             # add old style branches if requested
   439                         yield x
   439             if brinfo and changenode in brinfo:
   440         else:
   440                 for x in showlist('branch', brinfo[changenode],
   441             showbranches = ''
   441                                   plural='branches', **args):
       
   442                     yield x
   442 
   443 
   443         if self.ui.debugflag:
   444         if self.ui.debugflag:
   444             def showmanifest(**args):
   445             def showmanifest(**args):
   445                 args = args.copy()
   446                 args = args.copy()
   446                 args.update(dict(rev=self.repo.manifest.rev(changes[0]),
   447                 args.update(dict(rev=self.repo.manifest.rev(changes[0]),