[PATCH 1 of 5 v2] histedit: refactor command names
timeless
timeless at mozdev.org
Wed Dec 23 22:43:10 UTC 2015
# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1450828622 0
# Tue Dec 22 23:57:02 2015 +0000
# Node ID 84a11cb9e89d231f298ec87cad2c3e5b963aec28
# Parent e2aa9c4030c4109e5efa50462ffc6048ca30106f
histedit: refactor command names
Future patches will actually include additional commands into this list
diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -218,20 +218,22 @@
# leave the attribute unspecified.
testedwith = 'internal'
-# i18n: command names and abbreviations must remain untranslated
editcomment = _("""# Edit history between %s and %s
#
# Commits are listed from least to most recent
#
# Commands:
-# p, pick = use commit
-# e, edit = use commit, but stop for amending
-# f, fold = use commit, but combine it with the one above
-# r, roll = like fold, but discard this commit's description
-# d, drop = remove commit from history
-# m, mess = edit commit message without changing commit content
-#
-""")
+%s""") % ("%s", "%s",
+''.join(["# %s\n" % l for l in (
+"p, pick = %s" % _("use commit"),
+"e, edit = %s" % _("use commit, but stop for amending"),
+"f, fold = %s" % _("use commit, but combine it with the one above"),
+"r, roll = %s" % _("like fold, but discard this commit's description"),
+"d, drop = %s" % _("remove commit from history"),
+"m, mess = %s" % _("edit commit message without changing commit content"),
+"",
+)])
+)
class histeditstate(object):
def __init__(self, repo, parentctxnode=None, actions=None, keep=None,
More information about the Mercurial-devel
mailing list