publishing: add helper method to localrepo
authorMatt Mackall <mpm@selenic.com>
Thu, 18 Jun 2015 15:33:24 -0500
changeset 25623 0bee97fa1fa8
parent 25622 85294076adce
child 25624 f0745da75056
publishing: add helper method to localrepo
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed Jun 10 19:18:51 2015 -0700
+++ b/mercurial/localrepo.py	Thu Jun 18 15:33:24 2015 -0500
@@ -797,6 +797,9 @@
     def local(self):
         return self
 
+    def publishing(self):
+        return self.ui.configbool('phases', 'publish', True)
+
     def cancopy(self):
         # so statichttprepo's override of local() works
         if not self.local():