Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/mercurial/__pycache__/ |
Upload File : |
o �]LbE � @ 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||�}|dkrd S t�|�D ]S} | �� } | s,t�td���| tkr7t |||� q| dks?| dkrCd| } |� | � | �d�rW|� | dd � � q| �d �rb|� | � q|� | dd � � |� | � qq)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.) Tr s incomplete hunk� � � � +r N� -)�len�maxr �xrange�readliner � ParseErrorr �MISSING_NEWLINE_MARKER� fixnewline�append� startswith)�fp�hunk�lena�lenb�a�b�todoa�todob�num�i�s� r �6/usr/lib/python3/dist-packages/mercurial/diffhelper.py�addlines s. �r"