Exemple #1
0
 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()
Exemple #2
0
 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
Exemple #3
0
 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