mercurial/statichttprepo.py
changeset 17725 ffd589d4b785
parent 17649 f65c6a5f256c
child 18125 ad194a8ab5c1
equal deleted inserted replaced
17724:bf4b72d8dd4d 17725:ffd589d4b785
    71         def __call__(self, path, mode="r", atomictemp=None):
    71         def __call__(self, path, mode="r", atomictemp=None):
    72             if mode not in ('r', 'rb'):
    72             if mode not in ('r', 'rb'):
    73                 raise IOError('Permission denied')
    73                 raise IOError('Permission denied')
    74             f = "/".join((self.base, urllib.quote(path)))
    74             f = "/".join((self.base, urllib.quote(path)))
    75             return httprangereader(f, urlopener)
    75             return httprangereader(f, urlopener)
       
    76 
       
    77         def join(self, path):
       
    78             if path:
       
    79                 return os.path.join(self.base, path)
       
    80             else:
       
    81                 return self.base
    76 
    82 
    77     return statichttpvfs
    83     return statichttpvfs
    78 
    84 
    79 class statichttppeer(localrepo.localpeer):
    85 class statichttppeer(localrepo.localpeer):
    80     def local(self):
    86     def local(self):