diff -r 0bee97fa1fa8 -r f0745da75056 mercurial/changegroup.py --- a/mercurial/changegroup.py Thu Jun 18 15:33:24 2015 -0500 +++ b/mercurial/changegroup.py Thu Jun 18 15:34:22 2015 -0500 @@ -820,7 +820,7 @@ repo.hook('pretxnchangegroup', throw=True, pending=p, **hookargs) added = [cl.node(r) for r in xrange(clstart, clend)] - publishing = repo.ui.configbool('phases', 'publish', True) + publishing = repo.publishing() if srctype in ('push', 'serve'): # Old servers can not push the boundary themselves. # New servers won't push the boundary if changeset already