403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/lib64/python3.9/site-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib64/python3.9/site-packages/mercurial/__pycache__/unionrepo.cpython-39.pyc
a

�+�b�&�@s�dZddlmZddlmZddlmZddlmZm	Z	m
Z
mZmZm
Z
mZmZmZmZmZmZddlmZGdd	�d	ej�ZGd
d�deej�ZGdd
�d
eej�ZGdd�dej�ZGdd�de
j�ZGdd�de�Z ddd�Z!dd�Z"dS)z~Repository class for "in-memory pull" of one local repository to another,
allowing operations like diff and log with revsets.
�)�absolute_import�)�_)�getattr)�	changelog�cmdutil�encoding�error�filelog�	localrepo�manifest�mdiff�pathutil�revlog�util�vfs)�	constantscs^eZdZdd�Zdd�Z�fdd�Zd�fd	d
�	Zddd�Zdd
d�Zdd�Z	dd�Z
�ZS)�unionrevlogcCsVt�|�}t|dd�}|dur&|jj}tjj||||d�||_t|�}|d|_	t
�|_|jD]�}|jj|}|\
}	}
}}}
}}}}}}}}|	d@}|dur�|
|ks�J�|}n||
�}|dur�||�}|j�
|�}|dur�|j�|�q`|j�|�}|j�|�}|d||||�|�|�|�|ddtjtj|f
}|j�|�|j�|�|d7}q`dS)N�target)r�radixri�����r)�vfsmodZreadonlyvfsr�_revlogrr�__init__�revlog2�len�
repotiprev�setZ
bundlerevs�indexZget_rev�add�node�rev�revlog_constantsZCOMP_MODE_INLINE�append)�self�openerrr�
linkmapperr�n�rev2r!Z_startZ_csizeZrsize�baseZlinkrevZp1revZp2revr Z_sdoZ_sdsZ_dcmZ_sdcmZrank�flags�linkZthis_revZp1nodeZp2node�e�r-�9/usr/lib64/python3.9/site-packages/mercurial/unionrepo.pyr(sp


��zunionrevlog.__init__cCs*||jkrtj�||�S|j�|�|��S�N)rr�_chunkrr )r$r!r-r-r.r0us
zunionrevlog._chunkcs|||jkr>||jkr>|j�|j�|�|��|j�|�|���S||jkrd||jkrdtt|��||�St�|�	|�|�	|��S)z1return or calculate a delta between two revisions)
rr�revdiffr!r �superrr
ZtextdiffZrawdata)r$Zrev1r(��	__class__r-r.r1zs�zunionrevlog.revdiffNFcsdt|t�r|}|�|�}n|}|�|�}||jkrJt|jd|j�}|j}ntt	|�j}||||d�S)Nr)�_df�raw)
�
isinstance�intr r!rrr�
_revisiondatar2r)r$Z	nodeorrevr5r6r!r r�funcr3r-r.r9�s


zunionrevlog._revisiondatacCst�dSr/��NotImplementedError)r$�text�transactionr+Zp1Zp2�dr-r-r.�addrevision�szunionrevlog.addrevisioncCst�dSr/r;)r$Zdeltasr&r>ZalwayscacheZ
addrevisioncbZduplicaterevisioncbZmaybemissingparentsr-r-r.�addgroup�s
zunionrevlog.addgroupcCst�dSr/r;)r$Zminlinkr>r-r-r.�strip�szunionrevlog.stripcCst�dSr/r;�r$r-r-r.�	checksize�szunionrevlog.checksize)NF)NNN)FNNF)�__name__�
__module__�__qualname__rr0r1r9r@rArBrD�
__classcell__r-r-r3r.r'sM
�
rc@seZdZdd�ZdS)�unionchangelogcCs4tj�||�d}t�|�}t�|||j||�dSr/)rrrr)r$r%�opener2r&Z
changelog2r-r-r.r�s
zunionchangelog.__init__N�rErFrGrr-r-r-r.rI�srIc@seZdZdd�ZdS)�
unionmanifestcCs6tj�|||�t�||�}t�|||jj||�dSr/)r�manifestrevlogrrrr)r$�
nodeconstantsr%rJr&Z	manifest2r-r-r.r�s
�zunionmanifest.__init__NrKr-r-r-r.rL�srLc@seZdZdd�Zdd�ZdS)�unionfilelogcCsPtj�|||�t�||�}t||jj|j|�|_||_|jj|_|jj|_dSr/)r
rrrrZ_reporr)r$r%�pathrJr&�repoZfilelog2r-r-r.r�s�
zunionfilelog.__init__cCs6||jkrtj�||�S|�|�}|j�|j�|��S)z Check if a revision is censored.)rr
�
iscensoredr rr!)r$r!r r-r-r.rR�s

zunionfilelog.iscensoredN)rErFrGrrRr-r-r-r.rO�s
rOc@seZdZdd�ZdS)�	unionpeercCsdS�NFr-rCr-r-r.�canpush�szunionpeer.canpushN)rErFrGrUr-r-r-r.rS�srSc@sleZdZdZdd�Zejdd��Zejdd��Zdd	�Z	d
d�Z
dd
�Zdd�Zdd�Z
dd�Zdd�ZdS)�unionrepositoryz�Represents the union of data in 2 repositories.

    Instances are not usable if constructed directly. Use ``instance()``
    or ``makeunionrepository()`` to create a usable instance.
    cCs"||_||_|j�dddd�dS)NsphasesspublishFs	unionrepo)�repo2�_url�uiZ	setconfig)r$rW�urlr-r-r.r�szunionrepository.__init__cCst|j|jj�Sr/)rI�svfsrWrCr-r-r.r�szunionrepository.changelogcCs2t|j|j|jj|��j�}t�|j|||���Sr/)	rLrNr[rW�
unfiltered�_clrevr�manifestlogZnarrowmatch)r$Z	rootstorer-r-r.r^�s��zunionrepository.manifestlogcCs|jj�|�}|j�|�S)z?map from repo2 changelog rev to temporary rev in self.changelog)rWrr r!)r$r(r r-r-r.r]�szunionrepository._clrevcCs|jSr/)rXrCr-r-r.rZ�szunionrepository.urlcCst|j||jj|��j|�Sr/)rOr[rWr\r])r$�fr-r-r.�file�s�zunionrepository.filecCs|j��dSr/)rW�closerCr-r-r.ra�szunionrepository.closecCsdSrTr-rCr-r-r.�cancopyszunionrepository.cancopycCst|�Sr/)rSrCr-r-r.�peerszunionrepository.peercCst��Sr/)r�getcwdrCr-r-r.rdszunionrepository.getcwdN)rErFrG�__doc__rrZunfilteredpropertycacherr^r]rZr`rarbrcrdr-r-r-r.rV�s

rVNc
Cs�|rt�td���|�dd�}|s<t�t���}|dur<d}|rzt��}||krVd}n$t�	|�}|�
|�rz|t|�d�}|�
d�r�|�dd�d�dd�}t|�dkr�||d	}}	q�|\}}	n
||}}	t
|||	�S)
Ns"cannot create new union repositorysbundlesmainreporoot�sunion:�:r�+r)r	ZAbortrZconfigrZfindreporrdrZnormasprefix�
startswithr�split�makeunionrepository)
rYrP�createZintentsZ
createoptsZ
parentpath�cwd�sZrepopath�	repopath2r-r-r.�instances*




rpcCshtj||dd�}tj||dd�}dt�|�t�|�f}Gdd�dt|j�}|}||_t�|||�|S)z7Make a union repository object from 2 local repo paths.F)rlsunion:%s+%sc@seZdZdS)z3makeunionrepository.<locals>.derivedunionrepositoryN)rErFrGr-r-r-r.�derivedunionrepository5srq)rrprZ
expandpathrVr4r)rYZ	repopath1roZrepo1rWrZrqrQr-r-r.rk+s�rk)NN)#reZ
__future__rZi18nrZpycompatr�rrrr	r
rrr
rrrrrZrevlogutilsrr"rrIrMrLrOZ	localpeerrS�objectrVrprkr-r-r-r.�<module>
s8	7


Youez - 2016 - github.com/yon3zu
LinuXploit