示例#1
0
 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
示例#2
0
 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
示例#3
0
 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
示例#4
0
 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
示例#5
0
 def __init__(self, server, url):
     self.server = server
     Transport.__init__(self, url)
示例#6
0
 def __init__(self, server, url):
     self.server = server
     Transport.__init__(self, url)