salt.states.svn

Manage SVN repositories

Manage repository checkouts via the svn vcs system. Note that subversion must be installed for these states to be available, so svn states should include a requisite to a pkg.installed state for the package which provides subversion (subversion in most cases). Example:

subversion:
  pkg.installed

http://unladen-swallow.googlecode.com/svn/trunk/:
  svn.latest:
    - target: /tmp/swallow
salt.states.svn.dirty(name, target, user=None, username=None, password=None, ignore_unversioned=False)

Determine if the working directory has been changed.

salt.states.svn.export(name, target=None, rev=None, user=None, username=None, password=None, force=False, overwrite=False, externals=True, trust=False)

Export a file or directory from an SVN repository

name
Address and path to the file or directory to be exported.
target
Name of the target directory where the checkout will put the working directory
rev : None
The name revision number to checkout. Enable "force" if the directory already exists.
user : None
Name of the user performing repository management operations
username : None
The user to access the name repository with. The svn default is the current user
password

Connect to the Subversion server with this password

0.17.0 新版功能.

force : False
Continue if conflicts are encountered
overwrite : False
Overwrite existing target
externals : True
Change to False to not checkout or update externals
trust : False
Automatically trust the remote server. SVN's --trust-server-cert
salt.states.svn.latest(name, target=None, rev=None, user=None, username=None, password=None, force=False, externals=True, trust=False)

Checkout or update the working directory to the latest revision from the remote repository.

name
Address of the name repository as passed to "svn checkout"
target
Name of the target directory where the checkout will put the working directory
rev : None
The name revision number to checkout. Enable "force" if the directory already exists.
user : None
Name of the user performing repository management operations
username : None
The user to access the name repository with. The svn default is the current user
password

Connect to the Subversion server with this password

0.17.0 新版功能.

force : False
Continue if conflicts are encountered
externals : True
Change to False to not checkout or update externals
trust : False
Automatically trust the remote server. SVN's --trust-server-cert