def __init__(self, server, base): self.server = server if not base.endswith('/'): base += '/' Transport.__init__(self, base) self.base_path = self.base[len(self.server.scheme) - 1:] self.scheme = self.server.scheme
def __init__(self, url, _client=None): Transport.__init__(self, url) (scheme, _, loc, _, _) = urlparse.urlsplit(url) assert scheme == "git" hostport, self._path = urllib.splithost(loc) (self._host, self._port) = urllib.splitnport(hostport, git.protocol.TCP_GIT_PORT) self._client = _client
def __init__(self, server, base): self.server = server if not base.endswith('/'): base += '/' Transport.__init__(self, base) self.base_path = self.base[len(self.server.scheme)-1:] self.scheme = self.server.scheme
def __init__(self, server, url): self.server = server Transport.__init__(self, url)