[Treepkg-commits] r188 - trunk/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Apr 24 20:33:12 CEST 2009
Author: bh
Date: 2009-04-24 20:33:12 +0200 (Fri, 24 Apr 2009)
New Revision: 188
Modified:
trunk/treepkg/subversion.py
Log:
Add treepkg/subversion.list_url function, a wrapper for "svn list"
Modified: trunk/treepkg/subversion.py
===================================================================
--- trunk/treepkg/subversion.py 2009-04-24 18:21:01 UTC (rev 187)
+++ trunk/treepkg/subversion.py 2009-04-24 18:33:12 UTC (rev 188)
@@ -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 = []
More information about the Treepkg-commits
mailing list