Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 23876:48fd1dfb99aa
log: use namespace logname and colorname
Now that we have the machinary to change the log name and the color label used,
let's use that. Tests have been updated accordingly.
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Wed, 14 Jan 2015 20:29:47 -0800 |
parents | b95b9fd7ba29 |
children | 9994f45ba714 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Wed Jan 14 20:11:02 2015 -0800 +++ b/mercurial/cmdutil.py Wed Jan 14 20:29:47 2015 -0800 @@ -920,8 +920,8 @@ # should be the same for name in ns.names(self.repo, changenode): # i18n: column positioning for "hg log" - tname = _(("%s:" % ns.templatename).ljust(13) + "%s\n") % name - self.ui.write("%s" % tname, label='log.%s' % ns.templatename) + name = _(("%s:" % ns.logname).ljust(13) + "%s\n") % name + self.ui.write("%s" % name, label='log.%s' % ns.colorname) if self.ui.debugflag: # i18n: column positioning for "hg log" self.ui.write(_("phase: %s\n") % _(ctx.phasestr()),