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