Update svn.py

export support revision
This commit is contained in:
lmzopq 2014-03-12 13:20:17 +08:00
parent 1c909c0ea9
commit 9571a357d2

View File

@ -441,6 +441,7 @@ def export(cwd,
user=None, user=None,
username=None, username=None,
password=None, password=None,
revision='HEAD',
*opts): *opts):
''' '''
Create an unversioned copy of a tree. Create an unversioned copy of a tree.
@ -475,4 +476,6 @@ def export(cwd,
opts += (remote,) opts += (remote,)
if target: if target:
opts += (target,) opts += (target,)
revision_args = '-r'
opts += (revision_args, str(revision),)
return _run_svn('export', cwd, user, username, password, opts) return _run_svn('export', cwd, user, username, password, opts)