HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //usr/lib64/python2.7/site-packages/hgext/fsmonitor/state.pyc
�
1�3\c@@s�ddlmZddlZddlZddlZddlZddlmZddlm	Z	m
Z
dZdZde
fd��YZdS(	i(tabsolute_importN(t_(tpathutiltutilis>ItstatecB@s>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cC@s�|j|_|j|_tj|j�|_d|_	t
jd�|_|jj
dd�|_|jjdd�|_t|jj
dd��|_dS(Nt	fsmonitortmodetwalk_on_invalidatettimeout(tvfst_vfstuit_uiRtnormasprefixtroott_rootdirtNonet
_lastclockRtfilestatt	_identitytconfigRt
configboolRtfloatR(tselftrepo((s;/usr/lib64/python2.7/site-packages/hgext/fsmonitor/state.pyt__init__s		cC@s�y|jdd�}Wn>tk
rV}tjd�|_|jtjkrR�ndSXtjj|�|_|j	d�}t
|�dkr�|jjddt
|��|j
�dSztjt|�d}|tkr|jjdd|tf�|j
�dS|j	�jd�}t
|�d	krY|jjdd
t
|��|j
�dS|d}tj�}||kr�|jjdd||f�|j
�dS|d}|d
}	|d	d!}
Wd|j�X||	|
fS(Nsfsmonitor.statetrbiRs6fsmonitor: state file only has %d bytes, nuking state
is6fsmonitor: version switch from %d to %d, nuking state
sisLfsmonitor: state file truncated (expected 3 chunks, found %d), nuking state
sJfsmonitor: stored hostname "%s" different from current "%s", nuking state
iii����(NNN(NNN(NNN(NNN(NNN(R
tIOErrorRRRRterrnotENOENTtfromfptreadtlenRtlogt
invalidatetstructtunpackt_versionformatt_versiontsplittsockettgethostnametclose(RtfiletinsttversionbytestdiskversionRtdiskhostnamethostnametclockt
ignorehasht	notefiles((s;/usr/lib64/python2.7/site-packages/hgext/fsmonitor/state.pytget%sT	
	
	





cC@s=|dkr|j�dStjj|jjd��}||jkr[|jj	d�dSy"|jdddt
dt
�}Wn.ttfk
r�|jj
td��dSX|��|jtjtt��|jtj�d�|j|d�|j|d�|r3|jdj|��|jd�nWdQXdS(Nsfsmonitor.states1skip updating fsmonitor.state: identity mismatch
twbt
atomictempt
checkambigs-warning: unable to write out fsmonitor state
s(RR"RRtfrompathR
tjoinRRtdebugtTrueRtOSErrortwarnRtwriteR#tpackR%R&R(R)(RR1R2R3tidentityR+((s;/usr/lib64/python2.7/site-packages/hgext/fsmonitor/state.pytset^s*

cC@sjy&tjtjj|jdd��Wn+tk
rS}|jtjkrT�qTnXtj	d�|_dS(Ns.hgsfsmonitor.state(tostunlinktpathR9RR<RRRRRR(RR,((s;/usr/lib64/python2.7/site-packages/hgext/fsmonitor/state.pyR"zs&
cC@s
||_dS(N(R(RR1((s;/usr/lib64/python2.7/site-packages/hgext/fsmonitor/state.pytsetlastclock�scC@s|jS(N(R(R((s;/usr/lib64/python2.7/site-packages/hgext/fsmonitor/state.pytgetlastclock�s(t__name__t
__module__RR4RAR"RERF(((s;/usr/lib64/python2.7/site-packages/hgext/fsmonitor/state.pyRs		9			(t
__future__RRRBR(R#tmercurial.i18nRt	mercurialRRR&R%tobjectR(((s;/usr/lib64/python2.7/site-packages/hgext/fsmonitor/state.pyt<module>s