# HG changeset patch # User Matt Mackall # Date 1434659604 18000 # Node ID 0bee97fa1fa8ac455ff561b8294bcde2b15ec0f5 # Parent 85294076adceb3263056e366023cba2e88ace6ca publishing: add helper method to localrepo diff -r 85294076adce -r 0bee97fa1fa8 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():