| 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/cffi/__pycache__/ |
Upload File : |
a
�+�b� � @ sT d dl mZ ddlT ddlmZ ddlmZ ejZejZe�� dd� �Z d d
� Z
dS )� )�absolute_import� )�*)�mpatchError� )�_mpatchc C sb t �| �\}}t �d�}t �dt|| ��}|�|� t�|t|�d |�}|dk rZt jS |d S )Ns struct mpatch_flist*[1]� char[]r r ) �ffiZfrom_handle�new�str�append�libZ
mpatch_decode�lenZNULL)�arg�pos�all�bins� containerZto_pass�r� r �;/usr/lib64/python3.9/site-packages/mercurial/cffi/mpatch.py�cffi_get_next_item s
r c C s� t |�}g }|s| S ||f}t�t�|�tjd|�}|s@td��t�t | �|�}|dk rjt�|� td��t� d|�}t�
|| t | �|�dk r�t�|� td��t�||�d d � }t�|� |S )Nr s cannot decode chunks inconsistency detectedr s error applying patches)r r
Zmpatch_foldr Z
new_handler r Zmpatch_calcsizeZmpatch_lfreer
Zmpatch_apply�buffer) �textr Zlgtr r ZpatchZoutlen�buf�resr r r �patches s&