##// END OF EJS Templates
histedit: make check for unresolved conflicts explicit (issue5545)...
Siddharth Agarwal -
r32057:e5ffc91a stable
parent child Browse files
Show More
@@ -198,6 +198,7 b' from mercurial import ('
198 hg,
198 hg,
199 lock,
199 lock,
200 merge as mergemod,
200 merge as mergemod,
201 mergeutil,
201 node,
202 node,
202 obsolete,
203 obsolete,
203 repair,
204 repair,
@@ -1297,6 +1298,10 b' def _getsummary(ctx):'
1297
1298
1298 def bootstrapcontinue(ui, state, opts):
1299 def bootstrapcontinue(ui, state, opts):
1299 repo = state.repo
1300 repo = state.repo
1301
1302 ms = mergemod.mergestate.read(repo)
1303 mergeutil.checkunresolved(ms)
1304
1300 if state.actions:
1305 if state.actions:
1301 actobj = state.actions.pop(0)
1306 actobj = state.actions.pop(0)
1302
1307
@@ -161,12 +161,17 b' fix up'
161 warning: conflicts while merging e! (edit, then use 'hg resolve --mark')
161 warning: conflicts while merging e! (edit, then use 'hg resolve --mark')
162 Fix up the change (pick 7b4e2f4b7bcd)
162 Fix up the change (pick 7b4e2f4b7bcd)
163 (hg histedit --continue to resume)
163 (hg histedit --continue to resume)
164 $ hg histedit --continue 2>&1 | fixbundle
165 abort: unresolved merge conflicts (see 'hg help resolve')
164
166
165 This failure is caused by 7b4e2f4b7bcd "e" not rebasing the non commutative
167 This failure is caused by 7b4e2f4b7bcd "e" not rebasing the non commutative
166 former children.
168 former children.
167
169
168 just continue this time
170 just continue this time
169 $ hg revert -r 'p1()' e
171 $ hg revert -r 'p1()' e
172 make sure the to-be-empty commit doesn't screw up the state (issue5545)
173 $ hg histedit --continue 2>&1 | fixbundle
174 abort: unresolved merge conflicts (see 'hg help resolve')
170 $ hg resolve --mark e
175 $ hg resolve --mark e
171 (no more unresolved files)
176 (no more unresolved files)
172 continue: hg histedit --continue
177 continue: hg histedit --continue
General Comments 0
You need to be logged in to leave comments. Login now