Mercurial > hg > mercurial-source
comparison mercurial/cmdutil.py @ 13386:f78bc5ddbe4f
templater: add bookmarks to templates and default output
as bookmarks are not dispalyed as tags anymore, we add a bookmark label
to the changeset printer.
author | David Soria Parra <dsp@php.net> |
---|---|
date | Fri, 11 Feb 2011 19:47:39 +0100 |
parents | bf763946f8b0 |
children | 14f3795a5ed7 |
comparison
equal
deleted
inserted
replaced
13385:d012d95499f7 | 13386:f78bc5ddbe4f |
---|---|
804 branch = ctx.branch() | 804 branch = ctx.branch() |
805 # don't show the default branch name | 805 # don't show the default branch name |
806 if branch != 'default': | 806 if branch != 'default': |
807 self.ui.write(_("branch: %s\n") % branch, | 807 self.ui.write(_("branch: %s\n") % branch, |
808 label='log.branch') | 808 label='log.branch') |
809 for bookmark in self.repo.nodebookmarks(changenode): | |
810 self.ui.write(_("bookmark: %s\n") % bookmark, | |
811 label='log.bookmark') | |
809 for tag in self.repo.nodetags(changenode): | 812 for tag in self.repo.nodetags(changenode): |
810 self.ui.write(_("tag: %s\n") % tag, | 813 self.ui.write(_("tag: %s\n") % tag, |
811 label='log.tag') | 814 label='log.tag') |
812 for parent in parents: | 815 for parent in parents: |
813 self.ui.write(_("parent: %d:%s\n") % parent, | 816 self.ui.write(_("parent: %d:%s\n") % parent, |