mercurial/bundle2.py
changeset 21619 292331e906d7
parent 21618 7568f5c1c801
child 21620 6eaa71b2a3cc
equal deleted inserted replaced
21618:7568f5c1c801 21619:292331e906d7
   826 @parthandler('b2x:error:abort')
   826 @parthandler('b2x:error:abort')
   827 def handlereplycaps(op, inpart):
   827 def handlereplycaps(op, inpart):
   828     """Used to transmit abort error over the wire"""
   828     """Used to transmit abort error over the wire"""
   829     raise util.Abort(inpart.params['message'], hint=inpart.params.get('hint'))
   829     raise util.Abort(inpart.params['message'], hint=inpart.params.get('hint'))
   830 
   830 
   831 @parthandler('b2x:error:unknownpart')
   831 @parthandler('b2x:error:unsupportedcontent')
   832 def handlereplycaps(op, inpart):
   832 def handlereplycaps(op, inpart):
   833     """Used to transmit unknown part error over the wire"""
   833     """Used to transmit unknown content error over the wire"""
   834     raise error.BundleValueError(inpart.params['parttype'])
   834     raise error.BundleValueError(inpart.params['parttype'])
   835 
   835 
   836 @parthandler('b2x:error:pushraced')
   836 @parthandler('b2x:error:pushraced')
   837 def handlereplycaps(op, inpart):
   837 def handlereplycaps(op, inpart):
   838     """Used to transmit push race error over the wire"""
   838     """Used to transmit push race error over the wire"""