ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/
Upload File :
Current File : //proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pyc

�
Bu�_c@@sddlmZddlZddlZddlmZddlmZmZddl	m
Z
ddlmZddl
mZddlmZdd	lmZdd
lmZmZmZer�ddl	mZddlmZneje�Zd
efd��YZeje�dS(i(tabsolute_importN(tconfigparser(t
BadCommandtSubProcessError(tdisplay_path(tmake_command(t
TempDirectory(tMYPY_CHECK_RUNNING(tpath_to_url(tVersionControlt!find_path_to_setup_from_repo_roottvcs(t
HiddenText(t
RevOptionst	MercurialcB@s�eZdZdZdZdZed��Zd	�Zd
�Z	d�Z
d�Zed
��Z
ed��Zed��Zed��Zed��Zed��ZRS(thgs.hgtcloneshg+fileshg+httpshg+httpsshg+sshshg+static-httpcC@s|gS(N((trev((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pytget_base_rev_args'scC@sNtdd��9}|j|jd|�|jd|gd|j�WdQXdS(s?Export the Hg repository at the url to the destination locationtkindtexportturltarchivetcwdN(Rtunpacktpathtrun_command(tselftlocationRttemp_dir((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pyR+scC@sp|j�}tjd||t|��|jtddd||��|jtdd|j��d|�dS(NsCloning hg %s%s to %sRs
--noupdates-qtupdateR(t
to_displaytloggertinfoRRRtto_args(RtdestRtrev_optionstrev_display((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pyt	fetch_new5s
c	C@s�tjj||jd�}tj�}yL|j|�|jdd|j�t	|d��}|j
|�WdQXWn/ttjfk
r�}t
jd||�n,Xtdd|j��}|j|d|�dS(	Nthgrctpathstdefaulttws/Could not switch Mercurial repository to %s: %sRs-qR(tosRtjointdirnameRtRawConfigParsertreadtsettsecrettopentwritetOSErrortNoSectionErrorR twarningRR"R(	RR#RR$trepo_configtconfigtconfig_filetexctcmd_args((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pytswitchDs
cC@sH|jddgd|�tdd|j��}|j|d|�dS(Ntpulls-qRR(RRR"(RR#RR$R;((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pyRUscC@sI|jddgd|�j�}|j|�r?t|�}n|j�S(Nt
showconfigs
paths.defaultR(Rtstript_is_local_repositoryR(tclsRR((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pytget_remote_url[scC@s%|jddgd|�j�}|S(sW
        Return the repository-local changeset revision number, as an integer.
        tparentss--template={rev}R(RR?(RARtcurrent_revision((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pytget_revisiondscC@s%|jddgd|�j�}|S(sh
        Return the changeset identification hash, as a 40-character
        hexadecimal string
        RCs--template={node}R(RR?(RARtcurrent_rev_hash((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pytget_requirement_revisionmscC@stS(s&Always assume the versions don't match(tFalse(RAR#tname((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pytis_commit_id_equalxscC@sa|jdgd|�j�}tjj|�sTtjjtjj||��}nt||�S(s~
        Return the path to setup.py, relative to the repo root.
        Return None if setup.py is in the repo root.
        trootR(RR?R+RtisabstabspathR,R
(RARt	repo_root((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pytget_subdirectory}s
$cC@s�tt|�j|�}|r"|Sy"|jdgd|dt�}Wn3tk
rhtjd|�dSt	k
rydSXt
jj|j
d��S(NRKRtlog_failed_cmdsIcould not determine if %s is under hg control because hg is not availables
(tsuperRtget_repository_rootRRHRR tdebugtNoneRR+Rtnormpathtrstrip(RARtloctr((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pyRR�s	

	
(Rshg+fileshg+httpshg+httpsshg+sshshg+static-http(t__name__t
__module__RIR-t	repo_nametschemeststaticmethodRRR&R<RtclassmethodRBRERGRJRORR(((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pyRs	
					
(t
__future__RtloggingR+tpip._vendor.six.movesRtpip._internal.exceptionsRRtpip._internal.utils.miscRtpip._internal.utils.subprocessRtpip._internal.utils.temp_dirRtpip._internal.utils.typingRtpip._internal.utils.urlsRt pip._internal.vcs.versioncontrolR	R
RRR
t	getLoggerRYR Rtregister(((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/mercurial.pyt<module>s 

Zerion Mini Shell 1.0