[PATCH 1 of 3] publishing: add helper method to localrepo

Matt Mackall mpm at selenic.com
Thu Jun 18 23:30:21 CDT 2015


# HG changeset patch
# User Matt Mackall <mpm at selenic.com>
# Date 1434659604 18000
#      Thu Jun 18 15:33:24 2015 -0500
# Node ID f72ee1cb416bac50ce88728650799fdd55b49322
# Parent  6c48f012d37e67c3a0a33960a442340e494af9cc
publishing: add helper method to localrepo

diff -r 6c48f012d37e -r f72ee1cb416b mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Jun 15 16:06:17 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():


More information about the Mercurial-devel mailing list