##// END OF EJS Templates
histedit: hook afterresolvedstates
timeless -
r27627:dcbba68e default
parent child Browse files
Show More
@@ -1457,5 +1457,7 b' def extsetup(ui):'
1457 cmdutil.unfinishedstates.append(
1457 cmdutil.unfinishedstates.append(
1458 ['histedit-state', False, True, _('histedit in progress'),
1458 ['histedit-state', False, True, _('histedit in progress'),
1459 _("use 'hg histedit --continue' or 'hg histedit --abort'")])
1459 _("use 'hg histedit --continue' or 'hg histedit --abort'")])
1460 cmdutil.afterresolvedstates.append(
1461 ['histedit-state', _('hg histedit --continue')])
1460 if ui.configbool("experimental", "histeditng"):
1462 if ui.configbool("experimental", "histeditng"):
1461 globals()['base'] = addhisteditaction(['base', 'b'])(base)
1463 globals()['base'] = addhisteditaction(['base', 'b'])(base)
@@ -178,6 +178,7 b' Continue'
178 $ echo b2 > B
178 $ echo b2 > B
179 $ hg resolve --mark B
179 $ hg resolve --mark B
180 (no more unresolved files)
180 (no more unresolved files)
181 continue: hg histedit --continue
181 $ hg histedit --continue | fixbundle
182 $ hg histedit --continue | fixbundle
182 $ hg tglog
183 $ hg tglog
183 @ 6:03772da75548bb42a8f1eacd8c91d0717a147fcd:draft 'X'
184 @ 6:03772da75548bb42a8f1eacd8c91d0717a147fcd:draft 'X'
@@ -95,6 +95,7 b' fix up'
95 $ echo 'I can haz no commute' > e
95 $ echo 'I can haz no commute' > e
96 $ hg resolve --mark e
96 $ hg resolve --mark e
97 (no more unresolved files)
97 (no more unresolved files)
98 continue: hg histedit --continue
98 $ cat > cat.py <<EOF
99 $ cat > cat.py <<EOF
99 > import sys
100 > import sys
100 > print open(sys.argv[1]).read()
101 > print open(sys.argv[1]).read()
@@ -128,6 +129,7 b' just continue this time'
128 $ hg revert -r 'p1()' e
129 $ hg revert -r 'p1()' e
129 $ hg resolve --mark e
130 $ hg resolve --mark e
130 (no more unresolved files)
131 (no more unresolved files)
132 continue: hg histedit --continue
131 $ hg histedit --continue 2>&1 | fixbundle
133 $ hg histedit --continue 2>&1 | fixbundle
132 7b4e2f4b7bcd: empty changeset
134 7b4e2f4b7bcd: empty changeset
133
135
@@ -255,6 +257,7 b' fix up'
255 $ echo 'I can haz no commute' > e
257 $ echo 'I can haz no commute' > e
256 $ hg resolve --mark e
258 $ hg resolve --mark e
257 (no more unresolved files)
259 (no more unresolved files)
260 continue: hg histedit --continue
258 $ hg histedit --continue 2>&1 | fixbundle | grep -v '2 files removed'
261 $ hg histedit --continue 2>&1 | fixbundle | grep -v '2 files removed'
259 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
262 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
260 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
263 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
@@ -266,6 +269,7 b' just continue this time'
266 $ hg revert -r 'p1()' e
269 $ hg revert -r 'p1()' e
267 $ hg resolve --mark e
270 $ hg resolve --mark e
268 (no more unresolved files)
271 (no more unresolved files)
272 continue: hg histedit --continue
269 $ hg histedit --continue 2>&1 | fixbundle
273 $ hg histedit --continue 2>&1 | fixbundle
270 7b4e2f4b7bcd: empty changeset
274 7b4e2f4b7bcd: empty changeset
271
275
@@ -305,6 +305,7 b' should effectively drop the changes from'
305 $ hg revert -r 'p1()' file
305 $ hg revert -r 'p1()' file
306 $ hg resolve --mark file
306 $ hg resolve --mark file
307 (no more unresolved files)
307 (no more unresolved files)
308 continue: hg histedit --continue
308 $ hg histedit --continue
309 $ hg histedit --continue
309 251d831eeec5: empty changeset
310 251d831eeec5: empty changeset
310 saved backup bundle to $TESTTMP/*-backup.hg (glob)
311 saved backup bundle to $TESTTMP/*-backup.hg (glob)
@@ -364,6 +365,7 b' dropped revision.'
364 > EOF
365 > EOF
365 $ hg resolve --mark file
366 $ hg resolve --mark file
366 (no more unresolved files)
367 (no more unresolved files)
368 continue: hg histedit --continue
367 $ hg commit -m '+5.2'
369 $ hg commit -m '+5.2'
368 created new head
370 created new head
369 $ echo 6 >> file
371 $ echo 6 >> file
@@ -153,6 +153,7 b' fix up'
153 $ echo 'I can haz no commute' > e
153 $ echo 'I can haz no commute' > e
154 $ hg resolve --mark e
154 $ hg resolve --mark e
155 (no more unresolved files)
155 (no more unresolved files)
156 continue: hg histedit --continue
156 $ hg histedit --continue 2>&1 | fixbundle
157 $ hg histedit --continue 2>&1 | fixbundle
157 merging e
158 merging e
158 warning: conflicts while merging e! (edit, then use 'hg resolve --mark')
159 warning: conflicts while merging e! (edit, then use 'hg resolve --mark')
@@ -165,6 +166,7 b' just continue this time'
165 $ hg revert -r 'p1()' e
166 $ hg revert -r 'p1()' e
166 $ hg resolve --mark e
167 $ hg resolve --mark e
167 (no more unresolved files)
168 (no more unresolved files)
169 continue: hg histedit --continue
168 $ hg histedit --continue 2>&1 | fixbundle
170 $ hg histedit --continue 2>&1 | fixbundle
169 7b4e2f4b7bcd: empty changeset
171 7b4e2f4b7bcd: empty changeset
170
172
@@ -236,6 +238,7 b' edit the history, this time with a fold '
236 $ echo 'I can haz no commute' > e
238 $ echo 'I can haz no commute' > e
237 $ hg resolve --mark e
239 $ hg resolve --mark e
238 (no more unresolved files)
240 (no more unresolved files)
241 continue: hg histedit --continue
239 $ hg histedit --continue 2>&1 | fixbundle
242 $ hg histedit --continue 2>&1 | fixbundle
240 merging e
243 merging e
241 warning: conflicts while merging e! (edit, then use 'hg resolve --mark')
244 warning: conflicts while merging e! (edit, then use 'hg resolve --mark')
@@ -244,6 +247,7 b' second edit also fails, but just continu'
244 $ hg revert -r 'p1()' e
247 $ hg revert -r 'p1()' e
245 $ hg resolve --mark e
248 $ hg resolve --mark e
246 (no more unresolved files)
249 (no more unresolved files)
250 continue: hg histedit --continue
247 $ hg histedit --continue 2>&1 | fixbundle
251 $ hg histedit --continue 2>&1 | fixbundle
248 7b4e2f4b7bcd: empty changeset
252 7b4e2f4b7bcd: empty changeset
249
253
General Comments 0
You need to be logged in to leave comments. Login now