Show More
@@ -239,7 +239,6 b' def _pushbundle2(pushop):' | |||||
239 | # create reply capability |
|
239 | # create reply capability | |
240 | capsblob = bundle2.encodecaps(pushop.repo.bundle2caps) |
|
240 | capsblob = bundle2.encodecaps(pushop.repo.bundle2caps) | |
241 | bundler.newpart('b2x:replycaps', data=capsblob) |
|
241 | bundler.newpart('b2x:replycaps', data=capsblob) | |
242 | extrainfo = _pushbundle2extraparts(pushop, bundler) |
|
|||
243 | replyhandlers = [] |
|
242 | replyhandlers = [] | |
244 | for partgen in bundle2partsgenerators: |
|
243 | for partgen in bundle2partsgenerators: | |
245 | ret = partgen(pushop, bundler) |
|
244 | ret = partgen(pushop, bundler) | |
@@ -258,21 +257,6 b' def _pushbundle2(pushop):' | |||||
258 | raise util.Abort('missing support for %s' % exc) |
|
257 | raise util.Abort('missing support for %s' % exc) | |
259 | for rephand in replyhandlers: |
|
258 | for rephand in replyhandlers: | |
260 | rephand(op) |
|
259 | rephand(op) | |
261 | _pushbundle2extrareply(pushop, op, extrainfo) |
|
|||
262 |
|
||||
263 | def _pushbundle2extraparts(pushop, bundler): |
|
|||
264 | """hook function to let extensions add parts |
|
|||
265 |
|
||||
266 | Return a dict to let extensions pass data to the reply processing. |
|
|||
267 | """ |
|
|||
268 | return {} |
|
|||
269 |
|
||||
270 | def _pushbundle2extrareply(pushop, op, extrainfo): |
|
|||
271 | """hook function to let extensions react to part replies |
|
|||
272 |
|
||||
273 | The dict from _pushbundle2extrareply is fed to this function. |
|
|||
274 | """ |
|
|||
275 | pass |
|
|||
276 |
|
260 | |||
277 | def _pushchangeset(pushop): |
|
261 | def _pushchangeset(pushop): | |
278 | """Make the actual push of changeset bundle to remote repo""" |
|
262 | """Make the actual push of changeset bundle to remote repo""" |
General Comments 0
You need to be logged in to leave comments.
Login now