Exemple #1
0
def LOG(url, rev=None, limit=-1):
    cmd = 'svn log -v --xml --no-auth-cache --non-interactive'.split(' ')
    if rev is not None:
        cmd.append('-r')
        cmd.append(rev)
    if limit != -1:
        cmd.append('-l')
        cmd.append(str(limit))
    cmd.append(url)
    out = exec_svn_cmd(cmd)
    return xmlo.loads(out)
Exemple #2
0
def LOG(url, rev=None, limit=-1):
    cmd = 'svn log -v --xml --no-auth-cache --non-interactive'.split(' ')
    if rev is not None:
        cmd.append('-r')
        cmd.append(rev)
    if limit != -1:
        cmd.append('-l')
        cmd.append(str(limit))
    cmd.append(url)
    code, out ,err = exec_cmd(cmd)

    if code != 0:
        raise Exception(err)

    return xmlo.loads(out)
Exemple #3
0
def INFO(url):
    code, out ,err = exec_cmd(['svn','info', '--xml', '--no-auth-cache', '--non-interactive', url])
    if code != 0:
        raise Exception(err)
    return xmlo.loads(out)
Exemple #4
0
def LIST(url):
    code, out ,err = exec_cmd(['svn', 'list','--xml', '--incremental', 
                               '--no-auth-cache', '--non-interactive', url])
    if code != 0:
        raise Exception(err)
    return xmlo.loads(out) 
Exemple #5
0
def INFO(url):
    out = exec_svn_cmd(
        ['svn', 'info', '--xml', '--no-auth-cache', '--non-interactive', url])
    return xmlo.loads(out)
Exemple #6
0
def LIST(url):
    out = exec_svn_cmd([
        'svn', 'list', '--xml', '--incremental', '--no-auth-cache',
        '--non-interactive', url
    ])
    return xmlo.loads(out)