Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/hgext/__pycache__/ |
Upload File : |
o �]Lb� � @ s� d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m Z mZmZm Z ddlmZmZ i Ze�e�ZdZed g ed �ejd�ddd ��Zdd� Zdd� Zdd� ZdS )z-recreates hardlinks between repository clones� )�absolute_importN)�_)�open)�error�hg� registrar�util)� stringutil�urlutils ships-with-hg-core� relinks [ORIGIN])�helpcategoryc K s\ t �t d�rt �t d�st�td���|du rd| jv rd}t�d|| |�\}}t� |j |�}| �td�|jj |jj f � |j|jkrM| �td�� dS t �|jj |jj �s^t�td ���|�� �B |�� �% tt|| ��}t||jj |jj | �}t|jj |jj || � W d � n1 s�w Y W d � dS W d � dS 1 s�w Y dS ) a� recreate hardlinks between two repositories When repositories are cloned locally, their data files will be hardlinked so that they only use the space of a single repository. Unfortunately, subsequent pulls into either repository will break hardlinks for any files touched by the new changesets, even if both repositories end up pulling the same changes. Similarly, passing --rev to "hg clone" will fail to use any hardlinks, falling back to a complete copy of the source repository. This command lets you recreate those hardlinks and reclaim that wasted space. This repository will be relinked to share space with ORIGIN, which must be on the same local disk. If ORIGIN is omitted, looks for "default-relink", then "default", in [paths]. Do not attempt any read operations on this repository while the command is running. (Both repositories will be locked against writes.) s samefiles samedevices* hardlinks are not supported on this systemNs default-relinkr s relinking %s to %s s there is nothing to relink �/ source and destination are on different devices)r �safehasattrr �Abortr �pathsr �get_unique_pull_pathr � repository�baseui�status�store�path�root� samedevice�lock�sorted�collect�prune� do_relink) �ui�repo�origin�optsr �__�src� candidates�targets� r&