Mercurial > hg-stable
changeset 34910:498697fe41f2 stable
exchange: propagate the subfunctions return
The parts generator can return a callback to handle server reply. We should
propagate the return for correctness.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 19 Oct 2017 21:50:14 +0200 |
parents | a52e5604d864 |
children | 645b6684cf5b |
files | mercurial/exchange.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/exchange.py Thu Oct 19 15:15:05 2017 -0500 +++ b/mercurial/exchange.py Thu Oct 19 21:50:14 2017 +0200 @@ -813,9 +813,9 @@ hasphaseheads = 'heads' in b2caps.get('phases', ()) if hasphaseheads and not legacyphase: - _pushb2phaseheads(pushop, bundler) + return _pushb2phaseheads(pushop, bundler) elif haspushkey: - _pushb2phasespushkey(pushop, bundler) + return _pushb2phasespushkey(pushop, bundler) def _pushb2phaseheads(pushop, bundler): """push phase information through a bundle2 - binary part"""