Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 24864:bff42a92012e stable
cmdutil: avoid wrapping ctx.phasestr() by _()
This wrapping seems meaningless, because:
- there is no "_()" invocation to prepare for extracting phase names
to be translated
"make update-pot" doesn't extract msgids for phase names
- phase names are kine of reserved keywords like as branch name "default"
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Sat, 25 Apr 2015 23:44:53 +0900 |
parents | d8505bfe4825 |
children | e1ec3d075c67 |
comparison
equal
deleted
inserted
replaced
24863:f3558829471b | 24864:bff42a92012e |
---|---|
1140 for name in ns.names(self.repo, changenode): | 1140 for name in ns.names(self.repo, changenode): |
1141 self.ui.write(ns.logfmt % name, | 1141 self.ui.write(ns.logfmt % name, |
1142 label='log.%s' % ns.colorname) | 1142 label='log.%s' % ns.colorname) |
1143 if self.ui.debugflag: | 1143 if self.ui.debugflag: |
1144 # i18n: column positioning for "hg log" | 1144 # i18n: column positioning for "hg log" |
1145 self.ui.write(_("phase: %s\n") % _(ctx.phasestr()), | 1145 self.ui.write(_("phase: %s\n") % ctx.phasestr(), |
1146 label='log.phase') | 1146 label='log.phase') |
1147 for pctx in self._meaningful_parentrevs(ctx): | 1147 for pctx in self._meaningful_parentrevs(ctx): |
1148 label = 'log.parent changeset.%s' % pctx.phasestr() | 1148 label = 'log.parent changeset.%s' % pctx.phasestr() |
1149 # i18n: column positioning for "hg log" | 1149 # i18n: column positioning for "hg log" |
1150 self.ui.write(_("parent: %d:%s\n") | 1150 self.ui.write(_("parent: %d:%s\n") |