403Webshell
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 :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/hgext/__pycache__/automv.cpython-39.pyc
a

�+�b��@s�dZddlmZddlmZddlmZmZmZm	Z	m
Z
mZmZm
Z
iZe�e�Zedddd�d	d
�Zdd�Zd
d�Zdd�ZdS)axcheck 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�_)�defaultcCs.t�tjdt�}|d�dddtd�f�dS)Nscommit��s	no-automvs%disable automatic file move detection)rZwrapcommandr�table�mvcheck�appendr)�ui�entry�r�2/usr/lib64/python3.9/site-packages/hgext/automv.py�extsetup3s�rcOs�t�|�}d}|�dd�}|s�|�dd�}d|kr>dksNnt�td���|dkr�t�|d||�}t	||�\}	}
tj
|d	d
�}t|||	|
|d�}|���F|dur�t�
|dd|�|||g|�Rit�|���Wd�S1s�0YdS)
z&Hook to check for moves at commit timeNs	no_automvFrr
r�ds+automv.similarity must be between 0 and 100T)ZlegacyrelativevaluegY@r)rZbyteskwargs�popZ	configintrZAbortrr
�match�_interestingfilesZgetuipathfn�_findrenamesZwlockZ_markchangesZ	strkwargs)Zorigr�repoZpatsZopts�renamesZdisabledZ	thresholdr�added�removed�uipathfnrrrr:s$
�
rcsH|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�.Ncsg|]}|�vr|�qSrr)�.0�f��copyrr�
<listcomp>^rz%_interestingfiles.<locals>.<listcomp>)�statusr!r"rZ
pathcopies)rZmatcher�statr!r"rr'rrQsrc	Cs~i}|dkr^t�||||�D]@\}}}|jjrT|j�td�||�||�|df�|||<q|rz|j�td�t|��|S)z�Find what files in added are really moved files.

    Any file named in removed that is at least similarity% similar to a file
    in added is seen as a rename.

    rs)detected move of %s as %s (%d%% similar)
rsdetected move of %d files
)rZfindrenamesr�verboser*r�len)	rr#r!r"Z
similarityr �src�dstZscorerrrrcs���
rN)�__doc__Z
__future__rZmercurial.i18nrZ	mercurialrrrrrr	r
rZconfigtableZ
configitemrrrrrrrr�<module>s(
�

Youez - 2016 - github.com/yon3zu
LinuXploit