diff -r d34058dd3246 -r 616a455b02ca mercurial/changegroup.py --- a/mercurial/changegroup.py Wed Aug 06 00:54:37 2014 -0700 +++ b/mercurial/changegroup.py Wed Aug 06 01:54:19 2014 -0700 @@ -700,12 +700,12 @@ # We should not use added here but the list of all change in # the bundle if publishing: - phases.advanceboundary(repo, phases.public, srccontent) + phases.advanceboundary(repo, tr, phases.public, srccontent) else: # Those changesets have been pushed from the outside, their # phases are going to be pushed alongside. Therefor # `targetphase` is ignored. - phases.advanceboundary(repo, phases.draft, srccontent) + phases.advanceboundary(repo, tr, phases.draft, srccontent) phases.retractboundary(repo, phases.draft, added) elif srctype != 'strip': # publishing only alter behavior during push