Mercurial > public > mercurial-scm > hg-stable
diff mercurial/changegroup.py @ 25624:f0745da75056
publishing: use new helper method
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 18 Jun 2015 15:34:22 -0500 |
parents | 88a17ccf0196 |
children | 328739ea70c3 |
line wrap: on
line diff
--- 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