| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 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
�+�bv
� @ s� d dl mZ d dlZddlmZmZmZmZ zd dlZ e j
W n eyX d dl Z Y n0 dZdd� Z
dd � Zd
d� Zdd
� ZdS )� )�absolute_importN� )�encoding�pycompat�util�win32s morec s2 g � t �� } tj�tj�| �d�}� �|� � fdd�}|tj�tj�| �d�� tj� d�}|r�tj�|d�}|tj�|d�� tj�|d�}tj�
|�r�� �|� tj�|d�}tj�
|�rʈ �|� t�dd t
j�}|�r.t|t��r.t�|�}|�tj�D ]*}|�� �d��r"� �|� n||� �q� S )
z+return default os-specific hgrc search path�
mercurial.inic sF t j�| �rBtt�| ��D ]&\}}|�d�r� �t j�| |�� qd S )Ns .rc) �os�path�isdir�sortedr �listdir�endswith�append�join)Zprogrcd�f�kind�Zrcpath� �:/usr/lib64/python3.9/site-packages/mercurial/scmwindows.py�_processdir s
z!systemrcpath.<locals>._processdirs hgrc.ds PROGRAMDATAs Mercurials hgrcs SOFTWARE\MercurialN)r Zexecutablepathr r
r �dirnamer r �environ�get�isfiler Z lookupreg�winreg�HKEY_LOCAL_MACHINE�
isinstance�bytesZ localpath�splitr Z ospathsep�lowerr )�filenameZprogrcr ZprogramdataZini�value�pr r r �systemrcpath s4
�
r$ c C sh t d�} tj�| d�tj�| d�g}tj�d�}|rd|| krd|�tj�|d�� |�tj�|d�� |S )z3return os-specific hgrc search path to the user dir� ~r s .hgrc� USERPROFILE)�_legacy_expanduserr r
r r r r r )�homer
Zuserprofiler r r �
userrcpathE s r) c C s� | � d�s| S dt| � }}||k r:| | dvr:|d7 }qdtjv rPtjd }n^dtjv rftjd }nHdtjvrt| S ztjd }W n ty� d}Y n0 tj�|tjd �}|dkr�tj�tj�|�| d|� �}|| |d � S )
z2Expand ~ and ~user constructs in the pre 3.8 styler% r s \/s HOMEr&