cmdutil: avoid wrapping ctx.phasestr() by _() stable
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Sat, 25 Apr 2015 23:44:53 +0900
branchstable
changeset 24864 bff42a92012e
parent 24863 f3558829471b
child 24865 d90e50c6e406
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"
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Sat Apr 25 23:44:53 2015 +0900
+++ b/mercurial/cmdutil.py	Sat Apr 25 23:44:53 2015 +0900
@@ -1142,7 +1142,7 @@
                               label='log.%s' % ns.colorname)
         if self.ui.debugflag:
             # i18n: column positioning for "hg log"
-            self.ui.write(_("phase:       %s\n") % _(ctx.phasestr()),
+            self.ui.write(_("phase:       %s\n") % ctx.phasestr(),
                           label='log.phase')
         for pctx in self._meaningful_parentrevs(ctx):
             label = 'log.parent changeset.%s' % pctx.phasestr()