mercurial/statichttprepo.py
changeset 5315 639935f2e63a
parent 4840 bf10a03a6b24
parent 5313 121f961b358c
equal deleted inserted replaced
5312:189d82b6962e 5315:639935f2e63a
    31 class statichttprepository(localrepo.localrepository):
    31 class statichttprepository(localrepo.localrepository):
    32     def __init__(self, ui, path):
    32     def __init__(self, ui, path):
    33         self._url = path
    33         self._url = path
    34         self.ui = ui
    34         self.ui = ui
    35 
    35 
    36         self.path = (path + "/.hg")
    36         self.path = path.rstrip('/') + "/.hg"
    37         self.opener = opener(self.path)
    37         self.opener = opener(self.path)
    38         # find requirements
    38         # find requirements
    39         try:
    39         try:
    40             requirements = self.opener("requires").read().splitlines()
    40             requirements = self.opener("requires").read().splitlines()
    41         except IOError:
    41         except IOError: