publishing: add helper method to localrepo

This commit is contained in:
Matt Mackall 2015-06-18 15:33:24 -05:00
parent da0f39bd8a
commit 27839628f6

View File

@ -797,6 +797,9 @@ class localrepository(object):
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():