def svnpropget(self, path, prop, rev="HEAD"): path = self.repo_path + "/" + path path = util.normalize_url(fileurl(path)) args = ["svn", "propget", "-r", str(rev), prop, path] p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) stdout, stderr = p.communicate() if p.returncode: raise Exception("svn ls failed on %s: %r" % (path, stderr)) return stdout.strip()
def svnls(self, path, rev="HEAD"): path = self.repo_path + "/" + path path = util.normalize_url(fileurl(path)) args = ["svn", "ls", "-r", rev, "-R", path] p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) stdout, stderr = p.communicate() if p.returncode: raise Exception("svn ls failed on %s: %r" % (path, stderr)) entries = [e.strip("/") for e in stdout.splitlines()] entries.sort() return entries
def svnls(self, path, rev='HEAD'): path = self.repo_path + '/' + path path = util.normalize_url(fileurl(path)) args = ['svn', 'ls', '-r', rev, '-R', path] p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) stdout, stderr = p.communicate() if p.returncode: raise Exception('svn ls failed on %s: %r' % (path, stderr)) entries = [e.strip('/') for e in stdout.splitlines()] entries.sort() return entries