%PDF- %PDF-
Mini Shell

Mini Shell

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

�
���^c@@sidZddlmZmZmZddlZddlZddlZddl	m
Z
ddlmZej
dej�Zd�Zd�Zddddd	d
�Zddddd�Zddddd�Zddddd
�Zddddd�Zdddddd�Zdddd�Zddddd�Zddddd�Zdddddd�ZdS(u
Subversion SCM
i(tabsolute_importtunicode_literalstprint_functionN(tCommandExecutionError(tsixu^([^:]+):\s+(\S.*)$cC@s-tjjjd�dkr%tdfStSdS(u'
    Only load if svn is installed
    usvnu;The svn execution module cannot be loaded: svn unavailable.N(tsalttutilstpathtwhichtNonetFalsetTrue(((s4/usr/lib/python2.7/site-packages/salt/modules/svn.pyt__virtual__sc
	K@s�dd|g}t|�}|r7|jd|g�n|rS|jd|g�n|j|�td|dtd|d||�}|d	}	|	d
kr�|dSt|dd
dj|���dS(u
    Execute svn
    return the output of the command

    cmd
        The command to run.

    cwd
        The path to the Subversion repository

    user
        Run svn as a user other than what the minion runs as

    username
        Connect to the Subversion server as another user

    password
        Connect to the Subversion server with this password

        .. versionadded:: 0.17.0

    opts
        Any additional options to add to the command line

    kwargs
        Additional options to pass to the run-cmd
    usvnu--non-interactiveu
--usernameu
--passworducmd.run_alltpython_shelltcwdtrunasuretcodeiustdoutustderru

u N(tlisttextendt__salt__R
Rtjoin(
tcmdRtusertusernametpasswordtoptstkwargstoptionstresulttretcode((s4/usr/lib/python2.7/site-packages/salt/modules/svn.pyt_run_svns
%
ustrcC@s�t�}|dkr%|jd�n|rG|tjjj|�7}ntd|||||�}|d	krr|Sg}x-|jd�D]}	|jtj	|	��q�W|dkr�|S|dkr�g|D]}
t
|
�^q�SdS(
u�
    Display the Subversion information from the checkout.

    cwd
        The path to the Subversion repository

    targets : None
        files, directories, and URLs to pass to the command as arguments
        svn uses '.' by default

    user : None
        Run svn as a user other than what the minion runs as

    username : None
        Connect to the Subversion server as another user

    password : None
        Connect to the Subversion server with this password

        .. versionadded:: 0.17.0

    fmt : str
        How to fmt the output from info.
        (str, xml, list, dict)

    CLI Example:

    .. code-block:: bash

        salt '*' svn.info /path/to/svn/repo
    uxmlu--xmluinfoustru

ulistudictN(ustruxml(RtappendRRtargstshlex_splitRtsplitt_INI_REtfindalltdict(RttargetsRRRtfmtRtinfost	info_listt	infosplitttmp((s4/usr/lib/python2.7/site-packages/salt/modules/svn.pytinfoLs%	cG@s<||f7}|r#||f7}ntd|||||�S(u�
    Download a working copy of the remote Subversion repository
    directory or file

    cwd
        The path to the Subversion repository

    remote : None
        URL to checkout

    target : None
        The name to give the file or directory working copy
        Default: svn uses the remote basename

    user : None
        Run svn as a user other than what the minion runs as

    username : None
        Connect to the Subversion server as another user

    password : None
        Connect to the Subversion server with this password

        .. versionadded:: 0.17.0

    CLI Example:

    .. code-block:: bash

        salt '*' svn.checkout /path/to/repo svn://remote/repo
    ucheckout(R(RtremotettargetRRRR((s4/usr/lib/python2.7/site-packages/salt/modules/svn.pytcheckout�s&
cG@s<||f7}|r#||f7}ntd|||||�S(u�
    .. versionadded:: 2014.1.0

    Switch a working copy of a remote Subversion repository
    directory

    cwd
        The path to the Subversion repository

    remote : None
        URL to switch

    target : None
        The name to give the file or directory working copy
        Default: svn uses the remote basename

    user : None
        Run svn as a user other than what the minion runs as

    username : None
        Connect to the Subversion server as another user

    password : None
        Connect to the Subversion server with this password

    CLI Example:

    .. code-block:: bash

        salt '*' svn.switch /path/to/repo svn://remote/repo
    uswitch(R(RR,R-RRRR((s4/usr/lib/python2.7/site-packages/salt/modules/svn.pytswitch�s!
cG@sA|r(|ttjjj|��7}ntd|||||�S(ux
    Update the current directory, files, or directories from
    the remote Subversion repository

    cwd
        The path to the Subversion repository

    targets : None
        files and directories to pass to the command as arguments
        Default: svn uses '.'

    user : None
        Run svn as a user other than what the minion runs as

    password : None
        Connect to the Subversion server with this password

        .. versionadded:: 0.17.0

    username : None
        Connect to the Subversion server as another user

    CLI Example:

    .. code-block:: bash

        salt '*' svn.update /path/to/repo
    uupdate(ttupleRRRR R(RR%RRRR((s4/usr/lib/python2.7/site-packages/salt/modules/svn.pytupdate�s"cG@sA|r(|ttjjj|��7}ntd|||||�S(u�
    Return the diff of the current directory, files, or directories from
    the remote Subversion repository

    cwd
        The path to the Subversion repository

    targets : None
        files and directories to pass to the command as arguments
        Default: svn uses '.'

    user : None
        Run svn as a user other than what the minion runs as

    username : None
        Connect to the Subversion server as another user

    password : None
        Connect to the Subversion server with this password

        .. versionadded:: 0.17.0

    CLI Example:

    .. code-block:: bash

        salt '*' svn.diff /path/to/repo
    udiff(R0RRRR R(RR%RRRR((s4/usr/lib/python2.7/site-packages/salt/modules/svn.pytdiff�s"cG@sZ|r|d|f7}n|rA|ttjjj|��7}ntd|||||�S(u�
    Commit the current directory, files, or directories to
    the remote Subversion repository

    cwd
        The path to the Subversion repository

    targets : None
        files and directories to pass to the command as arguments
        Default: svn uses '.'

    msg : None
        Message to attach to the commit log

    user : None
        Run svn as a user other than what the minion runs as

    username : None
        Connect to the Subversion server as another user

    password : None
        Connect to the Subversion server with this password

        .. versionadded:: 0.17.0

    CLI Example:

    .. code-block:: bash

        salt '*' svn.commit /path/to/repo
    u-mucommit(R0RRRR R(RR%tmsgRRRR((s4/usr/lib/python2.7/site-packages/salt/modules/svn.pytcommits
&"cG@sA|r(|ttjjj|��7}ntd|||||�S(uK
    Add files to be tracked by the Subversion working-copy checkout

    cwd
        The path to the Subversion repository

    targets : None
        files and directories to pass to the command as arguments

    user : None
        Run svn as a user other than what the minion runs as

    username : None
        Connect to the Subversion server as another user

    password : None
        Connect to the Subversion server with this password

        .. versionadded:: 0.17.0

    CLI Example:

    .. code-block:: bash

        salt '*' svn.add /path/to/repo /path/to/new/file
    uadd(R0RRRR R(RR%RRRR((s4/usr/lib/python2.7/site-packages/salt/modules/svn.pytaddIs"cG@sZ|r|d|f7}n|rA|ttjjj|��7}ntd|||||�S(u�
    Remove files and directories from the Subversion repository

    cwd
        The path to the Subversion repository

    targets : None
        files, directories, and URLs to pass to the command as arguments

    msg : None
        Message to attach to the commit log

    user : None
        Run svn as a user other than what the minion runs as

    username : None
        Connect to the Subversion server as another user

    password : None
        Connect to the Subversion server with this password

        .. versionadded:: 0.17.0

    CLI Example:

    .. code-block:: bash

        salt '*' svn.remove /path/to/repo /path/to/repo/remove
    u-muremove(R0RRRR R(RR%R3RRRR((s4/usr/lib/python2.7/site-packages/salt/modules/svn.pytremoveis
$"cG@sA|r(|ttjjj|��7}ntd|||||�S(u�
    Display the status of the current directory, files, or
    directories in the Subversion repository

    cwd
        The path to the Subversion repository

    targets : None
        files, directories, and URLs to pass to the command as arguments
        Default: svn uses '.'

    user : None
        Run svn as a user other than what the minion runs as

    username : None
        Connect to the Subversion server as another user

    password : None
        Connect to the Subversion server with this password

        .. versionadded:: 0.17.0

    CLI Example:

    .. code-block:: bash

        salt '*' svn.status /path/to/repo
    ustatus(R0RRRR R(RR%RRRR((s4/usr/lib/python2.7/site-packages/salt/modules/svn.pytstatus�s"uHEADc	G@s[||f7}|r#||f7}nd}||tj|�f7}td|||||�S(u�
    Create an unversioned copy of a tree.

    cwd
        The path to the Subversion repository

    remote : None
        URL and path to file or directory checkout

    target : None
        The name to give the file or directory working copy
        Default: svn uses the remote basename

    user : None
        Run svn as a user other than what the minion runs as

    username : None
        Connect to the Subversion server as another user

    password : None
        Connect to the Subversion server with this password

        .. versionadded:: 0.17.0

    CLI Example:

    .. code-block:: bash

        salt '*' svn.export /path/to/repo svn://remote/repo
    u-ruexport(Rt	text_typeR(	RR,R-RRRtrevisionRt
revision_args((s4/usr/lib/python2.7/site-packages/salt/modules/svn.pytexport�s&
(t__doc__t
__future__RRRtretsalt.utils.argsRtsalt.utils.pathtsalt.exceptionsRtsalt.extRtcompiletMR"RRR	R+R.R/R1R2R4R5R6R7R;(((s4/usr/lib/python2.7/site-packages/salt/modules/svn.pyt<module>sL		/6'	&"#("&$

Zerion Mini Shell 1.0