mercurial/bundle2.py
branchstable
changeset 21186 9f3652e851f8
parent 21185 5b3717e1a3ea
child 21597 1daad9dcdba2
equal deleted inserted replaced
21185:5b3717e1a3ea 21186:9f3652e851f8
   758 @parthandler('b2x:error:unknownpart')
   758 @parthandler('b2x:error:unknownpart')
   759 def handlereplycaps(op, inpart):
   759 def handlereplycaps(op, inpart):
   760     """Used to transmit unknown part error over the wire"""
   760     """Used to transmit unknown part error over the wire"""
   761     manargs = dict(inpart.mandatoryparams)
   761     manargs = dict(inpart.mandatoryparams)
   762     raise UnknownPartError(manargs['parttype'])
   762     raise UnknownPartError(manargs['parttype'])
       
   763 
       
   764 @parthandler('b2x:error:pushraced')
       
   765 def handlereplycaps(op, inpart):
       
   766     """Used to transmit push race error over the wire"""
       
   767     manargs = dict(inpart.mandatoryparams)
       
   768     raise error.ResponseError(_('push failed:'), manargs['message'])