Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/templater.py @ 3456:451ec905625b
Add new branch info to templater and use it in map-cmdline.default.
The template currently shows old (hg log -b style) branch tags, too,
but not in the same way as the built in changeset_printer.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 18 Oct 2006 17:58:51 +0200 |
parents | bc5985d53386 |
children | fab28100ea88 |
comparison
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]), |