📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib64
›
python3.9
›
site-packages
›
hgext
›
📁 __pycache__
📍
Lokasi:
/usr/lib64/python3.9/site-packages/hgext/__pycache__
💾
Free:
45.8 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: automv.cpython-39.pyc
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"