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: //lib64/python2.7/site-packages/mercurial/unionrepo.pyo
�
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�|_x<|jD]1}|jj	|}|\}}	}
}}}
}}|d@}|dkr�|}n||�}|dk	r�||�}n||jkr|jj|j|�q]n|jj
|
�}|jj
|�}|d|
|||j|�|j|�|f}|j	j|�||j|<|jj|�|d7}q]WdS(Nii��(tvfsmodtreadonlyvfsRt__init__trevlog2tlent
repotiprevtsett
bundlerevstindextNonetnodemaptaddtnodetrevtappend(tselftopenert	indexfileRt
linkmappertntrev2Rt_startt_csizetrsizetbasetlinkrevtp1revtp2revRtflagstlinktp1nodetp2nodete((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR#s4	

	$
cC@s;||jkr"tjj||�S|jj|j|��S(N(RRt_chunkRR(RR((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR1QscC@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(Rtrev1R$((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR2Vs	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
isinstancetintRRRRRR5t_revisioncachetbaserevision(Rt	nodeorrevt_dftrawRRttext((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR5ascC@stjj||�S(N(RR5(RR<((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR;wscC@stjj|||�S(N(RR2(RR6R$((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR3}scC@s
t�dS(N(tNotImplementedError(RR?ttransactionR-tp1tp2td((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytaddrevision�scC@s
t�dS(N(R@(RtdeltasRAt
addrevisioncb((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytaddgroup�scC@s
t�dS(N(R@(RRtminlink((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytstrip�scC@s
t�dS(N(R@(R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyt	checksize�sN(t__name__t
__module__RR1R2RtFalseR5R;R3RERHRJRK(((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!(RR topener2R"t
changelog2((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR�s
cC@stjj||�S(N(RR5(RR<((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR;�scC@stjj|||�S(N(RR2(RR6R$((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR3�s(RLRMRR;R3(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRO�s		t
unionmanifestcB@s#eZd�Zd�Zd�ZRS(cC@sBtjj||�tj|�}tj|||j||�dS(N(R	tmanifestrevlogRRR!(RR RPR"t	manifest2((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR�scC@stjj||�S(N(R	RSR5(RR<((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR;�scC@stjj|||�S(N(R	RSR2(RR6R$((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR3�s(RLRMRR;R3(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRR�s		tunionfilelogcB@s,eZd�Zd�Zd�Zd�ZRS(cC@sqtjj|||�tj||�}t||j|j|�|_||_|jj|_|jj|_dS(N(RRRR!t_revlogt_repoRR(RR tpathRPR"trepotfilelog2((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR�s	cC@stjj||�S(N(RR5(RR<((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR;�scC@stjj|||�S(N(RR2(RR6R$((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR3�scC@sM||jkr"tjj||�S|j|�}|jj|jj|��S(s Check if a revision is censored.(RRt
iscensoredRRR(RRR((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR[�s(RLRMRR;R3R[(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRU�s				t	unionpeercB@seZd�ZRS(cC@stS(N(RN(R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytcanpush�s(RLRMR](((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	setconfigRN(RRbturl((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR�s		cC@st|j|jj�S(N(ROtsvfsRb(R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR�scC@s:t|j|jj|j�j�}tj|j||�S(N(RRRgRbt
unfilteredt_clrevR	tmanifestlog(Rt	rootstore((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRj�scC@s%|jjj|�}|jj|�S(s?map from repo2 changelog rev to temporary rev in self.changelog(RbRRR(RR$R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRi�scC@s|jS(N(Rc(R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRf�scC@s(t|j||jj|j�j|�S(N(RURgRbRhRi(Rtf((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pytfile�scC@s|jj�dS(N(Rbtclose(R((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyRn�scC@stS(N(RN(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.pyRq�s(RLRMt__doc__RRtunfilteredpropertycacheRRjRiRfRmRnRoRpRq(((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mainreporootR7sunion:t:it+i(RtAbortRtconfigRtfindrepoRRqRRtnormasprefixt
startswithRtsplittmakeunionrepository(
RdRXtcreatetintentst
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.Rsunion:%s+%stderivedunionrepositorycB@seZRS((RLRM(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR�s(RR�RNR
t
expandpathR^t	__class__R(Rdt	repopath1R�trepo1RbRfR�RY((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyR~s	N(!Rrt
__future__Rti18nRRRR7RRRRRRR	R
RRR
RRRRORSRRRUt	localpeerR\tobjectR^RR�R~(((s9/usr/lib64/python2.7/site-packages/mercurial/unionrepo.pyt<module>sRh
.