Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.py @ 17788:9912baaae7df
color: add additional changeset.phase label to log.changeset and log.parent
This allows the user to set different colors for each phase, e.g.
[color]
changeset.public = blue
changeset.draft = green
changeset.secret = red
In addition, this doesn't affect current configuration for custom log.changeset
colors, but rather adds the option for users that want to visually see which
changesets are amendable.
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Tue, 16 Oct 2012 13:35:58 -0500 |
parents | 6d218e47cf9b |
children | a8aba2921456 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Tue Oct 16 18:05:33 2012 -0500 +++ b/mercurial/cmdutil.py Tue Oct 16 13:35:58 2012 -0500 @@ -687,7 +687,7 @@ for p in self._meaningful_parentrevs(log, rev)] self.ui.write(_("changeset: %d:%s\n") % (rev, hexfunc(changenode)), - label='log.changeset') + label='log.changeset changeset.%s' % ctx.phasestr()) branch = ctx.branch() # don't show the default branch name @@ -705,7 +705,7 @@ label='log.phase') for parent in parents: self.ui.write(_("parent: %d:%s\n") % parent, - label='log.parent') + label='log.parent changeset.%s' % ctx.phasestr()) if self.ui.debugflag: mnode = ctx.manifestnode()