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/gnuarch.pyo
�
Hq�Qc@s�ddlmZmZmZmZddlmZddlmZm	Z	ddl
Z
ddlZddlZddl
Z
ddlmZdeefd��YZdS(i����(tNoRepotcommandlinetcommittconverter_source(t_(tencodingtutilN(tParsertgnuarch_sourcecBs�eZdefd��YZdd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(tgnuarch_revcBseZd�ZRS(cCs^||_d|_d|_d|_d|_g|_g|_g|_i|_	i|_
dS(Nt(trevtsummarytNonetdatetauthortcontinuationoft	add_filest	mod_filest	del_filest	ren_filestren_dirs(tselfR((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyt__init__s									(t__name__t
__module__R(((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyR	scCs3tt|�j||d|�tjjtjj|d��sYttd�|��nd|_
tjd�r}d|_
n0tjd�r�d|_
ntj
td���tj|||j
�tjj|�|_d|_d|_d|_i|_i|_i|_t�|_tj|_g|_dS(NRs{arch}s+%s does not look like a GNU Arch repositorytbazttlascannot find a GNU Arch tool(tsuperRRtostpathtexiststjoinRRR
texecmdRtfindexetAbortRtrealpathttmppathttreeversiontlastrevtchangestparentsttagsRtcatlogparserRtarchives(RtuiRR((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyRs*!
							cCsjg|jdd�D]}|jd�^q|_|jdkrX|jd|j�}n|jdd|j�}|j�|_|jjd�}t	jj
tj�d|d	�|_
g|jd<|j}d}x�|re|jjtd
�|�|jd�d}||jkr6|jjtd�|�Pn|jd
dd|�\}}|j|d|�d}x�|D]�}|j�}	|j|	�|j|	<g|j|	<|jdd|j|	�\}
}|r�|jd|	�}
n|j|
|	�|j|j|	�|	}|j|	jrJdj
|j|	jjd�d �}Pn|	ddkruPququWq�WdS(NR,s-ns
Rstree-versions-dt/shg-%sisanalyzing tree version %s...
isItree analysis stopped because it points to an unregistered archive %s...
t	revisionss-rs-fs"failed retrieving revisions for %sscat-logscat-archive-logs--i����i����sbase-0(t	runlines0trstripR,R!trun0RtstripR&tsplitRR ttempfilet
gettempdirR%R)R
R-tstatusRtrunlinest	checkexitR	R(trunt_parsecatlogtappendR(RtitoutputtversionR&tchildtarchiveR7tlRtcatlog((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pytbefore=sN.
		

! cCs1|jjd|j�tj|jdt�dS(Nscleaning up %s
t
ignore_errors(R-tdebugR%tshutiltrmtreetTrue(R((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pytafter�scCs|jdS(N(R)R
(R((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pytgetheads�scCsd||jkr'tjtd���ntjjtjj|j|��sTt	�n|j
||�S(Nsinternal calling inconsistency(R'RR#RRRtlexistsR R%tIOErrort_getfile(RtnameR((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pytgetfile�s
$	c	Cs�|j|�g}i}x+|j|jD]}|j||f�q*Wx+|j|jD]}|j||f�qXWx+|j|jD]}|j||f�q�Wx\|j|jD]J}|j|j|}|j||f�|j||f�|||<q�Wxt|j|jD]b}|j|j|}|j||�\}}|g|D]}||f^qO7}|j	|�qW||_
tt|��|fS(N(
t_updateR(RR<RRRRt_rendirchangestupdateR'tsortedtset(	RRR(tcopiestftsrcttotchgstcps((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyt
getchanges�s*
#	cCsB|j|}td|jd|jd|jd|j|d|�S(NRRtdescR)R(R(RRRRR)(RRR(((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyt	getcommit�s
cCs|jS(N(R*(R((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pytgettags�scOs�|j|g}||7}g|D]}tj|�^q }|dtjdtjg7}tjdj|��}|jj|d�tj	|�S(Nt>s2>t s
(
R!Rt
shellquoteRtdevnulltquotecommandR R-RFtsystem(Rtcmdtargstkwargstcmdlinetarg((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyt_execute�s
"cCs�|jjd|�|jdd|j|�\}}|ratj|jdt�|j|�n;|j|d}|jjd||f�|j	||�dS(Nsapplying revision %s...
treplays-dREis)computing changeset between %s and %s...
(
R-RFR8R%RGRHRIt_obtainrevisionR)t_parsechangeset(RRt	changesetR7told_rev((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyRQ�scCs�tjtjj|j|��j}tj|�ritjtjj|j|��}|r`dpcd}n=t	tjj|j|�d�j
�}|d@r�dp�d}||fS(NRBR
trbiItx(RtlstatRR R%tst_modetstattS_ISLNKtreadlinktopentread(RRORtmodetdata((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyRN�s$!'cCs=dddg}x'|D]}|j|�dkrtSqWtS(Ns{arch}s	.arch-idss.arch-inventoryi����(tfindRItFalse(RROtexcludetexc((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyt_exclude�s

cCs�g}tj|�}x�t|�dkr�|j�}tjj||�}|j|�stjj|�r�|gtj|�D]}tjj||�^q7}q�|j|�qqW|S(Ni(	RtlistdirtlentpopRR R�tisdirR<(RRtfilestcontentstctpRW((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyt
_readcontents�s8c	Cs�g}i}|jtjj|j|��}x\|D]T}tjj||�}tjj||�}|j|�|j|�|||<q4W||fS(N(R�RRR R%R<(	RRXtdestR(RVR�RWtstd((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyRR�s!


cCsy|jjd|�|jd||j�}|j|�|jjd|�|j|j�}|j|j|7_dS(Nsobtaining revision %s...
tgetsanalyzing revision %s...
(R-RFRkR%R9R�R(R(RRR>R�((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyRm�s
cCs|jd�r|dS|S(Ns./i(t
startswith(RR((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyt_stripbasepathscCsy�|jj|�}tjtj|dd��|j|_|j|d�|j|_dj	|d|j
�f�|j|_|j|j|j�|j|_d|kr�|j|d�|j|_nWn*t
k
rtjtd�|��nXdS(Ns
Standard-dates%Y-%m-%d %H:%M:%StCreators

tSummarysContinuation-ofscould not parse cat-log of %s(R+tparsestrRtdatestrtstrdateR(RtrecodeRR tget_payloadRRt	ExceptionR#R(RR{RRC((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyR;s

#
c	Cs�x�|D]�}|j�}|jd�r}|jd�r}|j|dj��}|j|�s�|j|jj|�q�q|jd�r�|jd�r�|j|dj��}|j|�s�|j|jj|�q�q|jd�r5|j|dj��}|j|�s�|j|jj|�q�q|jd�r�|j|d	j��}|j|�s�|j|jj|�q�q|jd
�r�|j|dj��}|j|�s�|j|jj|�q�q|jd�r�|dj�j	d�}t
|�dkr3|dj�j	d
�}n|j|d�}|j|d�}|j|�r�|j|�r�||j|j|<q�q|jd�r�|j|dj��}|j|�s�|j|jj|�q�q|jd�r|dj�j	d�}t
|�dkr=|dj�j	d
�}n|j|d�}|j|d�}|j|�r�|j|�r�||j|j|<q�qqWdS(NtAsA/itDsD/tMbisM->itMs=>Ras	itchs/>(
R3R�R�R�R(RR<RRR4R�RR(	RR{RRBtfileR�RXtdsttdirs((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyRn sT
  N(RRtobjectR	R
RRDRJRKRPR\R^R_RkRQRNR�R�RRRmR�R;Rn(((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyRs&
	D			
							
						(tcommonRRRRtmercurial.i18nRt	mercurialRRRRGR5Rutemail.ParserRR(((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyt<module>	s
"0

Anon7 - 2021