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__/watchmanclient.cpython-310.pyc
o

�]LbZ�@stddlmZddlZddlmZmZddlmZmZddl	m
Z
Gdd�de�ZGd	d
�d
e�Z
Gdd�de�ZdS)
�)�absolute_importN)�encoding�util)�procutil�
stringutil�)�
pywatchmanc@s(eZdZddd�Zdd�Ze�e�ZdS)	�UnavailableTFcCs&||_||_|jdkrd|_||_dS)Nstimed out waiting for responseF)�msg�warn�
invalidate)�selfr
rr�r�@/usr/lib/python3/dist-packages/hgext/fsmonitor/watchmanclient.py�__init__s


zUnavailable.__init__cCs|jrd|jSd|jS)Ns!warning: Watchman unavailable: %ssWatchman unavailable: %s)rr
�r
rrr�	__bytes__ s

zUnavailable.__bytes__N)TF)�__name__�
__module__�__qualname__rrr�	strmethod�__str__rrrrr	s
r	cseZdZ�fdd�Z�ZS)�WatchmanNoRootcs||_tt|��|�dS�N)�root�superrr)r
rr
��	__class__rrr*szWatchmanNoRoot.__init__)rrrr�
__classcell__rrrrr)src@sTeZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zej	dd
��Z
dd�Zdd�ZdS)�client��?cCsbd}|js	d}d}|j|�dd�vrd|j}d}|r t||��||_d|_||_||_d|_dS)Nscouldn't get userT�	fsmonitorsblacklistuserssuser %s in blacklistF)�_user�
configlistr	�_timeout�_watchmanclient�_root�_ui�
_firsttime)r
�uir�timeout�errrrrrr0s


zclient.__init__cCs$||_|jdur|j�|�dSdSr)r$r%�
setTimeout)r
r*rrr�
settimeoutBs
�zclient.settimeoutcCs(|�d�}t�|d�stddd��|jS)Nsclock�clocks#clock result is missing clock valueT)r)�commandr�safehasattrr	r.)r
�resultrrr�getcurrentclockGs
�zclient.getcurrentclockcCs
d|_dSr)r%rrrr�clearconnectionOs
zclient.clearconnectioncCs|jdup|jSr)r%r(rrrr�	availableRszclient.availablecCs zt��WStyYdSwr)�getpass�getuser�KeyErrorrrrrr"Us

�zclient._userc
Gs�|d|jf|dd�}z#|jdur*d|_|j�dd�}tj|jdt�	|�d�|_|jj
|�WStjyT}zd|jvrHt
|jt�|j���tt�|j���d}~wtjyg}ztt�|���d}~ww)	NrrFr!swatchman_exeT)r*�useImmutableBser�binpathzunable to resolve root)r&r%r(r'�
configpathrrr$r�tonativestr�query�CommandErrorr
rr�forcebytestrr	�
WatchmanError)r
�args�watchmanargs�watchman_exe�exrrr�_command]s0
��
����zclient._commandcGsPzz|j|�WWSty|�d�|j|�YWSwty'd|_�w)Nswatch)rDrr	r%)r
r@rrrr/ts
��zclient.commandN)r )
rrrrr-r2r3r4r�
propertycacher"rDr/rrrrr/s

r)�
__future__rr5�	mercurialrr�mercurial.utilsrr�r�	Exceptionr	r�objectrrrrr�<module>s

https://t.me/RX1948 - 2025