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/mercurial/pure/mpatch.pyc
�
1�3\c@@s|ddlmZddlZddlmZejZdefd��YZd�Z	d�Z
d	�Zd
�Zd�Z
dS(i(tabsolute_importNi(tpycompattmpatchErrorcB@seZdZRS(s0error raised when a delta cannot be decoded
    (t__name__t
__module__t__doc__(((s;/usr/lib64/python2.7/site-packages/mercurial/pure/mpatch.pyRscC@s�x|r�|j�}|d|krc|j|d||d|f�|j||df�dS|j|�||d8}qWdS(Nii(tpoptappend(tdsttsrctltf((s;/usr/lib64/python2.7/site-packages/mercurial/pure/mpatch.pyt_pulls	#
cC@s:|j|�|j|�}|j|�|j|�dS(sXmove count bytes from src to dest

    The file pointer is left at the end of dest.
    N(tseektreadtwrite(tmtdestR	tcounttbuf((s;/usr/lib64/python2.7/site-packages/mercurial/pure/mpatch.pyt_move's

cC@sN|}x7t|�D])\}}t||||�||7}qW|||fS(N(treversedR(RRtlisttstartR
tp((s;/usr/lib64/python2.7/site-packages/mercurial/pure/mpatch.pyt_collect1s
cC@s-|s
|Sg|D]}t|�^q}t|�}t|�|}|||}d|}}|sj|St�}	|	j|�t|�|fg}
||}|	j|�x|D]}|	j|�q�Wx,|D]$}
t|
�dkr||}}t|	||
�g}
ng}||
}d}x�||kr�|	j|�y(tjd|	jd��\}}}Wn tj	k
r�t
d��nXt||
||�tg|
||�|j||df�||d7}|}q'W|
j
t|��q�Wt|	||
�}|	j|d�|	j|d�S(Nii�s>lllispatch cannot be decodedi(tlentsumtstringioRR
RtstructtunpackRterrorRRRtextendR(tatbinstxtplenstpltblttltb1tb2RtfragstposRtplentnewtendtlasttp1tp2R
tt((s;/usr/lib64/python2.7/site-packages/mercurial/pure/mpatch.pytpatches8sL
	







(
cC@s�d\}}}t|�}d}x~||kr�|||d!}tjd|�\}}	}
||	krlPn||
}|d}|||7}|	}||
7}q$W||kr�td��n|||7}|S(Niis>lllspatch cannot be decoded(iii(RRRR(torigtdeltatoutlenR/tbintbinendtdatatdecodeRR.tlength((s;/usr/lib64/python2.7/site-packages/mercurial/pure/mpatch.pytpatchedsizels"

(t
__future__RRtRtbytesioRt	ExceptionRRRRR3R<(((s;/usr/lib64/python2.7/site-packages/mercurial/pure/mpatch.pyt<module>s		
	
		4