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)
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)
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)
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)
def INFO(url): out = exec_svn_cmd( ['svn', 'info', '--xml', '--no-auth-cache', '--non-interactive', url]) return xmlo.loads(out)
def LIST(url): out = exec_svn_cmd([ 'svn', 'list', '--xml', '--incremental', '--no-auth-cache', '--non-interactive', url ]) return xmlo.loads(out)