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 : /lib64/python3.9/site-packages/mercurial/__pycache__/ |
Upload File : |
a �+�bi � @ sV d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl mZ ddlm Z mZ ddlmZ ddlmZmZmZmZmZmZ dd lmZmZmZ d d� Zg d�Zd gZe�dej�Z dd� Z!dd� Z"dd� Z#G dd� de$�Z%dd� Z&dd� Z'G dd� de$�Z(g d�Z)G dd� dej*�Z+d d!� Z,d"d#� Z-G d$d%� d%e$�Z.d&d'� Z/dS )(aR command server extension for cHg 'S' channel (read/write) propagate ui.system() request to client 'attachio' command attach client's stdio passed by sendmsg() 'chdir' command change current directory 'setenv' command replace os.environ completely 'setumask' command (DEPRECATED) 'setumask2' command set umask 'validate' command reload the config and check if the server is up to date Config ------ :: [chgserver] # how long (in seconds) should an idle chg server exit idletimeout = 3600 # whether to skip config or env change checks skiphash = False � )�absolute_importN� )�_)�getattr�setattr)�hex)� commandserver�encoding�error� extensions�pycompat�util)�hashutil�procutil� stringutilc C s t t�t�| ���� �S )z return sha1 hexdigest for a list)r r Zsha1r �pprint�digest)�items� r �9/usr/lib64/python3.9/site-packages/mercurial/chgserver.py� _hashlistK s r )s aliass diff-toolss eols extdiffs extensionss fastannotates merge-toolss schemes)s commandss show.aliasprefixs~ \A(?: CHGHG |HG(?:DEMANDIMPORT|EMITWARNINGS|MODULEPOLICY|PROF|RCPATH)? |HG(?:ENCODING|PLAIN).* |LANG(?:UAGE)? |LC_.* |LD_.* |PATH |PYTHON.* |TERM(?:INFO)? |TZ )\Zc s� g }t D ]}|�| �|�� qtD ]\}}|�| �||�� q"t|�}dtjv rXdh� nt� � � fdd�t � tj�D �}tt|��}|dd� |dd� S )a� return a quick hash for detecting config/env changes confighash is the hash of sensitive config items and environment variables. for chgserver, it is designed that once confighash changes, the server is not qualified to serve its client and should redirect the client to a new server. different from mtimehash, confighash change will not mark the server outdated and exit since the user can have different configs at the same time. s CHGHGs HGc s* g | ]"\}}t �|�r|� vr||f�qS r )�_envre�match��.0�k�v�Zignoredr r � <listcomp>� s �z_confighash.<locals>.<listcomp>N� )�_configsections�appendZconfigitems�_configsectionitemsZconfigr r �environ�setr � iteritems�sorted)�uiZsectionitems�section�itemZsectionhashZenvitemsZenvhashr r r �_confighashr s �r* c C s� dd� t � | �D �}zddlm} |�|� W n ty@ Y n0 g }tjrX|�tj� |D ]2}z|�t�t� |��� W q\ t y� Y q\0 q\tt|��S )z�get a list of paths that should be checked to detect change The list will include: - extensions (will not cover all files for complex extensions) - mercurial/__version__.py - python binary c S s g | ]\}}|�qS r r )r �n�mr r r r � � z"_getmtimepaths.<locals>.<listcomp>r )�__version__) r � r. r! �ImportErrorr Z sysexecutable�fsencode�inspectZ getabsfile� TypeErrorr&