Show More
@@ -235,7 +235,8 b" def _destmergebranch(repo, action='merge" | |||||
235 | branch = ctx.branch() |
|
235 | branch = ctx.branch() | |
236 |
|
236 | |||
237 | bheads = repo.branchheads(branch) |
|
237 | bheads = repo.branchheads(branch) | |
238 |
|
|
238 | onhead = repo.revs('%ld and %ln', sourceset, bheads) | |
|
239 | if onheadcheck and not onhead: | |||
239 | # Case A: working copy if not on a head. (merge only) |
|
240 | # Case A: working copy if not on a head. (merge only) | |
240 | # |
|
241 | # | |
241 | # This is probably a user mistake We bailout pointing at 'hg update' |
|
242 | # This is probably a user mistake We bailout pointing at 'hg update' | |
@@ -267,6 +268,10 b" def _destmergebranch(repo, action='merge" | |||||
267 | elif len(repo.heads()) > 1: |
|
268 | elif len(repo.heads()) > 1: | |
268 | msg, hint = msgdestmerge['nootherbranchheads'][action] |
|
269 | msg, hint = msgdestmerge['nootherbranchheads'][action] | |
269 | msg %= branch |
|
270 | msg %= branch | |
|
271 | elif not onhead: | |||
|
272 | # if 'onheadcheck == False' (rebase case), | |||
|
273 | # this was not caught in Case A. | |||
|
274 | msg, hint = msgdestmerge['nootherheadsbehind'][action] | |||
270 | else: |
|
275 | else: | |
271 | msg, hint = msgdestmerge['nootherheads'][action] |
|
276 | msg, hint = msgdestmerge['nootherheads'][action] | |
272 | raise error.NoMergeDestAbort(msg, hint=hint) |
|
277 | raise error.NoMergeDestAbort(msg, hint=hint) |
General Comments 0
You need to be logged in to leave comments.
Login now