Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib64/python3.9/site-packages/mercurial/__pycache__/ |
Upload File : |
a �+�be � @ s. d dl mZ d dlZd dlZd dlZd dlZd dlZddlmZ ddl m Z ddlmZ ddl mZmZmZmZm Z mZmZ ddlmZ e�d �Zd Zdd� Zd d� Ze ede�Zdd� Zdd� Zdd� Ze� \Z Z!dd� Z"dd� Z#dd� Z$e edd�p�e$� Z%dZ&dZ'dd � Z(d!Z)d"Z*d"e*d d# Z+d$d%� Z,d&d'� Z-d(d)� Z.e ed*e.�Z.d+d,� Z/d-d.� Z0g d/�Z1d0Z2d1Z3d2Z4e�5d3�Z6d4d5� Z7d6d7� Z8d8Z9d9Z:d:Z;d;Z<d<Z=dZ>d=Z?e9e=B Z@e9e>B ZAe:e=B ZBe:e>B ZCe;e=B ZDe;e>B ZEe<ZFG d>d?� d?eG�ZHG d@dA� dAeH�ZIG dBdC� dCeG�ZJG dDdE� dEejK�ZLG dFdG� dGeH�ZMdS )H� )�absolute_importN� )�_)�getattr)�hex)� changelog�error�manifest�policy�pycompat�util�vfs)�hashutil�parsersi@B c C sp |du rdS t | �} | �d�r8|| td�td� � �S | �d�r^|�| td�td� � �S t�d| ��dS )z�parses a fncache entry and returns whether the entry is tracking a path matched by matcher or not. If matcher is None, returns TrueNT� data/� .i� meta/s /00manifest.is cannot decode path %s)� decodedir� startswith�lenZvisitdirr ZProgrammingError)�path�matcher� r �5/usr/lib64/python3.9/site-packages/mercurial/store.py�_matchtrackedpath$ s r c C s | � dd�� dd�� dd�S )aM >>> _encodedir(b'data/foo.i') 'data/foo.i' >>> _encodedir(b'data/foo.i/bla.i') 'data/foo.i.hg/bla.i' >>> _encodedir(b'data/foo.i.hg/bla.i') 'data/foo.i.hg.hg/bla.i' >>> _encodedir(b'data/foo.i\ndata/foo.i/bla.i\ndata/foo.i.hg/bla.i\n') 'data/foo.i\ndata/foo.i.hg/bla.i\ndata/foo.i.hg.hg/bla.i\n' � .hg/� .hg.hg/� .i/� .i.hg/� .d/� .d.hg/��replace�r r r r � _encodedir7 s ���r$ � encodedirc C s( d| vr| S | � dd�� dd�� dd�S )z� >>> decodedir(b'data/foo.i') 'data/foo.i' >>> decodedir(b'data/foo.i.hg/bla.i') 'data/foo.i/bla.i' >>> decodedir(b'data/foo.i.hg.hg/bla.i') 'data/foo.i.hg/bla.i' r r r r r r r! r# r r r r L s ���r c c sL dd� dD �} t d�D ] }|V qt dd�D ] }|V q,| D ] }|V q<dS )z�characters that are problematic for filesystems * ascii escapes (0..31) * ascii hi (126..255) * windows specials these characters will be escaped by encodefunctions c S s g | ]}t |��qS r )�ord��.0�xr r r � <listcomp>g � z_reserved.<locals>.<listcomp>z\:*?"<>|� �~ � N)�range)Zwinreservedr) r r r � _reserved^ s r0 c s� d} t j}tt|td���}tttd�td�d ��}dd� |D �� t� D ]}d| � ||�<