%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/svn.pyc

�
���^c@@s�dZddlmZmZmZddlZddlZddlmZddl	m
Z
mZddlm
Z
eje�Zd�Zdddddeeedd�	Zdddddeeeedd	�
Zddded
�ZdS(u�
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:

.. code-block:: yaml

    subversion:
      pkg.installed

    http://unladen-swallow.googlecode.com/svn/trunk/:
      svn.latest:
        - target: /tmp/swallow
i(tabsolute_importtunicode_literalstprint_functionN(t
exceptions(t_failt
_neutral_test(tsixcC@stdd�S(u'
    Only load if svn is available
    ucmd.has_execusvn(t__salt__(((s3/usr/lib/python2.7/site-packages/salt/states/svn.pyt__virtual__$sc
C@s�i|d6td6dd6id6}
|s5t|
d�Sd}tjj|�\}}
t�}tjj|�r�tjj|�r�t|
dj|��St	d	r�|r�t
j|�}nd
}tjj|�s�t|
d|dj|��Sy5t
d
||d|d|d|dd�}d}Wn'tjk
rMt|
dj|��SX|dd}|d|d|f7}|r�|d$7}nt
|||||||�}t|
dj|��Sy5t
d
||d|d|d|dd�}d}Wntjk
rnX|r*|dt
j|�f7}n|r=|d%7}n|tkrV|d&7}n|ri|d'7}n|	r�|d|	f7}n|dkr t
|||
||||�}|dd}t
d
d|d d(d|d|d|dd�dd}||kr�d!j||�|
dd"<q�nqt
||||
||||�}||
dd#<t
d
d|d d(d|d|d|dd�dd|
dd"<||
d<|
S()u�
    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

        .. versionadded:: 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

    trust_failures : None
        Comma-separated list of certificate trust failures, that shall be
        ignored. This can be used if trust=True is not sufficient. The
        specified string is passed to SVN's --trust-server-cert-failures
        option as-is.

        .. versionadded:: 2019.2.0
    unameuresultuucommentuchangesuTarget option is requiredusvn.checkoutu-The path "{0}" exists and is not a directory.utestuHEADu;{0} doesn't exist and is set to be checked out at revision u.usvn.infotusertusernametpasswordtfmtudictusvn.diffu){0} exists but is not a svn working copy.iuRevisionu-ru:u--trust-server-certu{0}u
svn.updateu--forceu--ignore-externalsu--trust-server-cert-failurestcwdttargetsu
{0} => {1}urevisionunew(u--trust-server-cert(u--force(u--ignore-externals(u--trust-server-certN(tTrueRtostpathtsplitttupletexiststisdirtformatt__opts__Rt	text_typeRRRtCommandExecutionErrortFalsetNone(tnamettargettrevR	R
Rtforcet	externalsttrustttrust_failurestrettsvn_cmdR
tbasenametoptstnew_revtcurrent_infotcurrent_revtout((s3/usr/lib/python2.7/site-packages/salt/states/svn.pytlatest+s�6"
	%

+

+



 "
cC@s�i|d6td6dd6id6}|s5t|d�Sd}tjj|�\}
}t�}|r�tjj|�r�tjj|�r�t|dj|��St	d	rtjj|�s�t
|d
j|��Sd}d}t||
|||||�}t
|d
j|��S|s d}n|r3|d7}n|tkrL|d7}n|	r_|d7}n|
rx|d|
f7}nt||
|||||||�}||dd<|d||dd<|S(u�
    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

        .. versionadded:: 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

    trust_failures : None
        Comma-separated list of certificate trust failures, that shall be
        ignored. This can be used if trust=True is not sufficient. The
        specified string is passed to SVN's --trust-server-cert-failures
        option as-is.

        .. versionadded:: 2019.2.0
    unameuresultuucommentuchangesuTarget option is requiredu
svn.exportu-The path "{0}" exists and is not a directory.utestu/{0} doesn't exist and is set to be checked out.usvn.listuHEADu{0}u--forceu--ignore-externalsu--trust-server-certu--trust-server-cert-failuresunewu was Exported to (u--force(u--ignore-externals(u--trust-server-cert(
RRRRRRRRRRRRR(RRRR	R
RRt	overwriteR R!R"R#R$R
R%R&R*((s3/usr/lib/python2.7/site-packages/salt/states/svn.pytexport�sF9"
	,

	


%cC@s/i|d6td6dd6id6}t|d�S(u>
    Determine if the working directory has been changed.
    unameuresultuucommentuchangesu%This function is not implemented yet.(RR(RRR	R
Rtignore_unversionedR#((s3/usr/lib/python2.7/site-packages/salt/states/svn.pytdirty&s	"(t__doc__t
__future__RRRtloggingRtsaltRtsalt.states.gitRRtsalt.extRt	getLoggert__name__tlogRRRRR+R-R/(((s3/usr/lib/python2.7/site-packages/salt/states/svn.pyt<module>s>	�`

Zerion Mini Shell 1.0