mercurial/bundle2.py
branchstable
changeset 21177 952af771bc17
parent 21176 70fcb0a71445
child 21179 372f4772f7a0
equal deleted inserted replaced
21176:70fcb0a71445 21177:952af771bc17
   741     The payload contains the capabilities information for the reply"""
   741     The payload contains the capabilities information for the reply"""
   742     caps = decodecaps(inpart.read())
   742     caps = decodecaps(inpart.read())
   743     if op.reply is None:
   743     if op.reply is None:
   744         op.reply = bundle20(op.ui, caps)
   744         op.reply = bundle20(op.ui, caps)
   745 
   745 
       
   746 @parthandler('b2x:error:abort')
       
   747 def handlereplycaps(op, inpart):
       
   748     """Used to transmit abort error over the wire"""
       
   749     manargs = dict(inpart.mandatoryparams)
       
   750     advargs = dict(inpart.advisoryparams)
       
   751     raise util.Abort(manargs['message'], hint=advargs.get('hint'))