MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.218.232.140
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /lib/python2.7/site-packages/pip/vcs/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //lib/python2.7/site-packages/pip/vcs/subversion.pyc
�
r2Wc@@s)ddlmZddlZddlZddlZddlmZddlm	Z	ddl
mZmZddl
mZddlmZmZejd�Zejd	�Zejd
�Zejd�Zejd�Zejd
�Zeje�Zdefd��YZd�Zeje�dS(i(tabsolute_importN(tparse(tLink(trmtreetdisplay_path(t
indent_log(tvcstVersionControls
url="([^"]+)"scommitted-rev="(\d+)"s	URL: (.+)sRevision: (.+)s\s*revision="(\d+)"s<url>(.*)</url>t
SubversioncB@s�eZdZdZdZdZd�Zd�Zd	�Zd
�Z	d�Z
d�Zd
�Zd�Z
d�Zd�Zd�Zd�ZRS(tsvns.svntcheckoutssvn+sshssvn+https	svn+httpsssvn+svncC@s|jd�j|j�s,td|��|jd|gdtdidd6�}tj|�}|s�tj	dt
|��tjd	|�d
S|j
d
�j�}tj|�}|s�tj	dt
|��tjd	|�|dfS||j
d
�fS(s/Returns (url, revision), where both are stringst/sBad directory: %stinfotshow_stdoutt
extra_environtCtLANGs'Cannot determine URL of svn checkout %ss!Output that cannot be parsed: 
%sis,Cannot determine revision of svn checkout %sN(NN(trstriptendswithtdirnametAssertionErrortrun_commandtFalset_svn_url_retsearchtloggertwarningRtdebugtNonetgrouptstript_svn_revision_re(tselftlocationtoutputtmatchturl((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pytget_infos,



cC@s�|j�\}}t||�}tjd||�t��Htjj|�r]t|�n|j	dg|||gdt
�WdQXdS(s@Export the svn repository at the url to the destination locations!Exporting svn repository %s to %stexportR
N(tget_url_revtget_rev_optionsRRRtostpathtexistsRRR(R R!R$trevtrev_options((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pyR&;s

cC@s"|jdg|||g�dS(Ntswitch(R(R tdestR$R-((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pyR.IscC@s|jdg||g�dS(Ntupdate(R(R R/R-((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pyR0LscC@s�|j�\}}t||�}|r4d|}nd}|j||||�r�tjd||t|��|jddg|||g�ndS(Ns (to revision %s)tsChecking out %s%s to %sR
s-q(R'R(tcheck_destinationRRRR(R R/R$R,R-trev_display((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pytobtainOs

cC@s�x�|D]{}t|�j}|s(qnd|krYdj|jd�d �j�}n|}||jkr|jdd�dSqWdS(Nt-i����t#ii(Rtegg_fragmenttjointsplittlowertkeyR(R tdisttdependency_linksR$R7R;((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pytget_location_s
%c
C@s�d}x�tj|�D]�\}}}|j|krAg|(qn|j|j�tjj||jd�}tjj|�s�qn|j|�\}}||kr�|d}	n$|s�|j|	�r�g|(qnt	||�}qW|S(sR
        Return the maximum revision for all files under a given location
        itentriesR(
R)twalkRtremoveR*R8R+t_get_svn_url_revt
startswithtmax(
R R!trevisiontbasetdirstfilest
entries_fntdirurltlocalrevtbase_url((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pytget_revisionms"
cC@sAtt|�j�\}}|jd�r7d|}n||fS(Nsssh://ssvn+(tsuperRR'RC(R R$R,((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pyR'�s
cC@sw|}x]tjjtjj|d��se|}tjj|�}||kr	tjd|�dSq	W|j|�dS(Nssetup.pysGCould not find setup.py for directory %s (tried all parent directories)i(	R)R*R+R8RRRRRB(R R!t
orig_locationt
last_location((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pytget_url�s$c
	C@sIddlm}tjj||jd�}tjj|�rat|��}|j�}WdQXnd}|j	d�s�|j	d�s�|j	d�rt
ttj
|jd���}|dd=|dd	}g|D]2}t|�d
kr�|d
r�t|d
�^q�dg}n
|j	d�r�tj|�}	|	sNtd|��n|	jd
�}gtj|�D]}
t|
jd
��^qmdg}n�yk|jdd|gdt�}tj|�jd
�}gtj|�D]}
t|
jd
��^q�}Wn|k
r#dg}}nX|r9t|�}nd}||fS(Ni(tInstallationErrorR?R1t8t9t10s

ii	s<?xmlsBadly formatted data: %riRs--xmlR
(tpip.exceptionsRRR)R*R8RR+topentreadRCtlisttmaptstrt
splitlinesR9tlentintt_svn_xml_url_reRt
ValueErrorRt_svn_rev_retfinditerRRt_svn_info_xml_url_ret_svn_info_xml_rev_reRRD(
R R!RRtentries_pathtftdataR$tdtrevsR#tmtxmlR,((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pyRB�s>!I;	5
cC@s[|j|�}|dkrdS|j�jdd�d}|j|�}d|||fS(NR5iissvn+%s@%s#egg=%s(RQRtegg_nameR9RM(R R<R!trepotegg_project_nameR,((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pytget_src_requirement�scC@stS(s&Always assume the versions don't match(R(R R/R-((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pyt
check_version�s(R	ssvn+sshssvn+https	svn+httpsssvn+svn(t__name__t
__module__tnameRt	repo_nametschemesR%R&R.R0R4R>RMR'RQRBRoRp(((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pyRs 										,		cC@s�|rd|g}ng}tj|�}t|d�rO|j|j}}nl|d}d|kr�|jd�d}d|kr�|jdd�\}}q�|d}}nd	\}}|r�|d|g7}n|r�|d|g7}n|S(
Ns-rtusernameit@it:s
--usernames
--password(NN(turllib_parseturlsplitthasattrRvtpasswordR9R(R$R,R-trRvR|tnetloctauth((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pyR(�s$
(t
__future__RtloggingR)tretpip._vendor.six.moves.urllibRRyt	pip.indexRt	pip.utilsRRtpip.utils.loggingRtpip.vcsRRtcompileR_RaRRRdRct	getLoggerRqRRR(tregister(((s6/usr/lib/python2.7/site-packages/pip/vcs/subversion.pyt<module>s$�	

MMCT - 2023