comparison mercurial/localrepo.py @ 25623:0bee97fa1fa8

publishing: add helper method to localrepo
author Matt Mackall <mpm@selenic.com>
date Thu, 18 Jun 2015 15:33:24 -0500
parents 8f88f768e24c
children f0745da75056
comparison
equal deleted inserted replaced
25622:85294076adce 25623:0bee97fa1fa8
795 return result 795 return result
796 796
797 def local(self): 797 def local(self):
798 return self 798 return self
799 799
800 def publishing(self):
801 return self.ui.configbool('phases', 'publish', True)
802
800 def cancopy(self): 803 def cancopy(self):
801 # so statichttprepo's override of local() works 804 # so statichttprepo's override of local() works
802 if not self.local(): 805 if not self.local():
803 return False 806 return False
804 if not self.ui.configbool('phases', 'publish', True): 807 if not self.ui.configbool('phases', 'publish', True):