##// END OF EJS Templates
merge with stable
Matt Mackall -
r25360:7d24a412 merge default
parent child Browse files
Show More
@@ -745,7 +745,7 b' def _histedit(ui, repo, state, *freeargs'
745
745
746
746
747 replacements = []
747 replacements = []
748 keep = opts.get('keep', False)
748 state.keep = opts.get('keep', False)
749
749
750 # rebuild state
750 # rebuild state
751 if goal == 'continue':
751 if goal == 'continue':
@@ -814,7 +814,7 b' def _histedit(ui, repo, state, *freeargs'
814 'exactly one common root'))
814 'exactly one common root'))
815 root = rr[0].node()
815 root = rr[0].node()
816
816
817 revs = between(repo, root, topmost, keep)
817 revs = between(repo, root, topmost, state.keep)
818 if not revs:
818 if not revs:
819 raise util.Abort(_('%s is not an ancestor of working directory') %
819 raise util.Abort(_('%s is not an ancestor of working directory') %
820 node.short(root))
820 node.short(root))
@@ -838,7 +838,6 b' def _histedit(ui, repo, state, *freeargs'
838
838
839 state.parentctxnode = parentctxnode
839 state.parentctxnode = parentctxnode
840 state.rules = rules
840 state.rules = rules
841 state.keep = keep
842 state.topmost = topmost
841 state.topmost = topmost
843 state.replacements = replacements
842 state.replacements = replacements
844
843
@@ -874,7 +873,7 b' def _histedit(ui, repo, state, *freeargs'
874 for n in succs[1:]:
873 for n in succs[1:]:
875 ui.debug(m % node.short(n))
874 ui.debug(m % node.short(n))
876
875
877 if not keep:
876 if not state.keep:
878 if mapping:
877 if mapping:
879 movebookmarks(ui, repo, mapping, state.topmost, ntm)
878 movebookmarks(ui, repo, mapping, state.topmost, ntm)
880 # TODO update mq state
879 # TODO update mq state
@@ -295,3 +295,32 b' Test that trimming description using mul'
295 # m, mess = edit message without changing commit content
295 # m, mess = edit message without changing commit content
296 #
296 #
297 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
297 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
298
299 Test --continue with --keep
300
301 $ hg strip -q -r . --config extensions.strip=
302 $ hg histedit '.^' -q --keep --commands - << EOF
303 > edit eb57da33312f 2 three
304 > pick f3cfcca30c44 4 x
305 > EOF
306 Make changes as needed, you may commit or record as needed now.
307 When you are finished, run hg histedit --continue to resume.
308 [1]
309 $ echo edit >> alpha
310 $ hg histedit -q --continue
311 $ hg log -G -T '{rev}:{node|short} {desc}'
312 @ 6:8fda0c726bf2 x
313 |
314 o 5:63379946892c three
315 |
316 | o 4:f3cfcca30c44 x
317 | |
318 | | o 3:2a30f3cfee78 four
319 | |/ ***
320 | | five
321 | o 2:eb57da33312f three
322 |/
323 o 1:579e40513370 two
324 |
325 o 0:6058cbb6cfd7 one
326
General Comments 0
You need to be logged in to leave comments. Login now