Mercurial > hg-stable
changeset 21906:08dcb572a456
bundle2-push: drop _pushbundle2extraparts
All core user are now using the new way. We drop the old way.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 02 Jul 2014 15:47:39 +0200 |
parents | 7923648ad915 |
children | 7e5dfa00e3c2 |
files | mercurial/exchange.py |
diffstat | 1 files changed, 0 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/exchange.py Wed Jul 02 16:10:14 2014 +0200 +++ b/mercurial/exchange.py Wed Jul 02 15:47:39 2014 +0200 @@ -239,7 +239,6 @@ # create reply capability capsblob = bundle2.encodecaps(pushop.repo.bundle2caps) bundler.newpart('b2x:replycaps', data=capsblob) - extrainfo = _pushbundle2extraparts(pushop, bundler) replyhandlers = [] for partgen in bundle2partsgenerators: ret = partgen(pushop, bundler) @@ -258,21 +257,6 @@ raise util.Abort('missing support for %s' % exc) for rephand in replyhandlers: rephand(op) - _pushbundle2extrareply(pushop, op, extrainfo) - -def _pushbundle2extraparts(pushop, bundler): - """hook function to let extensions add parts - - Return a dict to let extensions pass data to the reply processing. - """ - return {} - -def _pushbundle2extrareply(pushop, op, extrainfo): - """hook function to let extensions react to part replies - - The dict from _pushbundle2extrareply is fed to this function. - """ - pass def _pushchangeset(pushop): """Make the actual push of changeset bundle to remote repo"""