diff mercurial/localrepo.py @ 25624:f0745da75056

publishing: use new helper method
author Matt Mackall <mpm@selenic.com>
date Thu, 18 Jun 2015 15:34:22 -0500
parents 0bee97fa1fa8
children ce9e231265c1
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Jun 18 15:33:24 2015 -0500
+++ b/mercurial/localrepo.py	Thu Jun 18 15:34:22 2015 -0500
@@ -804,7 +804,7 @@
         # so statichttprepo's override of local() works
         if not self.local():
             return False
-        if not self.ui.configbool('phases', 'publish', True):
+        if not self.publishing():
             return True
         # if publishing we can't copy if there is filtered content
         return not self.filtered('visible').changelog.filteredrevs