ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/pip/vcs/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/pip/vcs/mercurial.pyc

�
��abc@@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

Zerion Mini Shell 1.0