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 : /lib64/python3.9/site-packages/mercurial/__pycache__/ |
Upload File : |
a �+�b�0 � @ s d dl mZ d dlZd dlZd dlZd dlZd dlZddlmZ ddl m Z mZmZm Z mZ e jrzd dlmZmZmZmZ e�dd�Ze�d �Zd d� ZG dd � d e�Zddd�Zdd� Zdd� ZG dd� de�Ze� ed�r�ejZedur�eZej!Z!ej"Z"dS )� )�absolute_importN� )�_)�encoding�error�policy�pycompat�util)�Any�Callable�Iterator�OptionalZdirstateZDirs�parsersc C s t �| �� �S �N)r Zhfsignoreclean�lower)�s� r �8/usr/lib64/python3.9/site-packages/mercurial/pathutil.py�_lowerclean s r c @ sB e Zd ZdZddd�Zddd�Zd d � Zdd� Zej d d� �Z dS )�pathauditora^ ensure that a filesystem path contains no banned components. the following properties of a path are checked: - ends with a directory separator - under top-level .hg - starts at the root of a windows drive - contains ".." More check are also done about the file system states: - traverses a symlink (e.g. a/symlink_here/b) - inside a nested repository (a callback can be used to approve some nested repositories, e.g., subrepositories) The file system checks are only done when 'realfs' is set to True (the default). They should be disable then we are auditing path for operation on stored history. If 'cached' is set to True, audited paths and sub-directories are cached. Be careful to not keep the cache of unmanaged directories for long because audited paths may be replaced with symlinks. NTFc C sV t � | _t � | _|| _|| _|| _|| _tj� |�rHt �|�sHt j| _n dd� | _d S )Nc S s | S r r )�xr r r �<lambda>E � z&pathauditor.__init__.<locals>.<lambda>) �set�audited� auditeddir�root�_realfs�_cached�callback�os�path�lexistsr Zfscasesensitive�normcase)�selfr r Zrealfs�cachedr r r �__init__; s zpathauditor.__init__c C s t �|�}| �|�}|| jv r"dS t �|�r>t�td�| ��t �|�}t j �|�d srt|d �dv srt j|v r�t�td�| ��|D ]B}d|v r�|�dd�\}}|�� r�|�� dv r�t�td�| ��q�d t|�v �r<d d� |D �}dD ]N}||dd� v r�|�|�} t j j|d| � � } t�td �|t �| �f ��q�t �|�}t|�t|�k�s\J �|�� |�� tt|��D ]n}t j�|d|d � �} t j�|d|d � �}|| jv �r��qx| j�r�| �| |� | j�rx| j�|� �qx| j�r�| j�|� dS )zPCheck the relative path. path may contain a pattern (e.g. foodir/**.txt)Ns$ path ends in directory separator: %sr )� .hg� .hg.r s# path contains illegal component: %s� ~r )s HGs HG8B6Cr'