mercurial/exchange.py
branchstable
changeset 26829 58f1645f72c3
parent 26781 1aee2ab0f902
child 26855 9350f00a7b23
--- a/mercurial/exchange.py	Sat Oct 24 00:39:26 2015 +0100
+++ b/mercurial/exchange.py	Sat Oct 24 00:39:22 2015 +0100
@@ -798,6 +798,9 @@
             op = bundle2.processbundle(pushop.repo, reply, trgetter)
         except error.BundleValueError as exc:
             raise error.Abort('missing support for %s' % exc)
+        except bundle2.AbortFromPart as exc:
+            pushop.ui.status(_('remote: %s\n') % exc)
+            raise error.Abort(_('push failed on remote'), hint=exc.hint)
     except error.PushkeyFailed as exc:
         partid = int(exc.partid)
         if partid not in pushop.pkfailcb: