# HG changeset patch # User Bernhard Herzog # Date 1240597992 0 # Node ID 81ba86662cbd749dc849de0f98a9cd3ff4b2471f # Parent e574b03a295744d17c0c7e971bb8855627f9e455 Add treepkg/subversion.list_url function, a wrapper for "svn list" diff -r e574b03a2957 -r 81ba86662cbd treepkg/subversion.py --- 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 = []