File: //lib/python3/dist-packages/mercurial/__pycache__/crecord.cpython-310.pyc
o
�]Lb� � @ s� d dl mZ d dlZd dlZd dlZddlmZ ddlmZm Z ddl
mZmZm
Z
mZmZmZmZ ddlmZ ejZed�Zed �Zed
�Zz
d dlZd dlZej
W n
eefya dZY nw G dd� de
j�Zd
d� ZG dd� de�Z G dd� de e!�ZG dd� de �Z"G dd� de �Z#G dd� de �Z$d(dd�Z%d(dd�Z&dd� Z'd(dd �Z(ed!�ed"�ed#�ed$�d%�Z)G d&d'� d'e�Z*dS ))� )�absolute_importN� )�_)�getattr�open)�
diffhelper�encoding�error�patch�pycompat�scmutil�util)�
stringutils� # To remove '-' lines, make them ' ' lines (context).
# To remove '+' lines, delete them.
# Lines starting with # will be removed from the patch.
s, #
# If the patch applies cleanly, the edited hunk will immediately be
# added to the record list. If it does not apply cleanly, a rejects file
# will be generated. You can use that when you try again. If all lines
# of the hunk are removed, then the edit is aborted and the hunk is left
# unchanged.
s� #
# If the patch applies cleanly, the edited patch will immediately
# be finalised. If it does not apply cleanly, rejects files will be
# generated. You can use those when you try again.
c @ s e Zd ZdZdS )�
fallbackerrorzDError that indicates the client should try to fallback to text mode.N)�__name__�
__module__�__qualname__�__doc__� r r �3/usr/lib/python3/dist-packages/mercurial/crecord.pyr F s r c C s t o| �d�dkS )z�Return True if the user wants to use curses
This method returns True if curses is found (and that python is built with
it) and that the user has the correct flag for the ui.
s
chunkselectors curses)�curses� interface)�uir r r �checkcursesM s r c @ sR e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z ddd�Z
dd� ZdS )� patchnodezVabstract class for patch graph nodes
(i.e. patchroot, header, hunk, hunkline)
c C � t d���N�&