Exemplo n.º 1
0
    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)
Exemplo n.º 3
0
 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')
Exemplo n.º 4
0
 def __init__ (self, uri):
     try:
         info = get_info (uri)
         root = info['repository root']
     except:
         root = uri
         
     Repository.__init__ (self, root, 'svn')
Exemplo n.º 5
0
 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')
Exemplo n.º 6
0
    def __init__(self, uri):
        try:
            info = get_info(uri)
            root = info['repository root']
        except:
            root = uri

        Repository.__init__(self, root, 'svn')
Exemplo n.º 7
0
    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')
Exemplo n.º 8
0
    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')
Exemplo n.º 9
0
 def __init__(self, uri):
     Repository.__init__(self, uri, 'bzr')
Exemplo n.º 10
0
    def __init__ (self, uri):
        Repository.__init__ (self, uri, 'git')

        self.git_version = None
Exemplo n.º 11
0
    def __init__(self, uri):
        Repository.__init__(self, uri, 'git')

        self.git_version = None
Exemplo n.º 12
0
 def __init__(self, uri):
     Repository.__init__(self, uri, 'cvs')
Exemplo n.º 13
0
 def __init__(self, uri):
     Repository.__init__(self, uri, 'bzr')
Exemplo n.º 14
0
 def __init__(self, uri):
     Repository.__init__(self, uri, 'tarball')
Exemplo n.º 15
0
 def __init__(self, uri):
     Repository.__init__(self, uri, 'tarball')
 def __init__ (self, uri):
     Repository.__init__ (self, uri, 'cvs')