##// END OF EJS Templates
histedit: removing the experimental config 'histeditng'...
Saurabh Singh -
r34490:270e344a default
parent child Browse files
Show More
@@ -39,6 +39,7 b' file open in your editor::'
39 39 # r, roll = like fold, but discard this commit's description and date
40 40 # d, drop = remove commit from history
41 41 # m, mess = edit commit message without changing commit content
42 # b, base = checkout changeset and apply further changesets from there
42 43 #
43 44
44 45 In this file, lines beginning with ``#`` are ignored. You must specify a rule
@@ -61,6 +62,7 b' would reorganize the file to look like t'
61 62 # r, roll = like fold, but discard this commit's description and date
62 63 # d, drop = remove commit from history
63 64 # m, mess = edit commit message without changing commit content
65 # b, base = checkout changeset and apply further changesets from there
64 66 #
65 67
66 68 At which point you close the editor and ``histedit`` starts working. When you
@@ -815,6 +817,8 b' class fold(histeditaction):'
815 817 replacements.append((ich, (n,)))
816 818 return repo[n], replacements
817 819
820 @action(['base', 'b'],
821 _('checkout changeset and apply further changesets from there'))
818 822 class base(histeditaction):
819 823
820 824 def run(self):
@@ -905,7 +909,6 b' def findoutgoing(ui, repo, remote=None, '
905 909 raise error.Abort(msg, hint=hint)
906 910 return repo.lookup(roots[0])
907 911
908
909 912 @command('histedit',
910 913 [('', 'commands', '',
911 914 _('read history edits from the specified file'), _('FILE')),
@@ -938,6 +941,8 b' def histedit(ui, repo, *freeargs, **opts'
938 941
939 942 - `edit` to edit this changeset (preserving date)
940 943
944 - `base` to checkout changeset and apply further changesets from there
945
941 946 There are a number of ways to select the root changeset:
942 947
943 948 - Specify ANCESTOR directly
@@ -1631,7 +1636,3 b' def extsetup(ui):'
1631 1636 _("use 'hg histedit --continue' or 'hg histedit --abort'")])
1632 1637 cmdutil.afterresolvedstates.append(
1633 1638 ['histedit-state', _('hg histedit --continue')])
1634 if ui.configbool("experimental", "histeditng"):
1635 globals()['base'] = action(['base', 'b'],
1636 _('checkout changeset and apply further changesets from there')
1637 )(base)
@@ -70,6 +70,7 b' Run a dummy edit to make sure we get tip'
70 70 # e, edit = use commit, but stop for amending
71 71 # m, mess = edit commit message without changing commit content
72 72 # p, pick = use commit
73 # b, base = checkout changeset and apply further changesets from there
73 74 # d, drop = remove commit from history
74 75 # f, fold = use commit, but combine it with the one above
75 76 # r, roll = like fold, but discard this commit's description and date
@@ -305,6 +306,7 b' Test that trimming description using mul'
305 306 # e, edit = use commit, but stop for amending
306 307 # m, mess = edit commit message without changing commit content
307 308 # p, pick = use commit
309 # b, base = checkout changeset and apply further changesets from there
308 310 # d, drop = remove commit from history
309 311 # f, fold = use commit, but combine it with the one above
310 312 # r, roll = like fold, but discard this commit's description and date
@@ -541,6 +543,7 b" Check that 'roll' is selected by default"
541 543 # e, edit = use commit, but stop for amending
542 544 # m, mess = edit commit message without changing commit content
543 545 # p, pick = use commit
546 # b, base = checkout changeset and apply further changesets from there
544 547 # d, drop = remove commit from history
545 548 # f, fold = use commit, but combine it with the one above
546 549 # r, roll = like fold, but discard this commit's description and date
@@ -5,8 +5,6 b''
5 5 > tglog = log -G --template "{rev}:{node}:{phase} '{desc}'\n"
6 6 > [extensions]
7 7 > histedit=
8 > [experimental]
9 > histeditng=True
10 8 > EOF
11 9
12 10 Create repo a:
@@ -238,15 +236,6 b' base on a previously picked changeset'
238 236 hg: parse error: base "d273e35dcdf2" changeset was an edited list candidate
239 237 (base must only use unlisted changesets)
240 238
241 $ hg --config experimental.histeditng=False histedit 5 --commands - 2>&1 << EOF | fixbundle
242 > base cd010b8cd998 A
243 > pick d273e35dcdf2 B
244 > pick 03772da75548 X
245 > pick b2f90fd8aa85 I
246 > pick e8c55b19d366 J
247 > EOF
248 hg: parse error: unknown action "base"
249
250 239 $ hg tglog
251 240 @ 8:e8c55b19d366b335626e805484110d1d5f6f2ea3:draft 'J'
252 241 |
@@ -76,6 +76,7 b''
76 76 # e, edit = use commit, but stop for amending
77 77 # m, mess = edit commit message without changing commit content
78 78 # p, pick = use commit
79 # b, base = checkout changeset and apply further changesets from there
79 80 # d, drop = remove commit from history
80 81 # f, fold = use commit, but combine it with the one above
81 82 # r, roll = like fold, but discard this commit's description and date
@@ -132,6 +133,7 b''
132 133 # e, edit = use commit, but stop for amending
133 134 # m, mess = edit commit message without changing commit content
134 135 # p, pick = use commit
136 # b, base = checkout changeset and apply further changesets from there
135 137 # d, drop = remove commit from history
136 138 # f, fold = use commit, but combine it with the one above
137 139 # r, roll = like fold, but discard this commit's description and date
@@ -70,6 +70,7 b' show the edit commands offered'
70 70 # e, edit = use commit, but stop for amending
71 71 # m, mess = edit commit message without changing commit content
72 72 # p, pick = use commit
73 # b, base = checkout changeset and apply further changesets from there
73 74 # d, drop = remove commit from history
74 75 # f, fold = use commit, but combine it with the one above
75 76 # r, roll = like fold, but discard this commit's description and date
@@ -348,6 +349,7 b' Verify that revsetalias entries work wit'
348 349 # e, edit = use commit, but stop for amending
349 350 # m, mess = edit commit message without changing commit content
350 351 # p, pick = use commit
352 # b, base = checkout changeset and apply further changesets from there
351 353 # d, drop = remove commit from history
352 354 # f, fold = use commit, but combine it with the one above
353 355 # r, roll = like fold, but discard this commit's description and date
@@ -476,6 +476,7 b' Attempting to fold a change into a publi'
476 476 # e, edit = use commit, but stop for amending
477 477 # m, mess = edit commit message without changing commit content
478 478 # p, fold = use commit
479 # b, base = checkout changeset and apply further changesets from there
479 480 # d, drop = remove commit from history
480 481 # f, fold = use commit, but combine it with the one above
481 482 # r, roll = like fold, but discard this commit's description and date
@@ -132,6 +132,7 b' Base setup for the rest of the testing'
132 132 # e, edit = use commit, but stop for amending
133 133 # m, mess = edit commit message without changing commit content
134 134 # p, pick = use commit
135 # b, base = checkout changeset and apply further changesets from there
135 136 # d, drop = remove commit from history
136 137 # f, fold = use commit, but combine it with the one above
137 138 # r, roll = like fold, but discard this commit's description and date
@@ -52,6 +52,7 b' show the edit commands offered by outgoi'
52 52 # e, edit = use commit, but stop for amending
53 53 # m, mess = edit commit message without changing commit content
54 54 # p, pick = use commit
55 # b, base = checkout changeset and apply further changesets from there
55 56 # d, drop = remove commit from history
56 57 # f, fold = use commit, but combine it with the one above
57 58 # r, roll = like fold, but discard this commit's description and date
@@ -86,6 +87,7 b' show the error from unrelated repos'
86 87 # e, edit = use commit, but stop for amending
87 88 # m, mess = edit commit message without changing commit content
88 89 # p, pick = use commit
90 # b, base = checkout changeset and apply further changesets from there
89 91 # d, drop = remove commit from history
90 92 # f, fold = use commit, but combine it with the one above
91 93 # r, roll = like fold, but discard this commit's description and date
@@ -112,6 +114,7 b' test sensitivity to branch in URL:'
112 114 # e, edit = use commit, but stop for amending
113 115 # m, mess = edit commit message without changing commit content
114 116 # p, pick = use commit
117 # b, base = checkout changeset and apply further changesets from there
115 118 # d, drop = remove commit from history
116 119 # f, fold = use commit, but combine it with the one above
117 120 # r, roll = like fold, but discard this commit's description and date
General Comments 0
You need to be logged in to leave comments. Login now