# HG changeset patch # User Boris Feld # Date 2017-10-19 19:50:14 # Node ID 498697fe41f2ff08432743d62ee87f9c22630c81 # Parent a52e5604d864579a78a4a5c2b4228bddc916ed5a exchange: propagate the subfunctions return The parts generator can return a callback to handle server reply. We should propagate the return for correctness. diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -813,9 +813,9 @@ def _pushb2phases(pushop, bundler): 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"""