def _run_command(self, command, type, input=None): def error_handler(cmd, error): patt = re.compile(CVSPASS_ERROR_MESSAGE) return patt.match(error) is not None command.set_error_handler(error_handler) Repository._run_command(self, command, type, input)
def _run_command (self, command, type, input = None): def error_handler (cmd, error): patt = re.compile (CVSPASS_ERROR_MESSAGE) return patt.match (error) is not None command.set_error_handler (error_handler) Repository._run_command (self, command, type, input)
def _run_command(self, command, type, input=None): try: Repository._run_command(self, command, type, input) except CommandRunningError, e: # Read error message question = e.error.split('\n')[-1] if question.strip() == SSL_CERTIFICATE_QUESTION: Repository._run_command(self, command, type, 'p\n')
def __init__ (self, uri): try: info = get_info (uri) root = info['repository root'] except: root = uri Repository.__init__ (self, root, 'svn')
def _run_command(self, command, type, input=None): try: Repository._run_command(self, command, type, input) except CommandRunningError, e: # Read error message question = e.error.split('\n')[-1] if question.strip() == SSL_CERTIFICATE_QUESTION: Repository._run_command(command, type, 'p\n')
def __init__(self, uri): try: info = get_info(uri) root = info['repository root'] except: root = uri Repository.__init__(self, root, 'svn')
def __init__(self, uri, user=None, passwd=None): try: auth = get_auth_info(uri) if (user is not None) and (passwd is not None): self.user = user self.passwd = passwd else: self.user = auth['user'] self.passwd = auth['password'] info = get_info(auth['uri'], self.user, self.passwd) root = info['repository root'] except: root = uri Repository.__init__(self, root, 'svn')
def __init__(self, uri): Repository.__init__(self, uri, 'bzr')
def __init__ (self, uri): Repository.__init__ (self, uri, 'git') self.git_version = None
def __init__(self, uri): Repository.__init__(self, uri, 'git') self.git_version = None
def __init__(self, uri): Repository.__init__(self, uri, 'cvs')
def __init__(self, uri): Repository.__init__(self, uri, 'tarball')
def __init__ (self, uri): Repository.__init__ (self, uri, 'cvs')