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/unionrepo.pyo
�
Hq�Qc@sJdZddlmZddlmZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZdejfd��YZdeejfd��YZd	eejfd
��YZdee
j
fd��YZd
e
jfd��YZde
jfd��YZd�ZdS(s~Repository class for "in-memory pull" of one local repository to another,
allowing operations like diff and log with revsets.
i����(tnullid(t_NtunionrevlogcBsYeZd�Zd�Zd�Zd�Zdddd�Zd�Zd�Z	d�Z
RS(	c	Csttj|�}tjj|||�||_t|�}|d|_t�|_x|jD]}|jj	|}|\}}	}
}}}
}}|dkr�|}n||�}||jkr�|jj|j|�q]n|jj
|
�}|jj
|�}dddd||j|�|j|�|f}|j	jd|�||j|<|jj|�|d7}q]WdS(Nii����(tscmutiltreadonlyvfstrevlogt__init__trevlog2tlent
repotiprevtsett
bundlerevstindextNonetnodemaptaddtnodetrevtinsert(tselftopenert	indexfileRt
linkmappertntrev2Rt_startt_csizet_rsizet_basetlinkrevtp1revtp2revRtlinktp1nodetp2nodete((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRs.	
	$
cCs;||jkr"tjj||�S|jj|j|��S(N(R	Rt_chunkRR(RR((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR$=scCs�||jkr[||jkr[|jj|jj|j|��|jj|j|���S||jkr�||jkr�tjj|||�Stj|j|j|��|j|j|���S(s1return or calculate a delta between two revisions(	R	RtrevdiffRRRtmdiffttextdifftrevision(Rtrev1R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR%Bs	cCs�t|t�r'|}|j|�}n|}|j|�}|tkrLdS||jkr�|jj|�}|||f|_nt	j	j||�}|S(sTreturn an uncompressed revision of a given node or revision
        number.
        t(
t
isinstancetintRRRR	RR(t_cacheR(Rt	nodeorrevRRttext((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR(NscCs
t�dS(N(tNotImplementedError(RR/ttransactionR tp1tp2td((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytaddrevisiondscCs
t�dS(N(R0(RtrevsRR1((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytaddgroupfscCs
t�dS(N(R0(RRtminlink((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytstriphscCs
t�dS(N(R0(R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyt	checksizejsN(t__name__t
__module__RR$R%R(R
R5R7R9R:(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRs	(					tunionchangelogcBseZd�ZRS(cCsHtjj||�d}tj|�}tj|||j||�dS(N(t	changelogRR
RR(RRtopener2Rt
changelog2((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRns
(R;R<R(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR=mst
unionmanifestcBseZd�ZRS(cCsBtjj||�tj|�}tj|||j||�dS(N(tmanifestRRR(RRR?Rt	manifest2((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRvs(R;R<R(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRAustunionfilelogcBseZd�Zd�ZRS(cCsQtjj|||�tj||�}tj|||j||�||_dS(N(tfilelogRRRt_repo(RRtpathR?Rtrepotfilelog2((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR}s
cCs|jj|�dS(N(RFtfile(Rtf((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyt_file�s(R;R<RRL(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRD|s	t	unionpeercBseZd�ZRS(cCstS(N(tFalse(R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytcanpush�s(R;R<RO(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRM�stunionrepositorycBsteZd�Zejd��Zd�Zejd��Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
RS(
cCsjtjj|||�|jjddt�dtj|�tj|�f|_tj||�|_	dS(Ntphasestpublishsunion:%s+%s(
t	localrepotlocalrepositoryRtuit	setconfigRNtutilt
expandpatht_urltrepo2(RRURGtpath2((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR�s
cCst|j|jj�S(N(R=tsopenerRZ(R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR>�scCs%|jjj|�}|jj|�S(s?map from repo2 changelog rev to temporary rev in self.changelog(RZR>RR(RRR((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyt_clrev�scCst|j|jj|j�S(N(RAR\RZR](R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRB�scCs|jS(N(RY(R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyturl�scCs"t|j||jj|j|�S(N(RDR\RZR](RRK((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRJ�scCs|jj�dS(N(RZtclose(R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR_�scCstS(N(RN(R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytcancopy�scCs
t|�S(N(RM(R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytpeer�scCs
tj�S(N(tostgetcwd(R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRc�s(R;R<RRStunfilteredpropertycacheR>R]RBR^RJR_R`RaRc(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRP�s							cCsJ|rtjtd���n|jddd�}|sftjtj��}|dkrfd}qfn|r�tj�}||kr�d}q�tj	j
|d�}|j|�r�|t|�}q�n|jd�r-|j
dd�dj
dd�}t|�dkr||d	}}q:|\}}n
||}}t|||�S(
Ns"cannot create new union repositorytbundletmainreporootR*sunion:t:it+i(RWtAbortRtconfigtcmdutiltfindrepoRbRcR
RGtjoint
startswithRtsplitRP(RURGtcreatet
parentpathtcwdtstrepopatht	repopath2((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytinstance�s*	"
(t__doc__RRti18nRRbRWR&RkRRSR>RBRERRR=RARDt	localpeerRMRTRPRv(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyt<module>s0<Y*

Anon7 - 2021