mercurial/localrepo.py
changeset 22362 c9b32c6a2944
parent 22342 262c5cc126c1
child 22404 12bc7f06fc41
equal deleted inserted replaced
22361:eb6adf750954 22362:c9b32c6a2944
   737         if not self.ui.configbool('phases', 'publish', True):
   737         if not self.ui.configbool('phases', 'publish', True):
   738             return True
   738             return True
   739         # if publishing we can't copy if there is filtered content
   739         # if publishing we can't copy if there is filtered content
   740         return not self.filtered('visible').changelog.filteredrevs
   740         return not self.filtered('visible').changelog.filteredrevs
   741 
   741 
   742     def join(self, f):
   742     def join(self, f, *insidef):
   743         return os.path.join(self.path, f)
   743         return os.path.join(self.path, f, *insidef)
   744 
   744 
   745     def wjoin(self, f):
   745     def wjoin(self, f, *insidef):
   746         return os.path.join(self.root, f)
   746         return os.path.join(self.root, f, *insidef)
   747 
   747 
   748     def file(self, f):
   748     def file(self, f):
   749         if f[0] == '/':
   749         if f[0] == '/':
   750             f = f[1:]
   750             f = f[1:]
   751         return filelog.filelog(self.sopener, f)
   751         return filelog.filelog(self.sopener, f)