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/mercurial/upgrade_utils/__pycache__/ |
Upload File : |
a �+�bvW � @ s d dl mZ d dlZd dlZddlmZ ddlmZ ddlm Z m Z mZmZm Z mZmZmZmZmZmZ ddlmZmZmZmZ dd lmZ d d� Zdd � Zdd� ZdZ dZ!dZ"e#e e!e"g�Z$dd� Z%dd� Z&dd� Z'dd� Z(dd� Z)dd� Z*dd � Z+d!d"� Z,d#d$� Z-dS )%� )�absolute_importN� )�_)�getattr)� changelog�error�filelog�manifest�metadata�pycompat�requirements�scmutil�store�util�vfs)� constants�flagutil�nodemap�sidedata� )�actionsc C sT | j �dd�}tjp| }|sF| jtjtjtjft � | |�tjdd� t� | |j�S )Ns experimentals worker.repository-upgradeT)�replace)�uiZ configboolr Z iswindowsZregister_sidedata_computer�revlogconstZKIND_CHANGELOG�sidedatamodZSD_FILESr Z_get_worker_sidedata_adderr ZREVIDX_HASCOPIESINFO�get_sidedata_helpersZ_wanted_sidedata)�srcrepo�dstrepoZuse_wZ sequential� r �D/usr/lib64/python3.9/site-packages/mercurial/upgrade_utils/engine.pyr % s �r c C s� |t j@ rt�| j�S |t j@ rPd}d|v r<|�dd�d }tj| j| j|d�S |�dd�d � dd�}t |�dk r�td�}||; }t� |��|d }t�| j|�S d S ) z]Obtain a revlog from a repo path. An instance of the appropriate class is returned. � � /r r )Ztree� .r s) cannot recognize revlog from filename: %sN)r �FILEFLAGS_CHANGELOGr �svfs�FILEFLAGS_MANIFESTLOG�rsplitr ZmanifestrevlogZ nodeconstants�split�lenr r ZAbortr )Zrepo�rl_type�pathZmandirZ path_part�msgr r r �_revlogfrompath4 s � r, c C s� t |d|�}t|||�}t |d|�}|j}|j}|�|j�}|�|j�} |�|j�} |�|j�}||jd�� W d � n1 s�0 Y t�|| � |j�|j�}|r�t�| |� |t j @ r�|jj� |� |r�|jj� |dd� d � dS )a copy all relevant files for `oldrl` into `destrepo` store Files are copied "as is" without any transformation. The copy is performed without extra checks. Callers are responsible for making sure the copied content is compatible with format of the destination repository. �_revlog� wN���s .d)r r, �opener�joinZ _indexfileZ _datafiler �copyfile�existsr �FILEFLAGS_FILELOGr$ Zfncache�add) �trZdestrepo�oldrlr) Z unencodedname�newrlZoldvfsZnewvfsZoldindexZnewindexZolddata�newdataZcopydatar r r �_copyrevlogM s&