Show More
@@ -307,10 +307,13 b' def rebase(ui, repo, **opts):' | |||
|
307 | 307 | divergencebasecandidates = rebaseobsrevs - rebaseobsskipped |
|
308 | 308 | |
|
309 | 309 | if divergencebasecandidates and not divergenceok: |
|
310 | msg = _("this rebase will cause divergence") | |
|
310 | divhashes = (str(repo[r]) | |
|
311 | for r in divergencebasecandidates) | |
|
312 | msg = _("this rebase will cause " | |
|
313 | "divergences from: %s") | |
|
311 | 314 | h = _("to force the rebase please set " |
|
312 | 315 | "rebase.allowdivergence=True") |
|
313 | raise error.Abort(msg, hint=h) | |
|
316 | raise error.Abort(msg % (",".join(divhashes),), hint=h) | |
|
314 | 317 | |
|
315 | 318 | # - plain prune (no successor) changesets are rebased |
|
316 | 319 | # - split changesets are not rebased if at least one of the |
@@ -771,7 +771,7 b' If a rebase is going to create divergenc' | |||
|
771 | 771 | phases: 8 draft |
|
772 | 772 | unstable: 1 changesets |
|
773 | 773 | $ hg rebase -s 10 -d 12 |
|
774 | abort: this rebase will cause divergence | |
|
774 | abort: this rebase will cause divergences from: 121d9e3bc4c6 | |
|
775 | 775 | (to force the rebase please set rebase.allowdivergence=True) |
|
776 | 776 | [255] |
|
777 | 777 | $ hg log -G |
General Comments 0
You need to be logged in to leave comments.
Login now