Пример #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)
Пример #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')
Пример #4
0
 def __init__ (self, uri):
     try:
         info = get_info (uri)
         root = info['repository root']
     except:
         root = uri
         
     Repository.__init__ (self, root, 'svn')
Пример #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')
Пример #6
0
    def __init__(self, uri):
        try:
            info = get_info(uri)
            root = info['repository root']
        except:
            root = uri

        Repository.__init__(self, root, 'svn')
Пример #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')
Пример #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')
Пример #9
0
 def __init__(self, uri):
     Repository.__init__(self, uri, 'bzr')
Пример #10
0
    def __init__ (self, uri):
        Repository.__init__ (self, uri, 'git')

        self.git_version = None
Пример #11
0
    def __init__(self, uri):
        Repository.__init__(self, uri, 'git')

        self.git_version = None
Пример #12
0
 def __init__(self, uri):
     Repository.__init__(self, uri, 'cvs')
Пример #13
0
 def __init__(self, uri):
     Repository.__init__(self, uri, 'bzr')
Пример #14
0
 def __init__(self, uri):
     Repository.__init__(self, uri, 'tarball')
Пример #15
0
 def __init__(self, uri):
     Repository.__init__(self, uri, 'tarball')
 def __init__ (self, uri):
     Repository.__init__ (self, uri, 'cvs')