mercurial/bundle2.py
branchstable
changeset 21177 952af771bc17
parent 21176 70fcb0a71445
child 21179 372f4772f7a0
--- a/mercurial/bundle2.py	Tue Apr 22 11:22:41 2014 -0700
+++ b/mercurial/bundle2.py	Mon Apr 21 15:48:52 2014 -0700
@@ -743,3 +743,9 @@
     if op.reply is None:
         op.reply = bundle20(op.ui, caps)
 
+@parthandler('b2x:error:abort')
+def handlereplycaps(op, inpart):
+    """Used to transmit abort error over the wire"""
+    manargs = dict(inpart.mandatoryparams)
+    advargs = dict(inpart.advisoryparams)
+    raise util.Abort(manargs['message'], hint=advargs.get('hint'))