Mercurial > hg-stable
changeset 24741:bb67e52362d6
bundle2: fix names for error part handler
The name is not very important but copy paste banshee got there. We make
distinctive name.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Sat, 11 Apr 2015 16:55:14 -0400 |
parents | d283517b260b |
children | 39ee0444e27c |
files | mercurial/bundle2.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bundle2.py Wed Apr 15 11:11:54 2015 -0400 +++ b/mercurial/bundle2.py Sat Apr 11 16:55:14 2015 -0400 @@ -1158,12 +1158,12 @@ op.reply = bundle20(op.ui, caps) @parthandler('error:abort', ('message', 'hint')) -def handlereplycaps(op, inpart): +def handleerrorabort(op, inpart): """Used to transmit abort error over the wire""" raise util.Abort(inpart.params['message'], hint=inpart.params.get('hint')) @parthandler('error:unsupportedcontent', ('parttype', 'params')) -def handlereplycaps(op, inpart): +def handleerrorunsupportedcontent(op, inpart): """Used to transmit unknown content error over the wire""" kwargs = {} parttype = inpart.params.get('parttype') @@ -1176,7 +1176,7 @@ raise error.UnsupportedPartError(**kwargs) @parthandler('error:pushraced', ('message',)) -def handlereplycaps(op, inpart): +def handleerrorpushraced(op, inpart): """Used to transmit push race error over the wire""" raise error.ResponseError(_('push failed:'), inpart.params['message'])