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/hgext/convert/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/hgext/convert/cvs.pyo
�
Hq�Qc@s�ddlZddlZddlZddlZddlmZddlmZmZddl	m
Z
ddlmZm
Z
mZmZddlmZddlZdefd��YZdS(	i����N(tStringIO(tencodingtutil(t_(tNoRepotcommittconverter_sourcet	checktool(tmakedatetimestamptconvert_cvscBs\eZd	d�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�ZRS(
cCstt|�j||d|�tjj|d�}tjj|�s_ttd�|��nt	d�d|_i|_i|_
i|_d|_ttjj|d��j�d |_ttjj|d��j�d |_tj|_|j�dS(NtrevtCVSs$%s does not look like a CVS checkouttcvstRooti����t
Repository(tsuperR	t__init__tostpathtjointexistsRRRtNonet	changesettfilesttagst
lastbranchtsockettopentreadtcvsroottcvsrepoRt_connect(tselftuiRR
R((s7/usr/lib64/python2.7/site-packages/hgext/convert/cvs.pyRs
					((c
Cs|jdk	rdSi|_d}|jrqyt|j�}Wqqtk
rmtjtd�|j��qqXntj	�}zutj
|j�d}d}|jj
ddt�s�d}ntj|jd|�}tj|j|dt|jjddd	��d
|jjddd�d|jjdd
d��}x�|D]�}|r^|j|kr^Pnt|j�}|j|j�|_||j|j<|j|j�|_|jj
dd�r�t|jd�|_ntj|jd�}|jjtj |j|��i}xZ|j!D]O}	ddj"g|	j#D]}
t|
�^q2�ddg|	j$f||	j%<qWt&d|jd|dg|j'D]}t|j�^q�d|jd|jp�d�}||j|<||j(|<q?W|jj)�|_*Wdtj
|�XdS(Nis$revision %s is not a patchset numbertupdatetconvertscvsps.cachetcachetfuzzs
cvsps.fuzzi<tmergetos
cvsps.mergetot	mergefromscvsps.mergefromt
localtimezones%Y-%m-%d %H:%M:%S %1%2s%s%st.ts(DEAD)tauthortdatetparentstdesctbranch(+RRR
tintt
ValueErrorRtAbortRRtgetcwdtchdirRR!t
configbooltTruetcvspst	createlogtcreatechangesettconfigtidtstrtrecodeR+RR/tcommentRR,tdatestrRR"tdicttfromkeystentriesRtrevisiontdeadtfileRR-Rtvaluestheads(
R tmaxrevtdR;R$tdbtcsR,Rtftxtptc((s7/usr/lib64/python2.7/site-packages/hgext/convert/cvs.pyt_parse&sZ		
	
"%
cCs�|j}d}d-\}}ddg}|jjtd�|�|jd�r~|d}tjd|�}|r~d}|j�\}}}}	}|s�d}n|	s�d	}	nt	|	�}	d
|||f}
d|||	|f}|s�d}t
jjd
�}y�t
|�}
x{|
j�j�D]g}|jdd�\}}|dkrq|jdd�\}}|}n|
}||kr&|}Pq&q&W|
j�Wq�tk
r�}|jtjkr�t|dd�s�||_n�q�q�Xntj�}|j||	f�|jdjd|||ddg��|jd�dkr_tjtd���n|jd�|_|_ q~n|r�|jd�r�d}|d}n|s5|jd�r�|d}ntjd|�}t
jj!|�s�|r�d}q5d }|j"d�|j"d!�|j"d"�}}}n|dkr�|d kr�t
j#j$d#�pbd$}|r�|d%||g|}q�||g|}ng|D]}tj%|�^q�}tj&dj|��}tj'|�\|_|_ n||_(|jj)d&|�|jj)d'�|jj)d(�|jj*�|j j+�}|jd)�sstjtd*�|��nd+|kr�|jj)d,�|jj*�|j j+�}ndS(.NRtserversconnecting to %s
s	:pserver:i	s.(?:(.*?)(?::(.*?))?@)?([^:\/]*)(?::(\d*))?(.*)tpservert	anonymousia	s:pserver:%s@%s:%ss:pserver:%s@%s:%d%stAs
~/.cvspasst is/1tfilenames
sBEGIN AUTH REQUESTsEND AUTH REQUESTR*i�sI LOVE YOU
s!CVS pserver authentication failedsr+s:local:tlocalis:ext:is(?:([^@:/]+)@)?([^:/]+):?(.*)trshiitCVS_RSHtsshs-lsRoot %s
scValid-responses ok error Valid-requests Mode M Mbinary E Checked-in Created Updated Merged Removed
svalid-requests
sValid-requestssKunexpected response from CVS server (expected "Valid-requests", but got %r)tUseUnchangeds
UseUnchanged
(NN(,RRR!tstatusRt
startswithtretmatchtgroupsR0RRt
expanduserRRt
splitlinestsplittclosetIOErrorterrnotENOENTtgetattrRVRtconnecttsendRtrecvRR2tmakefiletwriteptreadptisdirtgrouptenvirontgett
shellquotetquotecommandtpopen2trealroottwritetflushtreadline(R troottconntypetuserthosttcmdtmtpasswtservtporttformat0tformat1tcvspasstpftlinetpart1tpart2tformattinsttsckRXtargtr((s7/usr/lib64/python2.7/site-packages/hgext/convert/cvs.pyR`s�	
					


	2"	


cCs|j�|jS(N(RPRG(R ((s7/usr/lib64/python2.7/site-packages/hgext/convert/cvs.pytgetheads�s
c
Csdd�}|j�|jd�r+t�nd|j�}|j|jd|�x"|D]}|jjd|�qZW|jjd|j�|jj	�d}d}x�tr_|jj
�}|jd�s�|jd	�r9|jj
�|jj
�|jj
�d
 }t|jj
�d
 �}	||j|	�}q�|jd�rY||d7}q�|jd
�rkq�|jd�r�t|jj
�d
 �}	||j|	�}q�|dkr�|dkr�tjtd���n|d|kr�dp�dfS|jd�r$|jjtd�|d�q�|jd�rC|jj
�q�tjtd�|��q�WdS(NcSs�d}t�}xg|dkrx|jt||��}|sXtjtd�|��n|t|�8}|j|�qW|j�S(Niis!%d bytes missing from remote file(	RRtminRR2RtlenRwtgetvalue(tfptcountt	chunksizetoutputtdata((s7/usr/lib64/python2.7/site-packages/hgext/convert/cvs.pytchunkedread�s	
s(DEAD)s-N -P -kk -r %s --t/sArgument %s
sDirectory .
%s
co
R*sCreated sUpdated i����RUisM sMbinary sok
smalformed response from CVSRMsE scvs server: %s
itRemovesunknown CVS response: %s(RPtendswithReRctappendRRmRwRvRxRR6RnRyR]R0RR2RR!twarn(
R tnameR
R�targsRMR�tmodeR�R�((s7/usr/lib64/python2.7/site-packages/hgext/convert/cvs.pytgetfile�sH	
	

	

!cCs'|j�t|j|j��ifS(N(RPtsortedRt	iteritems(R R
((s7/usr/lib64/python2.7/site-packages/hgext/convert/cvs.pyt
getchangess
cCs|j�|j|S(N(RPR(R R
((s7/usr/lib64/python2.7/site-packages/hgext/convert/cvs.pyt	getcommit	s
cCs|j�|jS(N(RPR(R ((s7/usr/lib64/python2.7/site-packages/hgext/convert/cvs.pytgettags
s
cCs|j�t|j|�S(N(RPR�R(R R
ti((s7/usr/lib64/python2.7/site-packages/hgext/convert/cvs.pytgetchangedfiless
N(t__name__t
__module__RRRPRR�R�R�R�R�R�(((s7/usr/lib64/python2.7/site-packages/hgext/convert/cvs.pyR	s	:	i		8			(RR^RRft	cStringIORt	mercurialRRtmercurial.i18nRtcommonRRRRRR7R	(((s7/usr/lib64/python2.7/site-packages/hgext/convert/cvs.pyt<module>s0"

Anon7 - 2021