comparison hgext/histedit.py @ 27674:78d86664e3a2

histedit: prefer edit commit, edit message, use commit Selecting editing commits, rewording commit messages, and selecting commits are key actions, we will prefer them more generally in a future commit, this pulls them ahead before that to make the diffs easier to read. The remaining commands are left alphabetically sorted
author timeless <timeless@mozdev.org>
date Wed, 23 Dec 2015 21:20:08 +0000
parents d93d340dc6ee
children d073f4c70575
comparison
equal deleted inserted replaced
27673:d93d340dc6ee 27674:78d86664e3a2
216 216
217 def geteditcomment(first, last): 217 def geteditcomment(first, last):
218 """ construct the editor comment 218 """ construct the editor comment
219 The comment includes:: 219 The comment includes::
220 - an intro 220 - an intro
221 - short commands 221 - sorted primary commands
222 - sorted short commands
222 223
223 Commands are only included once. 224 Commands are only included once.
224 """ 225 """
225 intro = _("""Edit history between %s and %s 226 intro = _("""Edit history between %s and %s
226 227
227 Commits are listed from least to most recent 228 Commits are listed from least to most recent
228 229
229 Commands:""") 230 Commands:""")
230 # i18n: command names and abbreviations must remain untranslated 231 # i18n: command names and abbreviations must remain untranslated
231 verbs = _(""" 232 verbs = _("""
233 e, edit = use commit, but stop for amending
234 m, mess = edit commit message without changing commit content
232 p, pick = use commit 235 p, pick = use commit
233 e, edit = use commit, but stop for amending 236 d, drop = remove commit from history
234 f, fold = use commit, but combine it with the one above 237 f, fold = use commit, but combine it with the one above
235 r, roll = like fold, but discard this commit's description 238 r, roll = like fold, but discard this commit's description
236 d, drop = remove commit from history
237 m, mess = edit commit message without changing commit content
238 """) 239 """)
239 240
240 return ''.join(['# %s\n' % l if l else '#\n' 241 return ''.join(['# %s\n' % l if l else '#\n'
241 for l in ((intro % (first, last) + verbs).split('\n'))]) 242 for l in ((intro % (first, last) + verbs).split('\n'))])
242 243