diff -r 03604f46d48a -r e411fd79ca69 mercurial/localrepo.py --- a/mercurial/localrepo.py Wed Dec 12 03:20:49 2012 +0100 +++ b/mercurial/localrepo.py Sat Nov 10 02:19:20 2012 +0100 @@ -1918,6 +1918,7 @@ mso = _("push includes obsolete changeset: %s!") msu = _("push includes unstable changeset: %s!") msb = _("push includes bumped changeset: %s!") + msd = _("push includes divergent changeset: %s!") # If we are to push if there is at least one # obsolete or unstable changeset in missing, at # least one of the missinghead will be obsolete or @@ -1930,6 +1931,8 @@ raise util.Abort(msu % ctx) elif ctx.bumped(): raise util.Abort(msb % ctx) + elif ctx.divergent(): + raise util.Abort(msd % ctx) discovery.checkheads(unfi, remote, outgoing, remoteheads, newbranch, bool(inc))