HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/thread-self/root/lib64/python2.7/site-packages/mercurial/unionrepo.pyc
�
1�3\c@@s=dZddlmZddlmZddlmZddlmZm	Z	m
Z
mZmZm
Z
mZmZmZmZmZmZdejfd��YZd	eejfd
��YZdeejfd��YZd
ejfd��YZde
jfd��YZdefd��YZddd�Zd�Z dS(s~Repository class for "in-memory pull" of one local repository to another,
allowing operations like diff and log with revsets.
i(tabsolute_importi(t_(tnullid(t	changelogtcmdutiltencodingterrortfilelogt	localrepotmanifesttmdifftpathutiltrevlogtutiltvfstunionrevlogcB@steZd�Zd�Zd�Zd
ed�Zd�Zd�Z	d
d
d
d�Z
d
d�Zd�Zd	�Z
RS(c	C@s�tj|�}tjj|||�||_t|�}|d|_t�|_xN|jD]C}|jj	|}|\}}	}
}}}
}}|d@}|dkr�||ks�t�|}n||�}|dk	r�||�}n||jkr|jj
|j|�q]n|jj|
�}|jj|�}|d|
|||j|�|j|�|f}|j	j|�||j|<|jj
|�|d7}q]WdS(Nii��(tvfsmodtreadonlyvfsRt__init__trevlog2tlent
repotiprevtsett
bundlerevstindextNonetAssertionErrortnodemaptaddtnodetrevtappend(tselftopenert	indexfileRt
linkmappertntrev2Rt_startt_csizetrsizetbasetlinkrevtp1revtp2revRtflagstlinktp1nodetp2nodete((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR#s6	

	$
cC@s;||jkr"tjj||�S|jj|j|��S(N(RRt_chunkRR(R R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR2QscC@s�||jkr[||jkr[|jj|jj|j|��|jj|j|���S||jkr�||jkr�|j||�Stj|j|�|j|��S(s1return or calculate a delta between two revisions(	RRtrevdiffRRtbaserevdiffR
ttextdifftrevision(R trev1R%((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR3Vs	cC@s�t|t�r'|}|j|�}n|}|j|�}|tkrLdS||jkr�|jj|�}|||f|_n|j	|�}|S(sTreturn an uncompressed revision of a given node or revision
        number.
        t(
t
isinstancetintRRRRRR6t_revisioncachetbaserevision(R t	nodeorrevt_dftrawRRttext((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR6ascC@stjj||�S(N(RR6(R R=((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR<wscC@stjj|||�S(N(RR3(R R7R%((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR4}scC@s
t�dS(N(tNotImplementedError(R R@ttransactionR.tp1tp2td((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytaddrevision�scC@s
t�dS(N(RA(R tdeltasRBt
addrevisioncb((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytaddgroup�scC@s
t�dS(N(RA(R Rtminlink((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytstrip�scC@s
t�dS(N(RA(R ((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyt	checksize�sN(t__name__t
__module__RR2R3RtFalseR6R<R4RFRIRKRL(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR"s	.					tunionchangelogcB@s#eZd�Zd�Zd�ZRS(cC@sHtjj||�d}tj|�}tj|||j||�dS(N(RRRRR"(R R!topener2R#t
changelog2((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR�s
cC@stjj||�S(N(RR6(R R=((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR<�scC@stjj|||�S(N(RR3(R R7R%((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR4�s(RMRNRR<R4(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRP�s		t
unionmanifestcB@s#eZd�Zd�Zd�ZRS(cC@sBtjj||�tj|�}tj|||j||�dS(N(R	tmanifestrevlogRRR"(R R!RQR#t	manifest2((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR�scC@stjj||�S(N(R	RTR6(R R=((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR<�scC@stjj|||�S(N(R	RTR3(R R7R%((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR4�s(RMRNRR<R4(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRS�s		tunionfilelogcB@s,eZd�Zd�Zd�Zd�ZRS(cC@sqtjj|||�tj||�}t||j|j|�|_||_|jj|_|jj|_dS(N(RRRR"t_revlogt_repoRR(R R!tpathRQR#trepotfilelog2((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR�s	cC@stjj||�S(N(RR6(R R=((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR<�scC@stjj|||�S(N(RR3(R R7R%((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR4�scC@sM||jkr"tjj||�S|j|�}|jj|jj|��S(s Check if a revision is censored.(RRt
iscensoredRRR(R RR((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR\�s(RMRNRR<R4R\(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRV�s				t	unionpeercB@seZd�ZRS(cC@stS(N(RO(R ((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytcanpush�s(RMRNR^(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR]�stunionrepositorycB@szeZdZd�Zejd��Zejd��Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�ZRS(s�Represents the union of data in 2 repositories.

    Instances are not usable if constructed directly. Use ``instance()``
    or ``makeunionrepository()`` to create a usable instance.
    cC@s/||_||_|jjddtd�dS(Ntphasestpublisht	unionrepo(trepo2t_urltuit	setconfigRO(R Rcturl((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR�s		cC@st|j|jj�S(N(RPtsvfsRc(R ((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR�scC@s:t|j|jj|j�j�}tj|j||�S(N(RSRhRct
unfilteredt_clrevR	tmanifestlog(R t	rootstore((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRk�scC@s%|jjj|�}|jj|�S(s?map from repo2 changelog rev to temporary rev in self.changelog(RcRRR(R R%R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRj�scC@s|jS(N(Rd(R ((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRg�scC@s(t|j||jj|j�j|�S(N(RVRhRcRiRj(R tf((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytfile�scC@s|jj�dS(N(Rctclose(R ((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRo�scC@stS(N(RO(R ((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytcancopy�scC@s
t|�S(N(R](R ((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytpeer�scC@s
tj�S(N(Rtgetcwd(R ((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRr�s(RMRNt__doc__RRtunfilteredpropertycacheRRkRjRgRnRoRpRqRr(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR_�s							c
C@sA|rtjtd���n|jdd�}|sctjtj��}|dkrcd}qcn|r�tj�}||kr�d}q�t	j
|�}|j|�r�|t|�}q�n|jd�r$|j
dd�dj
dd�}t|�dkr||d	}}	q1|\}}	n
||}}	t|||	�S(
Ns"cannot create new union repositorytbundletmainreporootR8sunion:t:it+i(RtAbortRtconfigRtfindrepoRRrRRtnormasprefixt
startswithRtsplittmakeunionrepository(
ReRYtcreatetintentst
createoptst
parentpathtcwdtstrepopatht	repopath2((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytinstance�s*	"
cC@s�tj||dt�}tj||dt�}dtj|�tj|�f}dt|jfd��Y}|}||_tj|||�|S(s7Make a union repository object from 2 local repo paths.R�sunion:%s+%stderivedunionrepositorycB@seZRS((RMRN(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR�s(RR�ROR
t
expandpathR_t	__class__R(Ret	repopath1R�trepo1RcRgR�RZ((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRs	N(!Rst
__future__Rti18nRRRR8RRRRRRR	R
RRR
RRRRPRTRSRVt	localpeerR]tobjectR_RR�R(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyt<module>sRh
.