diff -r 800bb35d891e -r 13dc7f29531e mercurial/bundle2.py --- a/mercurial/bundle2.py Wed Aug 16 15:48:48 2017 -0700 +++ b/mercurial/bundle2.py Thu Aug 17 13:04:47 2017 -0700 @@ -1815,6 +1815,7 @@ """apply phases from bundle part to repo""" headsbyphase = _readphaseheads(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):