comparison mercurial/statichttprepo.py @ 5313:121f961b358c

statichttprepo: fix calls on '/' URI (issue 747)
author Paul Bx <pb@e-scribe.com>
date Sat, 22 Sep 2007 18:37:35 +0200
parents 63b9d2deed48
children 639935f2e63a
comparison
equal deleted inserted replaced
5307:5b0b0834419c 5313:121f961b358c
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: