Skip to content

Commit

Permalink
Support for svn single files checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimas committed Dec 30, 2013
1 parent 611d0f4 commit 4dcbff9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/subversionfileset.py
Expand Up @@ -22,13 +22,18 @@
import os


CMD = 'cd {0} && svn co --trust-server-cert ' \
'--non-interactive {1}'


class SubversionFileSet(FileSet):

def do(self):

if len(self.filename) == 0:
CMD = 'cd {0} && svn co --trust-server-cert ' \
'--non-interactive {1}'
else:
# Single file checkout
CMD = 'cd {0} && svn export --trust-server-cert ' \
'--non-interactive {1}'

self.create_tmp_directory()
cmd = CMD.format(self.temp_dir, self.url)
os.system(cmd)
Expand Down

0 comments on commit 4dcbff9

Please sign in to comment.