##// END OF EJS Templates
color: add additional changeset.phase label to log.changeset and log.parent...
Sean Farley -
r17788:9912baaa default
parent child Browse files
Show More
@@ -687,7 +687,7 b' class changeset_printer(object):'
687 for p in self._meaningful_parentrevs(log, rev)]
687 for p in self._meaningful_parentrevs(log, rev)]
688
688
689 self.ui.write(_("changeset: %d:%s\n") % (rev, hexfunc(changenode)),
689 self.ui.write(_("changeset: %d:%s\n") % (rev, hexfunc(changenode)),
690 label='log.changeset')
690 label='log.changeset changeset.%s' % ctx.phasestr())
691
691
692 branch = ctx.branch()
692 branch = ctx.branch()
693 # don't show the default branch name
693 # don't show the default branch name
@@ -705,7 +705,7 b' class changeset_printer(object):'
705 label='log.phase')
705 label='log.phase')
706 for parent in parents:
706 for parent in parents:
707 self.ui.write(_("parent: %d:%s\n") % parent,
707 self.ui.write(_("parent: %d:%s\n") % parent,
708 label='log.parent')
708 label='log.parent changeset.%s' % ctx.phasestr())
709
709
710 if self.ui.debugflag:
710 if self.ui.debugflag:
711 mnode = ctx.manifestnode()
711 mnode = ctx.manifestnode()
@@ -977,7 +977,7 b' def branches(ui, repo, active=False, clo'
977 label = 'branches.current'
977 label = 'branches.current'
978 rev = str(ctx.rev()).rjust(31 - encoding.colwidth(ctx.branch()))
978 rev = str(ctx.rev()).rjust(31 - encoding.colwidth(ctx.branch()))
979 rev = ui.label('%s:%s' % (rev, hexfunc(ctx.node())),
979 rev = ui.label('%s:%s' % (rev, hexfunc(ctx.node())),
980 'log.changeset')
980 'log.changeset changeset.%s' % ctx.phasestr())
981 tag = ui.label(ctx.branch(), label)
981 tag = ui.label(ctx.branch(), label)
982 if ui.quiet:
982 if ui.quiet:
983 ui.write("%s\n" % tag)
983 ui.write("%s\n" % tag)
@@ -5423,7 +5423,7 b' def summary(ui, repo, **opts):'
5423 # label with log.changeset (instead of log.parent) since this
5423 # label with log.changeset (instead of log.parent) since this
5424 # shows a working directory parent *changeset*:
5424 # shows a working directory parent *changeset*:
5425 ui.write(_('parent: %d:%s ') % (p.rev(), str(p)),
5425 ui.write(_('parent: %d:%s ') % (p.rev(), str(p)),
5426 label='log.changeset')
5426 label='log.changeset changeset.%s' % p.phasestr())
5427 ui.write(' '.join(p.tags()), label='log.tag')
5427 ui.write(' '.join(p.tags()), label='log.tag')
5428 if p.bookmarks():
5428 if p.bookmarks():
5429 marks.extend(p.bookmarks())
5429 marks.extend(p.bookmarks())
@@ -5710,7 +5710,7 b' def tags(ui, repo):'
5710
5710
5711 hn = hexfunc(n)
5711 hn = hexfunc(n)
5712 r = "%5d:%s" % (repo.changelog.rev(n), hn)
5712 r = "%5d:%s" % (repo.changelog.rev(n), hn)
5713 rev = ui.label(r, 'log.changeset')
5713 rev = ui.label(r, 'log.changeset changeset.%s' % repo[n].phasestr())
5714 spaces = " " * (30 - encoding.colwidth(t))
5714 spaces = " " * (30 - encoding.colwidth(t))
5715
5715
5716 tag = ui.label(t, 'tags.normal')
5716 tag = ui.label(t, 'tags.normal')
General Comments 0
You need to be logged in to leave comments. Login now