diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -1844,7 +1844,6 @@ def handlephases(op, inpart): """apply phases from bundle part to repo""" headsbyphase = phases.binarydecode(inpart) phases.updatephases(op.repo.unfiltered(), op.gettransaction, headsbyphase) - op.records.add('phase-heads', {}) @parthandler('reply:pushkey', ('return', 'in-reply-to')) def handlepushkeyreply(op, inpart): diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -1400,10 +1400,6 @@ def _pullbundle2(pullop): if pullop.fetch: pullop.cgresult = bundle2.combinechangegroupresults(op) - # If the bundle had a phase-heads part, then phase exchange is already done - if op.records['phase-heads']: - pullop.stepsdone.add('phases') - # processing phases change for namespace, value in op.records['listkeys']: if namespace == 'phases':