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/hgext/__pycache__/ |
Upload File : |
a �+�b� � @ s� d Z ddlmZ ddlmZ ddlmZmZmZm Z m Z mZmZm Z i Ze�e�Zedddd� d d � Zdd� Zd d� Zdd� ZdS )ax check for unrecorded moves at commit time (EXPERIMENTAL) This extension checks at commit/amend time if any of the committed files comes from an unrecorded mv. The threshold at which a file is considered a move can be set with the ``automv.similarity`` config option. This option takes a percentage between 0 (disabled) and 100 (files must be identical), the default is 95. � )�absolute_import)�_)�commands�copies�error� extensions�pycompat� registrar�scmutil�similar� automv� similarity�_ )�defaultc C s. t �tjdt�}|d �ddd td�f� d S )Ns commit� � s no-automvs% disable automatic file move detection)r Zwrapcommandr �table�mvcheck�appendr )�ui�entry� r �2/usr/lib64/python3.9/site-packages/hgext/automv.py�extsetup3 s �r c O s� t �|�}d}|�dd�}|s�|�dd�}d| kr>dksNn t�td���|dkr�t�|d ||�}t ||�\} } tj |d d �}t||| | |d �}|�� �F |dur�t� |dd|� | ||g|�R i t �|���W d � S 1 s�0 Y dS ) z&Hook to check for moves at commit timeNs no_automvFr r r �d s+ automv.similarity must be between 0 and 100T)Zlegacyrelativevalueg Y@r )r Zbyteskwargs�popZ configintr ZAbortr r �match�_interestingfilesZgetuipathfn�_findrenamesZwlockZ_markchangesZ strkwargs)Zorigr �repoZpatsZopts�renamesZdisabledZ thresholdr �added�removed�uipathfnr r r r : s$ � r c sH | j |d�}|j}|j}t�| d | d |�� � fdd�|D �}||fS )z�Find what files were added or removed in this commit. Returns a tuple of two lists: (added, removed). Only files not *already* marked as moved are included in the added list. )r � .Nc s g | ]}|� vr|�qS r r )�.0�f��copyr r � <listcomp>^ r z%_interestingfiles.<locals>.<listcomp>)�statusr! r"