https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/hgext/narrow/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/hgext/narrow/__pycache__/narrowwirepeer.cpython-310.pyc
o

�]LbU�@stddlmZddlmZmZmZmZmZmZm	Z	m
Z
ddlmZdd�Z
dd�Ze
jd	d
dd�d
d��Zdd�ZdS)�)�absolute_import)�bundle2�error�
extensions�hg�
narrowspec�wireprototypes�wireprotov1peer�wireprotov1server�)�
narrowbundle2cCsttj_dS)N)�peernarrowwidenr	�wirepeer�narrow_widen�rr�=/usr/lib/python3/dist-packages/hgext/narrow/narrowwirepeer.py�uisetupsrcs�fdd�}tj�|�dS)Ncs�fdd�}t�|d|�dS)NcsD|dkr�j\}}d�|�|d<d�|�|d<||g|�Ri|��S)Nsunbundle�,�includepats�excludepats)�
narrowpats�join)�orig�cmd�args�kwargs�include�exclude��reporr�wrappeds

z1reposetup.<locals>.wirereposetup.<locals>.wrappeds_calltwowaystream)r�wrapfunction)�ui�peerr rrr�
wirereposetups	z reposetup.<locals>.wirereposetup)r�wirepeersetupfuncs�append)rr$rrr�	reposetupsr'�narrow_widensToldincludes oldexcludes newincludes newexcludes commonheads cgversion known ellipsesspull)�
permissionc

Cs�d}
z{dd�}||�}||�}||�}||�}t�t|��t�t|��t�t|��t�t|��t�|�}t�|�}|	dkrDd}	nt|	�}	|}t�|j�}
tj	|j
||d�}tj	|j
||d�}|	sqt�|
|||||||	�nt�
|
||||||�Wn:tjy�}z-t�|j�}
d|jfg}g}|jdur�|�d|jf�|
�t�d	||��d
}
WYd}~nd}~ww|
��}tj||
d�S)a�wireprotocol command to send data when a narrow clone is widen. We will
    be sending a changegroup here.

    The current set of arguments which are required:
    oldincludes: the old includes of the narrow copy
    oldexcludes: the old excludes of the narrow copy
    newincludes: the new includes of the narrow copy
    newexcludes: the new excludes of the narrow copy
    commonheads: list of heads which are common between the server and client
    cgversion(maybe): the changegroup version to produce
    known: list of nodes which are known on the client (used in ellipses cases)
    ellipses: whether to send ellipses data or not
    FcSs|r|�d�SgS)Nr)�split)�datarrr�
splitpathsQsz narrow_widen.<locals>.splitpaths�0)rrsmessageNshintserror:abortT)�gen�prefer_uncompressed)r�validatepatterns�setr�
decodelist�boolr�bundle20r"�match�root�widen_bundler�&generate_ellipses_bundle2_for_wideningr�Abort�message�hintr&�addpart�
bundlepart�	getchunks�	streamres)r�proto�oldincludes�oldexcludes�newincludes�newexcludes�commonheads�	cgversion�known�ellipses�preferuncompressedr,�common�bundler�newmatch�oldmatch�exc�manargs�advargs�chunksrrrr,sv"

�����	
��	�rcKsjdD]}t�||�||<qdD]}d�||�||<qdt|d�|d<|jdi|��}t�|j|�S)N)rErG)rArCrBrDrs%irHr()r()r�
encodelistrr3�_callcompressabler�getunbundlerr")�remoter�ch�frrrr
�sr
N)�
__future__r�	mercurialrrrrrrr	r
�rrr'�wireprotocommandrr
rrrr�<module>s(�
^

https://t.me/RX1948 - 2025