changeset 262:81ba86662cbd

Add treepkg/subversion.list_url function, a wrapper for "svn list"
author Bernhard Herzog <bh@intevation.de>
date Fri, 24 Apr 2009 18:33:12 +0000
parents e574b03a2957
children acf6c0ce2014
files treepkg/subversion.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/subversion.py	Fri Apr 24 18:21:01 2009 +0000
+++ b/treepkg/subversion.py	Fri Apr 24 18:33:12 2009 +0000
@@ -15,6 +15,11 @@
 from util import extract_value_for_key
 
 
+def list_url(url):
+    """Runs svn list with the given url and returns files listed as a list"""
+    output = run.capture_output(cmdexpand("svn list $url", **locals()))
+    return output.splitlines()
+
 def checkout(url, localdir, revision=None, recurse=True):
     """Runs svn to checkout the repository at url into the localdir"""
     args = []
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)