| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 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
�+�bK. � @ s d dl mZ ddlmZ ddlmZ ddlmZmZ m
Z
mZm
Z
mZmZmZ dZdZdZd d
� Zdd� Zd
d� Zd8dd�Zdd� Zdd� Zdd� Zd9dd�Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Z d'd(� Z!d)d*� Z"d+d,� Z#d-d.� Z$d/d0� Z%d1d2� Z&d3d4� Z'd:d6d7�Z(dS );� )�absolute_import� )�_)�getattr)�error�match�merge�
mergestate�requirements�scmutil�sparse�utils
narrowspecs narrowspec.dirstate)s path:s rootfilesin:c C s |� d�}t|� | |fS )z�Returns the normalized version of a pattern and kind.
Returns a tuple with the normalized kind and normalized pattern.
� /)�rstrip�_validatepattern)�kind�pat� r �:/usr/lib64/python3.9/site-packages/mercurial/narrowspec.py�normalizesplitpattern( s
r c C s t | d �� �S )z?Returns the number of lines in s, including ending empty lines.� x)�len�
splitlines)�sr r r � _numlines2 s r c C sF t | �dkrt�td���| �d�}d|v s4d|v rBt�td���dS )z�Validates the pattern and aborts if it is invalid.
Patterns are stored in the narrowspec as newline-separated
POSIX-style bytestring paths. There's no escaping.
r s, newlines are not allowed in narrowspec pathsr � .s ..s0 "." and ".." are not allowed in narrowspec pathsN)r r �Abortr �split)r �
componentsr r r r : s
�r � pathc C s t �| |�\}}dt||� S )zyReturns the normalized version of a text-format pattern.
If the pattern has no kind, the default will be added.
s %s:%s)�matchmodZ _patsplitr )�patternZdefaultkindr r r r r �normalizepatternM s r"