| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.9/site-packages/mercurial/__pycache__/ |
Upload File : |
a
�+�bE � @ sH d dl mZ ddlmZ ddlmZmZ dZdd� Zdd � Z d
d� Z
dS )
� )�absolute_import� )�_)�error�pycompats \ No newline at end of file
c C s� |t |� }|t |� }t||�}|dkr,q�t�|�D ]�} | �� }
|
sTt�td���|
tkrjt |||� q6|
dksz|
dkr�d|
}
|�
|
� |
�d�r�|�
|
dd� � q6|
�d �r�|�
|
� q6|�
|
dd� � |�
|
� q6q dS )
a Read 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.)
r s incomplete hunk�
�
� � +r N� -)�len�maxr �xrange�readliner Z
ParseErrorr �MISSING_NEWLINE_MARKER�
fixnewline�append�
startswith)�fp�hunkZlenaZlenb�a�bZtodoaZtodobZnum�i�s� r �:/usr/lib64/python3.9/site-packages/mercurial/diffhelper.py�addlines s*
r c C sd | d }|� d�r |dd� }n|dd� }|�d�rF|dd� |d<