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 :  /lib64/python3.9/site-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

�+�bk6�@s�ddlmZddlmZddlmZmZmZm	Z	ddl
mZe	jZdZ
ejGdd�de��Zdd	d
d	d�Zddd
d
d
d
d�dd	d
d
ddd�dd
id�Zeded<dd
dd
d
d�iZhd�Zd#dd�Zdd�Zdd�Zd$dd�ZGdd�de�Zd d!�Zd"S)%�)�_)�attr)�error�requirements�sslutil�util)�
stringutilsclonebundles.manifestc@s<eZdZe��Ze��Ze��Ze��Ze��Z	e��Z
dS)�
bundlespecN)�__name__�
__module__�__qualname__rZib�compression�wirecompression�version�wireversion�params�contentopts�rr�</usr/lib64/python3.9/site-packages/mercurial/bundlecaches.pyr	sr	s01�02�s1)�v1�v2�packed1�bundle2TF)�changegroup�
cg.versionsobsolescencesphases�tagsfnodescache�revbranchcacher)rrrrr�streamv2)rrrr>sgzip�none�bzip2cCs�dd�}|r&d|vr&t�td�|��d|vr�|�dd�\}}|tjjvr\t�td�|��||�\}}|tvr�t�td�|��n�|r�J�||�\}}|tjjvr�|}d}t	j
|jvr�d	}nt	j|jvr�d	}|t
vr�d	}n2|tvr�|d
kr�d}nd}|}nt�td
�|��|dk�r4|t
v�r4t�td�|��|d
k�r�d|v�r�t|d�d��}|t	j}|�r�t�td�d�t|����t�|i���}	d|v�r�|dd	k�r�td}
|	�|
�tj�|�}|��\}}t|}
t||||
||	�S)a�Parse a bundle string specification into parts.

    Bundle specifications denote a well-defined bundle/exchange format.
    The content of a given specification should not change over time in
    order to ensure that bundles produced by a newer version of Mercurial are
    readable from an older version.

    The string currently has the form:

       <compression>-<type>[;<parameter0>[;<parameter1>]]

    Where <compression> is one of the supported compression formats
    and <type> is (currently) a version string. A ";" can follow the type and
    all text afterwards is interpreted as URI encoded, ";" delimited key=value
    pairs.

    If ``strict`` is True (the default) <compression> is required. Otherwise,
    it is optional.

    Returns a bundlespec object of (compression, version, parameters).
    Compression will be ``None`` if not in strict mode and a compression isn't
    defined.

    An ``InvalidBundleSpecification`` is raised when the specification is
    not syntactically well formed.

    An ``UnsupportedBundleSpecification`` is raised when the compression or
    bundle type/version is not recognized.

    Note: this function will likely eventually return a more complex data
    structure, including bundle2 part information.
    cSs�d|vr|ifSi}|�dd�\}}|�d�D]J}d|vrLt�td�|��|�dd�\}}t�|�}t�|�}|||<q.||fS)N�;r�=s:invalid bundle specification: missing "=" in parameter: %s)�splitr�InvalidBundleSpecificationr�urlreq�unquote)�srrZparamstr�p�key�valuerrr�parseparamsns$���


z$parsebundlespec.<locals>.parseparams�-sCinvalid bundle specification; must be prefixed with compression: %srs%s compression is not supporteds%%s is not a recognized bundle versionrrrr r!s+%s is not a recognized bundle specifications4compression engine %s is not supported on v1 bundlessrequirements�,s+missing support for repository features: %ss, sstreamr)rr%rr$rZcompenginesZsupportedbundlenames�UnsupportedBundleSpecification�_bundlespeccgversions�requirementsmodZGENERALDELTA_REQUIREMENTrZREVLOGV2_REQUIREMENT�_bundlespecv1compengines�setZSTREAM_FIXED_REQUIREMENTS�join�sorted�_bundlespeccontentopts�get�copy�_bundlespecvariants�updateZ
forbundlenameZ
bundletyper	)�repo�spec�strictr,r
rrrZmissingreqsrZvariantZenginerrrrr�parsebundlespecLs�"���
�
�
���
��
�r>c

Cs�g}|��D]�}|��}|sqd|di}|dd�D]�}|�dd�\}}tj�|�}tj�|�}|||<|dkr6z"t||�}	|	j|d<|	j|d<Wq6tj	y�Yq6tj
y�Yq60q6|�|�q|S)	z�Parses the raw text of a clone bundles manifest.

    Returns a list of dicts. The dicts have a ``URL`` key corresponding
    to the URL and other keys are the attributes for the entry.
    �URL�rNr#�
BUNDLESPECsCOMPRESSIONsVERSION)�
splitlinesr$rr&r'r>r
rrr%r/�append)
r;r(�m�line�fields�attrsZrawattrr*r+r	rrr�parseclonebundlesmanifest�s,

rHcCs@|jdkr|jdkrdS|jdkr<|jdkr<|j�d�r<dSdS)NsUNrTrrF)rrrr7)r	rrr�isstreamclonespecs��
�rIc
Cs�g}|D�]�}|�d�}|r�z6t||dd�}|rPt|�sP|j�d|d�WqWn�tjy�}z.|j�t�|�d�WYd}~qWYd}~nXd}~0tj	y�}z6|j�d|dt�|�f�WYd}~qWYd}~n
d}~00n|�r|j�d	|d�qd
|v�r0t
j�s0|j�d|d�qd|v�r�zt�
|d�}Wn.tj�yz|j�d
|d�YqYn0|j��}	|	du�r�|	d|k�r�|j�d|d�q|�|�q|S)auRemove incompatible clone bundle manifest entries.

    Accepts a list of entries parsed with ``parseclonebundlesmanifest``
    and returns a new list consisting of only the entries that this client
    should be able to apply.

    There is no guarantee we'll be able to apply all returned entries because
    the metadata we use to filter on may be missing or wrong.
    rAT)r=s(filtering %s because not a stream clone
r?�
Ns1filtering %s because unsupported bundle spec: %s
s?filtering %s because cannot determine if a stream clone bundle
s
REQUIRESNIs'filtering %s because SNI not supported
sREQUIREDRAMs0filtering %s due to a bad REQUIREDRAM attribute
g��Q��?s8filtering %s as it needs more than 2/3 of system memory
)r7r>rI�ui�debugrr%rZforcebytestrr/rZhassnirZ	sizetointZ
ParseErrorZestimatememoryrC)
r;�entriesZstreamclonerequestedZ
newentries�entryr<r	�eZrequiredramZ	actualramrrr�filterclonebundleentriessn


�� ��$��
�
��

��rPc@sPeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�ZdS)�clonebundleentryz�Represents an item in a clone bundles manifest.

    This rich class is needed to support sorting since sorted() in Python 3
    doesn't support ``cmp`` and our comparison is complex enough that ``key=``
    won't work.
    cCs||_||_dS�N)r+�prefers)�selfr+rSrrr�__init__bszclonebundleentry.__init__cCs�|jD]�\}}|j�|�}|j�|�}|durD|durD||krDdS|durb|durb||krbdS|dus|durtq||kr~q||kr�dS||krdSqqdS)N���rr@)rSr+r7)rT�otherZprefkeyZ	prefvalueZavalueZbvaluerrr�_cmpfs"zclonebundleentry._cmpcCs|�|�dkS�Nr@�rX�rTrWrrr�__lt__�szclonebundleentry.__lt__cCs|�|�dkSrYrZr[rrr�__gt__�szclonebundleentry.__gt__cCs|�|�dkSrYrZr[rrr�__eq__�szclonebundleentry.__eq__cCs|�|�dkSrYrZr[rrr�__le__�szclonebundleentry.__le__cCs|�|�dkSrYrZr[rrr�__ge__�szclonebundleentry.__ge__cCs|�|�dkSrYrZr[rrr�__ne__�szclonebundleentry.__ne__N)r
rr�__doc__rUrXr\r]r^r_r`rarrrrrQZs"rQcsV|�dd���st|�Sdd���fdd��D��t�fdd�|D��}d	d�|D�S)
NsuisclonebundlepreferscSs2d|vr&td�}tjtd�||d��|�dd�S)Nr#s3each comma separated item should be key=value pairss&invalid ui.clonebundleprefers item: %s)�hintr)rrZAbortr$)r)rcrrr�_split�s�z&sortclonebundleentries.<locals>._splitcsg|]}�|��qSrr)�.0r))rdrr�
<listcomp>��z*sortclonebundleentries.<locals>.<listcomp>c3s|]}t|��VqdSrR)rQ)re�v)rSrr�	<genexpr>�rgz)sortclonebundleentries.<locals>.<genexpr>cSsg|]
}|j�qSr)r+)re�irrrrf�rg)Z
configlist�listr5)rKrM�itemsr)rdrSr�sortclonebundleentries�srmN)T)F)Zi18nrZ
thirdpartyr�rrr1rrZutilsrr&ZCB_MANIFEST_FILEr(�objectr	r0r6r9r2r>rHrIrPrQrmrrrr�<module>sX�
�	����

$
HA

Youez - 2016 - github.com/yon3zu
LinuXploit