File "mercurial.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/vcs/mercurial.pyc
File size: 7 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


Rec@@sddlmZddlZddlZddlmZddlmZmZddl	m
Z
ddlmZddl
mZddlmZdd	lmZdd
lmZmZmZerddl	mZddlmZnejeZd
efdYZejedS(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@seZdZdZdZdZedZd	Zd
Z	dZ
dZed
Z
edZedZedZedZedZRS(thgs.hgtcloneshg+fileshg+httpshg+httpsshg+sshshg+static-httpcC@s|gS(N((trev((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/vcs/mercurial.pytget_base_rev_args'scC@sNtdd9}|j|jd||jd|gd|jWdQXdS(s?Export the Hg repository at the url to the destination locationtkindtexportturltarchivetcwdN(Rtunpacktpathtrun_command(tselftlocationRttemp_dir((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/vcs/mercurial.pyR+scC@sp|j}tjd||t||jtddd|||jtdd|jd|dS(NsCloning hg %s%s to %sRs
--noupdates-qtupdateR(t
to_displaytloggertinfoRRRtto_args(RtdestRtrev_optionstrev_display((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/vcs/mercurial.pyt	fetch_new5s
c	C@stjj||jd}tj}yL|j||jdd|jt	|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((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/vcs/mercurial.pytswitchDs
cC@sH|jddgd|tdd|j}|j|d|dS(Ntpulls-qRR(RRR"(RR#RR$R;((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/vcs/mercurial.pyRUscC@sI|jddgd|j}|j|r?t|}n|jS(Nt
showconfigs
paths.defaultR(Rtstript_is_local_repositoryR(tclsRR((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/vcs/mercurial.pytget_requirement_revisionmscC@stS(s&Always assume the versions don't match(tFalse(RAR#tname((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/vcs/mercurial.pytget_subdirectory}s
$cC@stt|j|}|r"|Sy"|jdgd|dt}Wn3tk
rhtjd|dSt	k
rydSXt
jj|j
dS(NRKRtlog_failed_cmdsIcould not determine if %s is under hg control because hg is not availables
(tsuperRtget_repository_rootRRHRR tdebugtNoneRR+Rtnormpathtrstrip(RARtloctr((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/vcs/mercurial.pyRRs	

	
(Rshg+fileshg+httpshg+httpsshg+sshshg+static-http(t__name__t
__module__RIR-t	repo_nametschemeststaticmethodRRR&R<RtclassmethodRBRERGRJRORR(((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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(((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/vcs/mercurial.pyt<module>s