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 �]LbW� � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlmZm Z mZmZmZmZ ddlmZ ddlmZ ddlmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+ dd l,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3 dd l4m5Z5 ddl6m7Z7m8Z8m9Z9m:Z:m;Z;mZm<Z<m=Z=m>Z> ddl?m@Z@m>ZA dd l<mBZCmDZEmFZFmGZHmIZImJZJmKZKmLZM ddlNmOZOmPZP e# e$ e& e e e e( e) e* e% e' e2 e. e1 e/ e- e0 e3 e;�Qd�ZRe;�Sd�ZTe;�Sd�ZUe;�Sd�ZVe jWZXdZYdd� ZZdd� Z[dd� Z\eZe[e\fZ]dd� Z^eVdu�p e>�_eRd�Z`eA�ae@jb�e5jcdd�G dd � d ed���ZeeA�ae@jf�e5jcdd!�G d"d#� d#ed���Zgd$d%� Zhd&d'� Zid(d)� Zje>�_eRd*��rad+d,� ZkndZkd-d.� Zld/Zmed0�ZnG d1d� ded�ZodS )2z�Storage back-end for Mercurial. This provides efficient delta storage with O(1) retrieve and append and O(changes) merge between branches. � )�absolute_importN� )�bin�hex�nullrev�sha1nodeconstants�short�wdirrev)�_)�getattr)� ALL_KINDS�CHANGELOGV2�COMP_MODE_DEFAULT�COMP_MODE_INLINE�COMP_MODE_PLAIN� ENTRY_RANK�FEATURES_BY_VERSION�FLAG_GENERALDELTA�FLAG_INLINE_DATA�INDEX_HEADER�KIND_CHANGELOG�RANK_UNKNOWN�REVLOGV0�REVLOGV1�REVLOGV1_FLAGS�REVLOGV2�REVLOGV2_FLAGS�REVLOG_DEFAULT_FLAGS�REVLOG_DEFAULT_FORMAT�REVLOG_DEFAULT_VERSION�SUPPORTED_FLAGS)�REVIDX_DEFAULT_FLAGS�REVIDX_ELLIPSIS�REVIDX_EXTSTORED�REVIDX_FLAGS_ORDER�REVIDX_HASCOPIESINFO�REVIDX_ISCENSORED�REVIDX_RAWTEXT_CHANGING_FLAGS)�attr) �ancestor�dagop�error�mdiff�policy�pycompat�revlogutils�templatefilters�util)� repositoryr1 )�deltas�docket�flagutil�nodemap�randomaccessfile�revlogv0�rewrite�sidedata)�storageutil� stringutil�parsersr) r* �revlogi c C � |dfS �NF� ��rl�textrA rA �2/usr/lib/python3/dist-packages/mercurial/revlog.py�ellipsisreadprocessor� � rF c C r? r@ rA rB rA rA rE �ellipsiswriteprocessor� rG rH c C � dS r@ rA rB rA rA rE �ellipsisrawprocessor� s rJ c C s$ |r|d � |� dS | �|� dS )z}Verify the integrity of the given revlog ``node`` while providing a hook point for extensions to influence the operation.� skipreadN)�add�revision)rC � skipflags�state�noderA rA rE �_verify_revision� s rQ �BaseIndexObjectT)�slotsc @ sh e Zd Ze�� Ze�� Ze�� Ze�� Ze�� Z e�� Z e�� Ze�� Ze�� Z e�� Zejdd�ZdS )�revlogrevisiondeltaN��default)�__name__� __module__�__qualname__r( �ibrP �p1node�p2node�basenode�flags�baserevisionsizerM �deltar: �protocol_flags�linknoderA rA rA rE rT � s rT )�frozenc @ s0 e Zd Zejdd�Zejdd�Zejdd�ZdS )� revlogproblemNrU )rW rX rY r( rZ �warningr+ rP rA rA rA rE rd � s rd c C � t �| |�\}}||fS �N)r= �parse_index2��data�inline�index�cacherA rA rE �parse_index_v1� s rn c C � t j| |td�\}}||fS �N)�format)r= rh r ri rA rA rE �parse_index_v2� � rr c C ro rp )r= rh r ri rA rA rE �parse_index_cl_v2� rs rt �parse_index_devel_nodemapc C rf rg )r= ru ri rA rA rE �parse_index_v1_nodemap� s rv c C s t | |�\}}t�|�|fS rg )rn � rustrevlog� MixedIndexri rA rA rE �parse_index_v1_mixed� s ry i���sN cannot read from revlog %s; expected %d bytes from offset %d, data size is %dc @ s8 e Zd ZdZejZ d�dd�Zdd� Zd�dd �Z d�d d�Z ejdd � �Z ejdd� �Zdd� Zejdd� �Zejdd� �Zdd� Zdd� Zdd� Zd�dd�Zejdd � �Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd�d,d-�Zd.d/� Zd0d1� Z d2d3� Z!d4d5� Z"d6d7� Z#d8d9� Z$d:d;� Z%d<d=� Z&d>d?� Z'd@dA� Z(dBdC� Z)dDdE� Z*dFdG� Z+dHdI� Z,dJdK� Z-dLdM� Z.e.Z/dNdO� Z0dPdQ� Z1dRdS� Z2dTdU� Z3dVdW� Z4d�dXdY�Z5d�dZd[�Z6d\d]� Z7d�d^d_�Z8d�d`da�Z9d�dbdc�Z:d�ddde�Z;d�dfdg�Z<d�dhdi�Z=djdk� Z>dldm� Z?d�dndo�Z@dpdq� ZAdrds� ZBdtdu� ZCdvdw� ZDdxdy� ZEd�dzd{�ZFd|d}� ZGd~d� ZHd�d�� ZId�d�� ZJd�d�d��ZKd�d�� ZLd�d�d��ZMd�d�d��ZNd�d�d��ZOd�d�� ZPd�d�� ZQd�d�� ZRd�d�� ZSd�d�d��ZTd�d�d��ZUd�d�d��ZVd�d�d��ZWd�d�� ZXd�d�d��ZYd�d�� ZZd�d�d��Z[d�d�� Z\d�d�� Z]ejd�d�� �Z^ejd�d�� �Z_d�d�� Z`ddeaddfd�d��Zb d�d�d��Zcd�d�� Zdd�d�� Ze d�d�d��Zfd�d�� Zgd�d�� Zh d�d�d��Zid�d Zjd�dĄ Zkd�dƄ Zld�dȄ Zmd�dʄ Znd�d̄ Zodddepjqdfd�d΄Zrd�Zsd�Ztd�Zud�Zvh dӣZwdetddfd�dՄZxd�dׄ Zyd�d�dڄZzd�d܄ Z{ d�d�dބZ|d�d� Z}dS )�r>