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