Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 26389:bda14660f0d7
cmdutil: remove HG: prefix from translation strings
author | timeless@mozdev.org |
---|---|
date | Fri, 25 Sep 2015 03:44:15 -0400 |
parents | 4a8e21578e14 |
children | 0486c16ce621 |
comparison
equal
deleted
inserted
replaced
26388:8dd99720a139 | 26389:bda14660f0d7 |
---|---|
2740 modified, added, removed = ctx.modified(), ctx.added(), ctx.removed() | 2740 modified, added, removed = ctx.modified(), ctx.added(), ctx.removed() |
2741 if ctx.description(): | 2741 if ctx.description(): |
2742 edittext.append(ctx.description()) | 2742 edittext.append(ctx.description()) |
2743 edittext.append("") | 2743 edittext.append("") |
2744 edittext.append("") # Empty line between message and comments. | 2744 edittext.append("") # Empty line between message and comments. |
2745 edittext.append(_("HG: Enter commit message." | 2745 edittext.append("HG: %s" % _("Enter commit message." |
2746 " Lines beginning with 'HG:' are removed.")) | 2746 " Lines beginning with 'HG:' are removed.")) |
2747 edittext.append("HG: %s" % extramsg) | 2747 edittext.append("HG: %s" % extramsg) |
2748 edittext.append("HG: --") | 2748 edittext.append("HG: --") |
2749 edittext.append(_("HG: user: %s") % ctx.user()) | 2749 edittext.append("HG: %s" % (_("user: %s") % ctx.user())) |
2750 if ctx.p2(): | 2750 if ctx.p2(): |
2751 edittext.append(_("HG: branch merge")) | 2751 edittext.append("HG: %s" % _("branch merge")) |
2752 if ctx.branch(): | 2752 if ctx.branch(): |
2753 edittext.append(_("HG: branch '%s'") % ctx.branch()) | 2753 edittext.append("HG: %s" % (_("branch '%s'") % ctx.branch())) |
2754 if bookmarks.isactivewdirparent(repo): | 2754 if bookmarks.isactivewdirparent(repo): |
2755 edittext.append(_("HG: bookmark '%s'") % repo._activebookmark) | 2755 edittext.append("HG: %s" % (_("bookmark '%s'") % repo._activebookmark)) |
2756 edittext.extend([_("HG: subrepo %s") % s for s in subs]) | 2756 edittext.extend(["HG: %s" % (_("subrepo %s") % s) for s in subs]) |
2757 edittext.extend([_("HG: added %s") % f for f in added]) | 2757 edittext.extend(["HG: %s" % (_("added %s") % f) for f in added]) |
2758 edittext.extend([_("HG: changed %s") % f for f in modified]) | 2758 edittext.extend(["HG: %s" % (_("changed %s") % f) for f in modified]) |
2759 edittext.extend([_("HG: removed %s") % f for f in removed]) | 2759 edittext.extend(["HG: %s" % (_("removed %s") % f) for f in removed]) |
2760 if not added and not modified and not removed: | 2760 if not added and not modified and not removed: |
2761 edittext.append(_("HG: no files changed")) | 2761 edittext.append("HG: %s" % _("no files changed")) |
2762 edittext.append("") | 2762 edittext.append("") |
2763 | 2763 |
2764 return "\n".join(edittext) | 2764 return "\n".join(edittext) |
2765 | 2765 |
2766 def commitstatus(repo, node, branch, bheads=None, opts=None): | 2766 def commitstatus(repo, node, branch, bheads=None, opts=None): |