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: //usr/lib64/python2.7/site-packages/mercurial/diffhelper.pyc
�
1�3\c@@sUddlmZddlmZddlmZmZd�Zd�Zd�Z	dS(	i(tabsolute_importi(t_(terrortpycompatcC@sHxAtrC|t|�}|t|�}t||�}|dkrHPnx�tj|�D]�}	|j�}
|
s�tjtd���n|
dkr�t	|||�qXn|
dks�|
dkr�d|
}
n|j
|
�|
jd�r�|j
|
d�qX|
jd	�r|j
|
�qX|j
|
d�|j
|
�qXWqWd
S(sRead lines from fp into the hunk

    The hunk is parsed into two arrays, a and b. a gets the old state of
    the text, b gets the new state. The control char from the hunk is saved
    when inserting into a, but not b (for performance while deleting files.)
    isincomplete hunks\ No newline at end of file
s
s
t t+it-N(tTruetlentmaxRtxrangetreadlineRt
ParseErrorRt
fixnewlinetappendt
startswith(tfpthunktlenatlenbtatbttodoattodobtnumtits((s:/usr/lib64/python2.7/site-packages/mercurial/diffhelper.pytaddliness,	

cC@sz|d}|jd�r&|d }n
|d }|jd	�rP|d|d<n|jd
�rl||d<n||d<dS(sEFix up the last lines of a and b when the patch has no newline at EOFi����s
i����RRiRN(RR(RR(tendswithR(RRRtlthline((s:/usr/lib64/python2.7/site-packages/mercurial/diffhelper.pyR
2s



cC@svt|�}t|�}|||ks4|dkr8tSx7tj|�D]&}||d|||krHtSqHWtS(s�Compare the lines in a with the lines in b

    a is assumed to have a control char at the start of each line, this char
    is ignored in the compare.
    ii(RtFalseRR
R(RRtbstarttalentblenR((s:/usr/lib64/python2.7/site-packages/mercurial/diffhelper.pyttesthunkAsN(
t
__future__Rti18nRtRRRR
R#(((s:/usr/lib64/python2.7/site-packages/mercurial/diffhelper.pyt<module>s
	!