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 �]Lb�� � @ s� d dl mZmZ d dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Z ddlmZ ddl mZmZmZ ddlmZ ddlmZmZmZmZmZmZmZmZmZmZmZmZmZ ddl!m"Z"m#Z#m$Z$m%Z% ej&Z&e�'d �Z(e�'d �Z)e�'d�Z*ej+Z+ej,Z,ej-Z-dd � Z.g d�Z/ej0dd� �Z1dd� Z2G dd� de3�Z4dd� Z5G dd� de3�Z6G dd� de3�Z7G dd� de7�Z8G dd� de8�Z9G dd � d e3�Z:G d!d"� d"e7�Z;e�'d#�Z<e�'d$�Z=g d%�Z>G d&d'� d'e3�Z?G d(d)� d)e3�Z@G d*d+� d+e3�ZAd,d-� ZBd}d.d/�ZCG d0d1� d1e3�ZDG d2d3� d3e3�ZEd4d5� ZFd6d7� ZGd}d8d9�ZHd:d;� ZId<d=� ZJd>d?� ZKd@dA� ZLdBdC� ZMdDdE� ZNd~dHdI�ZOdJdK� ZP Gd~dLdM�ZQdNdO� ZR GddPdQ�ZS F G d�dRdS�ZT GddTdU�ZU F G d�dVdW�ZVd�dXdY�ZWG dZd[� d[eX�ZYejZZ[ejZZZej\Z\ d�d\d]�Z] d�d^d_�Z^d`da� Z_dbdc� Z`ddde� Zadfdg� Zbdhdi� Zcdjdk� Zddldmdndo�Zedpdq� Zfdrds� Zgdtdu� Zhdvdw� Zid�dydz�Zjd{d|� ZkdS )�� )�absolute_import�print_functionN� ��_)�hex�sha1nodeconstants�short)�open) �copies� diffhelper�diffutil�encoding�error�mail�mdiff�pathutil�pycompat�scmutil�similar�util�vfs)�dateutil�hashutil�procutil� stringutils diff --git a/(.*) b/(.*)s (\t+|[^\t]+)s9 (\t+| +|[a-zA-Z0-9_\x80-\xff]+|[^ \ta-zA-Z0-9_\x80-\xff])c s dd� �dd� � � fdd�}� fdd�}� fd d �}� �fdd�}� fd d�}G dd� dt �}d}g }dg} t�| d�s@|| �} | D ]H} |�| � | �d�rU|| |� S | �d�ra|| |� S �| |�r|d}| �dd�d �� | v r{|| |� S qB| �d�r�|r�|| |� S qB||�S )z6return an iterator of individual patches from a streamc S sD |r | � d�r dS | � d�rdS | �dd�}t|�dko!d|d vS ) N)� � T)r � -� +F� : r � r r )� startswith�split�len)�line�inheader�l� r( �1/usr/lib/python3/dist-packages/mercurial/patch.py�isheaderC s zsplit.<locals>.isheaderc S s t d�| ��S �N� )�stringio�join)�linesr( r( r) �chunkM s zsplit.<locals>.chunkc 3 s\ � d}| D ]}|� � s d}|s|�d�r� |�V g }d}|�|� q|r,� |�V d S d S )NTF� # HG changeset patch)�stripr"