##// END OF EJS Templates
bundle2: only use callable return as reply handler...
Pierre-Yves David -
r21941:dab31290 stable
parent child Browse files
Show More
@@ -242,7 +242,8 b' def _pushbundle2(pushop):'
242 replyhandlers = []
242 replyhandlers = []
243 for partgen in bundle2partsgenerators:
243 for partgen in bundle2partsgenerators:
244 ret = partgen(pushop, bundler)
244 ret = partgen(pushop, bundler)
245 replyhandlers.append(ret)
245 if callable(ret):
246 replyhandlers.append(ret)
246 # do not push if nothing to push
247 # do not push if nothing to push
247 if bundler.nbparts <= 1:
248 if bundler.nbparts <= 1:
248 return
249 return
@@ -957,7 +957,6 b' Setting up'
957 > if reason == 'race':
957 > if reason == 'race':
958 > # 20 Bytes of crap
958 > # 20 Bytes of crap
959 > bundler.newpart('b2x:check:heads', data='01234567890123456789')
959 > bundler.newpart('b2x:check:heads', data='01234567890123456789')
960 > return lambda op: None
961 >
960 >
962 > @bundle2.parthandler("test:abort")
961 > @bundle2.parthandler("test:abort")
963 > def handleabort(op, part):
962 > def handleabort(op, part):
General Comments 0
You need to be logged in to leave comments. Login now