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 :  /lib64/python2.7/site-packages/mercurial/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/mercurial/sshpeer.pyo
�
}�^c@s�ddlZddlmZddlZddlZddlZdefd��YZd�Zdej	fd��YZ
e
ZdS(i����N(t_t
remotelockcBs#eZd�Zd�Zd�ZRS(cCs
||_dS(N(trepo(tselfR((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyt__init__
scCs|jj�d|_dS(N(RtunlocktNone(R((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pytreleases
cCs|jr|j�ndS(N(RR(R((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyt__del__s	(t__name__t
__module__RRR(((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyRs		cCs*tjd|�r|Sd|jdd�S(s=quote a string for the remote shell ... which we assume is shs[a-zA-Z0-9@%_+=:,./-]*$s'%s't's'\''(tretmatchtreplace(ts((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyt_serverquotestsshpeercBs�eZed�Zd�Zd�Zd�Zd�Zd�Zd�Z	e	Z
d�Zd�Zd	�Z
d
�Zd�Zed�Zd
�Zd�Zdd�ZRS(c
Cs�||_||_d|_|_|_tj|dtdt�}|j	dksl|j
sl|jdkr�|jt
jtd�|��ntj|�|j|_|jdk	r�|jt
jtd���n|j
|_
|j|_|jp�d|_|jjddd�}|jjddd	�}tj||j
|j|j�}|r�d
||tjdt|�t|j�f�f}|jtd�|�tj|�}	|	d
kr�|jt
jtd���q�n|j||||�dS(Nt
parsequeryt
parsefragmenttsshscouldn't parse location %sspassword in URL not supportedt.tuit	remotecmdthgs%s %s %ss
%s init %ssrunning %s
iscould not create remote repo(t_urlRRtpipeotpipeitpipeetutilturltFalsetschemethosttpatht_abortterrort	RepoErrorRtchecksafesshtusertpasswdtporttconfigtsshargst
shellquoteRtnotetsystemt
validate_repo(
RRR"tcreatetutsshcmdRtargstcmdtres((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyRs2		(#
!		#"cCs|jS(N(R(R((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyR?sc
Cs�|j�d||tjdt|�t|j�f�f}|jtd�|�tj|�}tj|�\|_	|_
|_|_|j
d�|j
ddddd	dd	f�}d
dg}d}x�|d
rN|rN|j�}	|j�|d
dkr|	dkrPn|	r4|jd|	�n|j|	�|d8}q�W|jtjtd���t�|_xNt|�D]@}	|	jd�r�|jj|	d
 jd�dj��Pq�q�WdS(Ns%s %s %ss%s -R %s serve --stdiosrunning %s
thellotbetweentpairss%s-%st0i(ttdummyi�i����s1
s
sremote: is#no suitable response from remote hgs
capabilities:t:(tcleanupRR,RR"R-Rtquotecommandtpopen4RRRt
subprocesst_callstreamtreadlinetreaderrtdebugtappendR#R$R%tsett_capstreversedt
startswithtupdatetsplit(
RRR2R3RR4trtlinest	max_noisetl((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyR/Bs4
		#'
'

'cCs|jS(N(RG(R((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyt
_capabilitieshscCs�x~tr�tj|j�j}|dkr.Pn|jj|�}|sJPnx0|j�D]"}|jjt	d�|d�qWWqWdS(Nisremote: s
(
tTrueRtfstatRtst_sizetreadt
splitlinesRtstatusR(RtsizeRRO((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyRCks	cCs|j�|�dS(N(R=(Rt	exception((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyR#vs
cCs�|jdkrdS|jj�|jj�y1x*|jD]}|jjtd�|�q:WWntt	fk
rwnX|jj�dS(Nsremote: (
RRtcloseRRRRVRtIOErrort
ValueError(RRO((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyR=zs

!cKsS|jjd|�|jjd|�tj|\}}|j�}i}x=|D]5}|dkrt||d<PqT||||<||=qTWx�t|j��D]�\}}|jjd|t	|�f�t
|t�r+x]|j�D]<\}	}
|jjd|	t	|
�f�|jj|
�q�Wq�|jj|�q�W|jj�|j
S(Nssending %s command
s%s
t*s%s %d
(RRDRtwritet	wireprototcommandsRKtsortedt	iteritemstlent
isinstancetdicttflushR(RR4R3t_functnamestkeystwireargstktvtdktdv((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyRA�s(

  
cKs|j||�|j�S(N(RAt_recv(RR4R3((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyt_call�scKs�|j||�}|r"d|fSx0trT|jd�}|sDPn|j|�q%W|jddt�|j�}|r�d|fS|j�dfS(NR:iRe(RoRQRTt_sendRn(RR4tfpR3RLtd((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyt	_callpush�s
	
cCs|S(N((Rtstream((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyt_decompress�scCs�|jj�}|dkr�g}x9tr\|jj�}|dkrIPn|j|g�q$Wt|�dkr�|dd |d<n|jtj|��n|j	�yt
|�}Wn0tk
r�|jtjt
d�|��nX|jj|�S(Ns
s-
ii����sunexpected response:(RRBRQRtextendRbR#R$tOutOfBandErrorRCtintR[t
ResponseErrorRRT(RROterrtline((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyRn�s"	

#cCsW|jjdt|��|r3|jj|�n|rI|jj�n|j�dS(Ns%d
(RR]RbReRC(RtdataRe((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyRp�scCs|jd�t|�S(Ntlock(RoR(R((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyR}�s
cCs|jd�dS(NR(Ro(R((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyR�scCs�|jd�}|r8|jtjtd�|��nx=trw|jd�}|sZPn|jj|�|j	�q;W|jj
�|j	�|j�}|s�dSyt|�SWn0t
k
r�|jtjtd�|��nXdS(s�Send a changegroup to the remote server.  Return an integer
        similar to unbundle(). DEPRECATED, since it requires locking the
        remote.taddchangegroupspush refused: %siisunexpected response:N(RoR#R$R%RRQRTRR]RCReRnRxR[Ry(RtcgtsourceRR}RrRL((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyR~�s$#	


N(R	R
RRRR/RPRCR#R=RRARoRsRuRnRpR}RRR~(((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyRs""		&				
							(Rti18nRRR$R^tobjectRRtwirepeerRtinstance(((s7/usr/lib64/python2.7/site-packages/mercurial/sshpeer.pyt<module>s$
	�

Anon7 - 2021