mercurial/localrepo.py
changeset 23666 965788d9ae09
parent 23648 915ac9403e13
child 23667 f8df993516d0
equal deleted inserted replaced
23665:a90499a6ad8d 23666:965788d9ae09
   756         if not self.ui.configbool('phases', 'publish', True):
   756         if not self.ui.configbool('phases', 'publish', True):
   757             return True
   757             return True
   758         # if publishing we can't copy if there is filtered content
   758         # if publishing we can't copy if there is filtered content
   759         return not self.filtered('visible').changelog.filteredrevs
   759         return not self.filtered('visible').changelog.filteredrevs
   760 
   760 
       
   761     def shared(self):
       
   762         '''the type of shared repository (None if not shared)'''
       
   763         if self.sharedpath != self.path:
       
   764             return 'store'
       
   765         return None
       
   766 
   761     def join(self, f, *insidef):
   767     def join(self, f, *insidef):
   762         return os.path.join(self.path, f, *insidef)
   768         return os.path.join(self.path, f, *insidef)
   763 
   769 
   764     def wjoin(self, f, *insidef):
   770     def wjoin(self, f, *insidef):
   765         return os.path.join(self.root, f, *insidef)
   771         return os.path.join(self.root, f, *insidef)