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/hgext/narrow/__pycache__/ |
Upload File : |
a �+�b� � @ s0 d dl mZ d dlmZ d dlmZ dd� ZdS )� )�absolute_import)�_)�errorc s0 �fdd�� G � ��fdd�d|j ���|_ |S )zCAdd narrow spec dirstate ignore, block changes outside narrow spec.c s � �fdd�}|S )Nc sR �� � }|D ].}|d ur||�s|| vrt�td�| ��q� | g|�R i |��S )Ns2 cannot track '%s' - it is outside the narrow clone)�narrowmatchr ZAbortr )�self�args�kwargsr �f)�fn�repo� �A/usr/lib64/python3.9/site-packages/hgext/narrow/narrowdirstate.py�_wrapper s ���z1wrapdirstate.<locals>._editfunc.<locals>._wrapperr )r r �r )r r � _editfunc s zwrapdirstate.<locals>._editfuncc s� e Zd Z�� �fdd��Z�� �fdd��Z�� �fdd��Z�� �fdd��Z�� �fd d ��Z�� �fdd��Z�� �fd d��Z �� �fdd��Z d� ��fdd� Z� ZS )z$wrapdirstate.<locals>.narrowdirstatec s t �| �j|i |��S �N)�super�normal�r r r �� __class__�narrowdirstater r r $ s z+wrapdirstate.<locals>.narrowdirstate.normalc s t �| �j|i |��S r )r �set_trackedr r r r r ( s z0wrapdirstate.<locals>.narrowdirstate.set_trackedc s t �| �j|� S r )r � set_untracked�r r r r r r , s z2wrapdirstate.<locals>.narrowdirstate.set_untrackedc s t �| �j|� S r )r �addr r r r r 0 s z(wrapdirstate.<locals>.narrowdirstate.addc s t �| �j|� S r )r �normallookupr r r r r 4 s z1wrapdirstate.<locals>.narrowdirstate.normallookupc s t �| �j|� S r )r �copyr r r r r 8 s z)wrapdirstate.<locals>.narrowdirstate.copyc s t �| �j|� S r )r �remover r r r r <