##// END OF EJS Templates
rebase: add potential divergent commit hashes to error message (issue5086)
Kostia Balytskyi -
r28188:6411140a default
parent child Browse files
Show More
@@ -307,10 +307,13 b' def rebase(ui, repo, **opts):'
307 divergencebasecandidates = rebaseobsrevs - rebaseobsskipped
307 divergencebasecandidates = rebaseobsrevs - rebaseobsskipped
308
308
309 if divergencebasecandidates and not divergenceok:
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 h = _("to force the rebase please set "
314 h = _("to force the rebase please set "
312 "rebase.allowdivergence=True")
315 "rebase.allowdivergence=True")
313 raise error.Abort(msg, hint=h)
316 raise error.Abort(msg % (",".join(divhashes),), hint=h)
314
317
315 # - plain prune (no successor) changesets are rebased
318 # - plain prune (no successor) changesets are rebased
316 # - split changesets are not rebased if at least one of the
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 phases: 8 draft
771 phases: 8 draft
772 unstable: 1 changesets
772 unstable: 1 changesets
773 $ hg rebase -s 10 -d 12
773 $ hg rebase -s 10 -d 12
774 abort: this rebase will cause divergence
774 abort: this rebase will cause divergences from: 121d9e3bc4c6
775 (to force the rebase please set rebase.allowdivergence=True)
775 (to force the rebase please set rebase.allowdivergence=True)
776 [255]
776 [255]
777 $ hg log -G
777 $ hg log -G
General Comments 0
You need to be logged in to leave comments. Login now