comparison treepkg/subversion.py @ 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 e387b879fd38
children e201ea1f6d0e
comparison
equal deleted inserted replaced
261:e574b03a2957 262:81ba86662cbd
12 12
13 import run 13 import run
14 from cmdexpand import cmdexpand 14 from cmdexpand import cmdexpand
15 from util import extract_value_for_key 15 from util import extract_value_for_key
16 16
17
18 def list_url(url):
19 """Runs svn list with the given url and returns files listed as a list"""
20 output = run.capture_output(cmdexpand("svn list $url", **locals()))
21 return output.splitlines()
17 22
18 def checkout(url, localdir, revision=None, recurse=True): 23 def checkout(url, localdir, revision=None, recurse=True):
19 """Runs svn to checkout the repository at url into the localdir""" 24 """Runs svn to checkout the repository at url into the localdir"""
20 args = [] 25 args = []
21 if revision: 26 if revision:
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)