changeset 25623:0bee97fa1fa8

publishing: add helper method to localrepo
author Matt Mackall <mpm@selenic.com>
date Thu, 18 Jun 2015 15:33:24 -0500
parents 85294076adce
children f0745da75056
files mercurial/localrepo.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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():