##// END OF EJS Templates
histedit: prefer edit commit, edit message, use commit...
timeless -
r27674:78d86664 default
parent child Browse files
Show More
@@ -218,7 +218,8 b' 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 """
@@ -229,12 +230,12 b' Commits are listed from least to most re'
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'
@@ -64,12 +64,13 b' Run a dummy edit to make sure we get tip'
64 # Commits are listed from least to most recent
64 # Commits are listed from least to most recent
65 #
65 #
66 # Commands:
66 # Commands:
67 #
68 # e, edit = use commit, but stop for amending
69 # m, mess = edit commit message without changing commit content
67 # p, pick = use commit
70 # p, pick = use commit
68 # e, edit = use commit, but stop for amending
71 # d, drop = remove commit from history
69 # f, fold = use commit, but combine it with the one above
72 # f, fold = use commit, but combine it with the one above
70 # r, roll = like fold, but discard this commit's description
73 # r, roll = like fold, but discard this commit's description
71 # d, drop = remove commit from history
72 # m, mess = edit commit message without changing commit content
73 #
74 #
74
75
75 Run on a revision not ancestors of the current working directory.
76 Run on a revision not ancestors of the current working directory.
@@ -293,12 +294,13 b' Test that trimming description using mul'
293 # Commits are listed from least to most recent
294 # Commits are listed from least to most recent
294 #
295 #
295 # Commands:
296 # Commands:
297 #
298 # e, edit = use commit, but stop for amending
299 # m, mess = edit commit message without changing commit content
296 # p, pick = use commit
300 # p, pick = use commit
297 # e, edit = use commit, but stop for amending
301 # d, drop = remove commit from history
298 # f, fold = use commit, but combine it with the one above
302 # f, fold = use commit, but combine it with the one above
299 # r, roll = like fold, but discard this commit's description
303 # r, roll = like fold, but discard this commit's description
300 # d, drop = remove commit from history
301 # m, mess = edit commit message without changing commit content
302 #
304 #
303
305
304 Test --continue with --keep
306 Test --continue with --keep
@@ -70,12 +70,13 b''
70 # Commits are listed from least to most recent
70 # Commits are listed from least to most recent
71 #
71 #
72 # Commands:
72 # Commands:
73 #
74 # e, edit = use commit, but stop for amending
75 # m, mess = edit commit message without changing commit content
73 # p, pick = use commit
76 # p, pick = use commit
74 # e, edit = use commit, but stop for amending
77 # d, drop = remove commit from history
75 # f, fold = use commit, but combine it with the one above
78 # f, fold = use commit, but combine it with the one above
76 # r, roll = like fold, but discard this commit's description
79 # r, roll = like fold, but discard this commit's description
77 # d, drop = remove commit from history
78 # m, mess = edit commit message without changing commit content
79 #
80 #
80 $ hg histedit 1 --commands - --verbose << EOF | grep histedit
81 $ hg histedit 1 --commands - --verbose << EOF | grep histedit
81 > pick 177f92b77385 2 c
82 > pick 177f92b77385 2 c
@@ -130,12 +131,13 b''
130 # Commits are listed from least to most recent
131 # Commits are listed from least to most recent
131 #
132 #
132 # Commands:
133 # Commands:
134 #
135 # e, edit = use commit, but stop for amending
136 # m, mess = edit commit message without changing commit content
133 # p, pick = use commit
137 # p, pick = use commit
134 # e, edit = use commit, but stop for amending
138 # d, drop = remove commit from history
135 # f, fold = use commit, but combine it with the one above
139 # f, fold = use commit, but combine it with the one above
136 # r, roll = like fold, but discard this commit's description
140 # r, roll = like fold, but discard this commit's description
137 # d, drop = remove commit from history
138 # m, mess = edit commit message without changing commit content
139 #
141 #
140 $ hg histedit 1 --commands - --verbose << EOF | grep histedit
142 $ hg histedit 1 --commands - --verbose << EOF | grep histedit
141 > pick b346ab9a313d 1 c
143 > pick b346ab9a313d 1 c
@@ -64,12 +64,13 b' show the edit commands offered'
64 # Commits are listed from least to most recent
64 # Commits are listed from least to most recent
65 #
65 #
66 # Commands:
66 # Commands:
67 #
68 # e, edit = use commit, but stop for amending
69 # m, mess = edit commit message without changing commit content
67 # p, pick = use commit
70 # p, pick = use commit
68 # e, edit = use commit, but stop for amending
71 # d, drop = remove commit from history
69 # f, fold = use commit, but combine it with the one above
72 # f, fold = use commit, but combine it with the one above
70 # r, roll = like fold, but discard this commit's description
73 # r, roll = like fold, but discard this commit's description
71 # d, drop = remove commit from history
72 # m, mess = edit commit message without changing commit content
73 #
74 #
74
75
75 edit the history
76 edit the history
@@ -342,12 +343,13 b' Verify that revsetalias entries work wit'
342 # Commits are listed from least to most recent
343 # Commits are listed from least to most recent
343 #
344 #
344 # Commands:
345 # Commands:
346 #
347 # e, edit = use commit, but stop for amending
348 # m, mess = edit commit message without changing commit content
345 # p, pick = use commit
349 # p, pick = use commit
346 # e, edit = use commit, but stop for amending
350 # d, drop = remove commit from history
347 # f, fold = use commit, but combine it with the one above
351 # f, fold = use commit, but combine it with the one above
348 # r, roll = like fold, but discard this commit's description
352 # r, roll = like fold, but discard this commit's description
349 # d, drop = remove commit from history
350 # m, mess = edit commit message without changing commit content
351 #
353 #
352
354
353 should also work if a commit message is missing
355 should also work if a commit message is missing
@@ -469,10 +469,11 b' Attempting to fold a change into a publi'
469 # Commits are listed from least to most recent
469 # Commits are listed from least to most recent
470 #
470 #
471 # Commands:
471 # Commands:
472 #
473 # e, edit = use commit, but stop for amending
474 # m, mess = edit commit message without changing commit content
472 # p, fold = use commit
475 # p, fold = use commit
473 # e, edit = use commit, but stop for amending
476 # d, drop = remove commit from history
474 # f, fold = use commit, but combine it with the one above
477 # f, fold = use commit, but combine it with the one above
475 # r, roll = like fold, but discard this commit's description
478 # r, roll = like fold, but discard this commit's description
476 # d, drop = remove commit from history
477 # m, mess = edit commit message without changing commit content
478 #
479 #
@@ -49,12 +49,13 b' Enable obsolete'
49 # Commits are listed from least to most recent
49 # Commits are listed from least to most recent
50 #
50 #
51 # Commands:
51 # Commands:
52 #
53 # e, edit = use commit, but stop for amending
54 # m, mess = edit commit message without changing commit content
52 # p, pick = use commit
55 # p, pick = use commit
53 # e, edit = use commit, but stop for amending
56 # d, drop = remove commit from history
54 # f, fold = use commit, but combine it with the one above
57 # f, fold = use commit, but combine it with the one above
55 # r, roll = like fold, but discard this commit's description
58 # r, roll = like fold, but discard this commit's description
56 # d, drop = remove commit from history
57 # m, mess = edit commit message without changing commit content
58 #
59 #
59 $ hg histedit 1 --commands - --verbose <<EOF | grep histedit
60 $ hg histedit 1 --commands - --verbose <<EOF | grep histedit
60 > pick 177f92b77385 2 c
61 > pick 177f92b77385 2 c
@@ -46,12 +46,13 b' show the edit commands offered by outgoi'
46 # Commits are listed from least to most recent
46 # Commits are listed from least to most recent
47 #
47 #
48 # Commands:
48 # Commands:
49 #
50 # e, edit = use commit, but stop for amending
51 # m, mess = edit commit message without changing commit content
49 # p, pick = use commit
52 # p, pick = use commit
50 # e, edit = use commit, but stop for amending
53 # d, drop = remove commit from history
51 # f, fold = use commit, but combine it with the one above
54 # f, fold = use commit, but combine it with the one above
52 # r, roll = like fold, but discard this commit's description
55 # r, roll = like fold, but discard this commit's description
53 # d, drop = remove commit from history
54 # m, mess = edit commit message without changing commit content
55 #
56 #
56 $ cd ..
57 $ cd ..
57
58
@@ -77,12 +78,13 b' show the error from unrelated repos'
77 # Commits are listed from least to most recent
78 # Commits are listed from least to most recent
78 #
79 #
79 # Commands:
80 # Commands:
81 #
82 # e, edit = use commit, but stop for amending
83 # m, mess = edit commit message without changing commit content
80 # p, pick = use commit
84 # p, pick = use commit
81 # e, edit = use commit, but stop for amending
85 # d, drop = remove commit from history
82 # f, fold = use commit, but combine it with the one above
86 # f, fold = use commit, but combine it with the one above
83 # r, roll = like fold, but discard this commit's description
87 # r, roll = like fold, but discard this commit's description
84 # d, drop = remove commit from history
85 # m, mess = edit commit message without changing commit content
86 #
88 #
87 $ cd ..
89 $ cd ..
88
90
@@ -100,12 +102,13 b' test sensitivity to branch in URL:'
100 # Commits are listed from least to most recent
102 # Commits are listed from least to most recent
101 #
103 #
102 # Commands:
104 # Commands:
105 #
106 # e, edit = use commit, but stop for amending
107 # m, mess = edit commit message without changing commit content
103 # p, pick = use commit
108 # p, pick = use commit
104 # e, edit = use commit, but stop for amending
109 # d, drop = remove commit from history
105 # f, fold = use commit, but combine it with the one above
110 # f, fold = use commit, but combine it with the one above
106 # r, roll = like fold, but discard this commit's description
111 # r, roll = like fold, but discard this commit's description
107 # d, drop = remove commit from history
108 # m, mess = edit commit message without changing commit content
109 #
112 #
110
113
111 test to check number of roots in outgoing revisions
114 test to check number of roots in outgoing revisions
General Comments 0
You need to be logged in to leave comments. Login now