mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
publishing: add helper method to localrepo
This commit is contained in:
parent
da0f39bd8a
commit
27839628f6
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user