From 9571a357d22a5589ba9e3e97c56d9e2d4bb529c5 Mon Sep 17 00:00:00 2001 From: lmzopq Date: Wed, 12 Mar 2014 13:20:17 +0800 Subject: [PATCH] Update svn.py export support revision --- salt/modules/svn.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/salt/modules/svn.py b/salt/modules/svn.py index c5b2e09aec..d95d56a86f 100644 --- a/salt/modules/svn.py +++ b/salt/modules/svn.py @@ -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)