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/hgext/narrow/narrowwirepeer.pyc
�
1�3\c@@s�ddlmZddlmZmZmZmZmZmZm	Z	m
Z
mZd�Zd�Z
ejdddd�d	��Zd
�ZdS(i(tabsolute_import(	tbundle2terrort
extensionsthgt
narrowspectpycompattwireprototypestwireprotov1peertwireprotov1servercC@sttj_dS(N(tpeernarrowwidenRtwirepeertnarrow_widen(((sA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowwirepeer.pytuisetupsc@s#�fd�}tjj|�dS(Nc@s&�fd�}tj|d|�dS(Nc@sT|dkrD�j\}}dj|�|d<dj|�|d<n||||�S(Ntunbundlet,tincludepatstexcludepats(t
narrowpatstjoin(torigtcmdtargstkwargstincludetexclude(trepo(sA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowwirepeer.pytwrappeds
t_calltwowaystream(Rtwrapfunction(tuitpeerR(R(sA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowwirepeer.pyt
wirereposetups(Rtwirepeersetupfuncstappend(RR ((RsA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowwirepeer.pyt	reposetups
RsToldincludes oldexcludes newincludes newexcludes commonheads cgversion known ellipsest
permissiontpullc
C@s�t}
y=tj|�}tj|�}tj|�}tj|�}tjt|��tjt|��tjt|��tjt|��tj|�}d	}|r�tj|�}n|	dkr�t}	nt|	�}	|}tj|j	d|d|�}tj|j	d|d|�}
t
j||
|||||	�}Wn�tj
k
r�}t
j|j�}dtj|�fg}g}|jd	k	r�|jd|jf�n|jt
jd||��t}
nX|j�}tjd|d|
�S(
s�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
    t0RRtmessagethintserror:aborttgentprefer_uncompressedN(tFalseRt
decodelistRtvalidatepatternstsettNonetbooltmatchtrootRtwiden_bundleRtAborttbundle20RRtbytestrR(R"taddpartt
bundleparttTruet	getchunkst	streamres(Rtprototoldincludestoldexcludestnewincludestnewexcludestcommonheadst	cgversiontknowntellipsestpreferuncompressedtcommontnewmatchtoldmatchtbundlertexctmanargstadvargstchunks((sA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowwirepeer.pyR&sF			
cK@sex%d
D]}tj||�||<qWdt|d�|d<|jd	|�}tj|j|�S(NR=R?R>R@RARCs%iRDR(R=R?R>R@RARC(Rt
encodelistR0t_callcompressableRtgetunbundlerR(tremoteRtchtf((sA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowwirepeer.pyR
ds
N(t
__future__Rt	mercurialRRRRRRRRR	R
R#twireprotocommandRR
(((sA/usr/lib64/python2.7/site-packages/hgext/narrow/narrowwirepeer.pyt<module>s@		
: