bundle2: rename functions that have the same name

This commit is contained in:
Mike Hommey 2014-09-23 16:22:52 +09:00
parent 4d34e988b1
commit d553e368f9

View File

@ -832,13 +832,13 @@ def handlechangegroup(op, inpart):
assert not inpart.read()
@parthandler('b2x:reply:changegroup', ('return', 'in-reply-to'))
def handlechangegroup(op, inpart):
def handlereplychangegroup(op, inpart):
ret = int(inpart.params['return'])
replyto = int(inpart.params['in-reply-to'])
op.records.add('changegroup', {'return': ret}, replyto)
@parthandler('b2x:check:heads')
def handlechangegroup(op, inpart):
def handlecheckheads(op, inpart):
"""check that head of the repo did not change
This is used to detect a push race when using unbundle.