Subversion SCM
salt.modules.svn.
add
(cwd, targets, user=None, username=None, password=None, *opts)¶Add files to be tracked by the Subversion working-copy checkout
Connect to the Subversion server with this password
0.17.0 新版功能.
CLI 范例:
salt '*' svn.add /path/to/repo /path/to/new/file
salt.modules.svn.
checkout
(cwd, remote, target=None, user=None, username=None, password=None, *opts)¶Download a working copy of the remote Subversion repository directory or file
Connect to the Subversion server with this password
0.17.0 新版功能.
CLI 范例:
salt '*' svn.checkout /path/to/repo svn://remote/repo
salt.modules.svn.
commit
(cwd, targets=None, msg=None, user=None, username=None, password=None, *opts)¶Commit the current directory, files, or directories to the remote Subversion repository
Connect to the Subversion server with this password
0.17.0 新版功能.
CLI 范例:
salt '*' svn.commit /path/to/repo
salt.modules.svn.
diff
(cwd, targets=None, user=None, username=None, password=None, *opts)¶Return the diff of the current directory, files, or directories from the remote Subversion repository
Connect to the Subversion server with this password
0.17.0 新版功能.
CLI 范例:
salt '*' svn.diff /path/to/repo
salt.modules.svn.
export
(cwd, remote, target=None, user=None, username=None, password=None, revision='HEAD', *opts)¶Create an unversioned copy of a tree.
Connect to the Subversion server with this password
0.17.0 新版功能.
CLI 范例:
salt '*' svn.export /path/to/repo svn://remote/repo
salt.modules.svn.
info
(cwd, targets=None, user=None, username=None, password=None, fmt='str')¶Display the Subversion information from the checkout.
Connect to the Subversion server with this password
0.17.0 新版功能.
CLI 范例:
salt '*' svn.info /path/to/svn/repo
salt.modules.svn.
remove
(cwd, targets, msg=None, user=None, username=None, password=None, *opts)¶Remove files and directories from the Subversion repository
Connect to the Subversion server with this password
0.17.0 新版功能.
CLI 范例:
salt '*' svn.remove /path/to/repo /path/to/repo/remove
salt.modules.svn.
status
(cwd, targets=None, user=None, username=None, password=None, *opts)¶Display the status of the current directory, files, or directories in the Subversion repository
Connect to the Subversion server with this password
0.17.0 新版功能.
CLI 范例:
salt '*' svn.status /path/to/repo
salt.modules.svn.
switch
(cwd, remote, target=None, user=None, username=None, password=None, *opts)¶2014.1.0 新版功能.
Switch a working copy of a remote Subversion repository directory
CLI 范例:
salt '*' svn.switch /path/to/repo svn://remote/repo
salt.modules.svn.
update
(cwd, targets=None, user=None, username=None, password=None, *opts)¶Update the current directory, files, or directories from the remote Subversion repository
Connect to the Subversion server with this password
0.17.0 新版功能.
CLI 范例:
salt '*' svn.update /path/to/repo