/
lib64
/
python3.9
/
site-packages
/
mercurial
/
__pycache__
/
Upload File
HOME
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<