Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
23875:e573dd08aeaf | 23876:48fd1dfb99aa |
---|---|
918 continue | 918 continue |
919 # we will use the templatename as the color name since those two | 919 # we will use the templatename as the color name since those two |
920 # should be the same | 920 # should be the same |
921 for name in ns.names(self.repo, changenode): | 921 for name in ns.names(self.repo, changenode): |
922 # i18n: column positioning for "hg log" | 922 # i18n: column positioning for "hg log" |
923 tname = _(("%s:" % ns.templatename).ljust(13) + "%s\n") % name | 923 name = _(("%s:" % ns.logname).ljust(13) + "%s\n") % name |
924 self.ui.write("%s" % tname, label='log.%s' % ns.templatename) | 924 self.ui.write("%s" % name, label='log.%s' % ns.colorname) |
925 if self.ui.debugflag: | 925 if self.ui.debugflag: |
926 # i18n: column positioning for "hg log" | 926 # i18n: column positioning for "hg log" |
927 self.ui.write(_("phase: %s\n") % _(ctx.phasestr()), | 927 self.ui.write(_("phase: %s\n") % _(ctx.phasestr()), |
928 label='log.phase') | 928 label='log.phase') |
929 for parent in parents: | 929 for parent in parents: |