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/mercurial/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/mercurial/__pycache__/server.cpython-310.pyc
o

�]Lb0�@s�ddlmZddlZddlmZddlmZddlmZm	Z	m
Z
mZmZmZm
Z
ddlmZmZ						dd	d
�Zeje
je
jd�Zdd
�Zdd�Zdd�ZdS)�)�absolute_importN�)�_)�open)�	chgserver�cmdutil�
commandserver�error�hgweb�pycompat�util)�procutil�urlutilFc	s�i}�dr6�dD]+}|�d�r|dd�|d<q
|�d�r(|dd�|d<q
|d	kr5t�td
�|��q
tjr��dr�d|vr�tj�|d�r�t	j
��t	j��t�
|dtjtjBtjB�}	zt�|	t	j
���t�|	t	j���Wt�|	�nt�|	�w��fdd�}
�d
�r;�d�s;tjdd�\}�t�|�z�|s�t	��tjdd�}|�d��t�dt|��D]}||�d�r�||=n||�d�r�|||d�=nq��fdd�}
t	�||
�}|dk�r!tj�rtj����rt
�d��}|D]	}t	j�|��qWd�n	1�swYt�td���|
|�Wt���nt���w|�r9||�SdS|�rA|��d
�sL|
t	����d�r�zt��Wn
t �yaYnwd|v�rnt�!|d�t	�"�t	j
��t	j��t�
tj#tj$�}|}|�r�t�
|tj$tj%BtjBd�}t�|t	j&���t�|t	j
���t�|t	j���t	j&��t	j
��t	j��f}||v�r�t�|�|�r�||v�r�t�|�d|v�r�t�'|d�|�r�|�SdS)zRun a command as a service.sdaemon_postexecsunlink:�Nsunlinkschdir:�schdirsnones'invalid value for --daemon-postexec: %scsB�dr�r	d}nd}t�d|�}|�d|�|��dSdS)Nspid_filesabswbs%d
)r�write�close)�pid�mode�fp)�	appendpid�opts��2/usr/lib/python3/dist-packages/mercurial/server.py�writepidLs�zrunservice.<locals>.writepidsdaemonshg-service-)�prefixrs--daemon-postexec=unlink:%ss--cwd=s--cwd�cstj���S)N)�os�path�existsr)�lockpathrr�condfnhszrunservice.<locals>.condfnrsrbschild process failed to starti�)(�
startswithr	�Abortrr�	iswindowsrrrr
�stdout�flush�stderrr�O_WRONLY�O_APPEND�O_BINARY�dup2�filenor�mkstemp�hgcmd�sysargv�append�xrange�len�rundetachedrr�	tryunlink�getpid�setsid�AttributeError�chdir�
hidewindow�devnull�O_RDWR�O_CREAT�stdin�unlink)r�parentfn�initfn�runfn�logfile�runargsr�postexecargs�inst�fdr�lockfd�ir!r�log�line�nullfd�	logfilefd�stdior)rr rr�
runservices�


��
�

�

�
��


�


��



�rN)schgunixspipesunixcCsN|d}zt|}Wntyt�td�|��wt�||�||||�S)N�	cmdserversunknown mode %s)�_cmdservicemap�KeyErrorr	r#rr�setuplogging)�ui�reporr�	servicefnrrr�_createcmdservice�s�rVcCs$|�d�rt�|�d��|d<|h}|r!|j}|�|j|jg�n|}|�d�p,|�d�}|rM|�d�r;t�td���|�	�}|j
|dgd�|�|�n|�d�ra|}|r`t�}t
�|d|�n|}d	}|��D]}|�|d�}	|	d
vrvqi|D]
}
|
�d||	d�qxqit�|||�}t�|||�S)Nsportsweb_confswebdir_confssubreposs)--web-conf cannot be used with --subrepossweb)�sections�sUname templates style address port prefix ipv6 accesslog errorlog certificate encoding)NrXsserve)�getr�getport�baseui�updaterSr	r#r�copy�
readconfig�add�dictr�
addwebdirpath�split�	setconfigr
�	createapp�httpservice)rSrTr�alluisr[�webconf�servui�optlist�o�val�u�apprrr�_createhgwebservice�s@


���rncCs |dr
t|||�St|||�S)NrO)rVrn)rSrTrrrr�
createservice�sro)NNNNNF)�
__future__rr�i18nrrr�rrrr	r
r�utilsr
rrN�chgunixservice�pipeservice�unixforkingservicerPrVrnrorrrr�<module>s*$

�
�
/

https://t.me/RX1948 - 2025