§
    	^µc$  ã                   ó¦   — d dl Z ddlmZmZmZ ddlmZ ej        rddlmZ	 nddlm
Z	 e	j        Ze	j        Ze	j        Zd„ Zdd„Zd	„ Zd
„ Zd„ Zd„ ZdS )é    Né   )ÚencodingÚpycompatÚutil)Úresourceutil)Ú
scmwindows)Úscmposixc                 óð   ‡‡— t          j        | ¦  «        Št          j                             ‰¦  «        r?t          j        j        Št          ˆˆfd„t          j        ‰¦  «        D ¦   «         ¦  «        S ‰gS )z@path could be a file or a directory. return a list of file pathsc              3   ó`   •K  — | ](\  }}|                      d ¦  «        ¯ ‰‰|¦  «        V — Œ)dS )ó   .rcN)Úendswith)Ú.0ÚfÚkÚjoinÚps      €€ú2/usr/lib/python3/dist-packages/mercurial/rcutil.pyú	<genexpr>z _expandrcpath.<locals>.<genexpr>"   sV   øè è € ð 
ð 
Ù˜1˜a°a·j²jÀÑ6HÔ6Hð
ØˆD��A‰JŒJð
ð 
ð 
ð 
ð 
ð 
ó    )r   Ú
expandpathÚosÚpathÚisdirr   ÚsortedÚlistdir)r   r   r   s    @@r   Ú_expandrcpathr      s€   øø€ åŒ˜ÑÔ€AÝ	„w‡}‚}�QÑÔð 
ÝŒwŒ|ˆÝð 
ð 
ð 
ð 
ð 
Ý#'¤<°¡?¤?ð
ñ 
ô 
ñ 
ô 
ð 	
ð ˆ3€Jr   c                 óŽ   — | €t           j        } g d¢}g }|D ]-\  }}}|| vrŒ|                     ||| |         d|z  f¦  «         Œ.|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))s   EDITORó   uió   editor)s   VISUALr   r   )s   PAGERó   pagerr    s   $%s)r   ÚenvironÚappend)ÚenvÚ	checklistÚresultÚenvnameÚsectionÚ
confignames         r   Ú
envrcitemsr)   (   s{   € ð €{ÝÔˆðð ð €Ið
 €FØ(1ð Mð MÑ$ˆ�˜*Ø˜#ÐÐØØ�Š�w 
¨C°¬L¸&À7Ñ:JÐKÑLÔLÐLÐLØ€Mr   c                  ó\   — t          j        d¦  «        } d„ t          | ¦  «        D ¦   «         S )z#return rc resource IDs in defaultrcó   mercurial.defaultrcc                 ój   — g | ]0}t          j        d |¦  «        ¯|                     d¦  «        ¯,d |f‘Œ1S )r+   r   )r   Úis_resourcer   ©r   Úrs     r   ú
<listcomp>z(default_rc_resources.<locals>.<listcomp>B   sW   € ð ð ð àÝÔ#Ð$:¸AÑ>Ô>ðð �JŠJ�vÑÔð	Ø	 Ð#ðð ð r   )r   Úcontentsr   )Úrsrcss    r   Údefault_rc_resourcesr3   ?   s:   € åÔ!Ð"8Ñ9Ô9€Eðð å˜‘”ðñ ô ð r   c                  ó  — dt          ¦   «         f} dt          j        v re| g}t          j        d                              t          j        ¦  «        D ]1}|sŒ|                     d„ t          |¦  «        D ¦   «         ¦  «         Œ2n„d„ t          ¦   «         D ¦   «         }d„ }|                      |t          ¦   «         ¦  «        ¦  «         | 
                    | ¦  «         |                      |t          ¦   «         ¦  «        ¦  «         |S )aR  return 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).
    s   itemss   HGRCPATHc              3   ó   K  — | ]}d |fV — Œ	dS )ó   pathN© ©r   r   s     r   r   zrccomponents.<locals>.<genexpr>`   s&   è è € Ð HÐ H°! '¨1 Ð HÐ HÐ HÐ HÐ HÐ Hr   c                 ó   — g | ]}d |f‘ŒS )s   resourcer7   r.   s     r   r0   z rccomponents.<locals>.<listcomp>b   s   € ÐJÐJÐJ¨a˜+ qÐ)ÐJÐJÐJr   c                 ó   — d„ | D ¦   «         S )Nc                 óP   — g | ]#}d t           j                             |¦  «        f‘Œ$S )r6   )r   r   Únormpathr8   s     r   r0   z2rccomponents.<locals>.<lambda>.<locals>.<listcomp>d   s:   € ð #
ð #
ð #
Ø/0ˆW•b”g×&Ò& qÑ)Ô)Ð*ð#
ð #
ð #
r   r7   )Úpathss    r   ú<lambda>zrccomponents.<locals>.<lambda>d   s    € ð #
ð #
Ø49ð#
ñ #
ô #
€ r   )r)   r   r!   Úsplitr   Ú	ospathsepÚextendr   r3   Úsystemrcpathr"   Ú
userrcpath)ÚenvrcÚ_rccomponentsr   Ú	normpathss       r   ÚrccomponentsrG   J   s  € ð •z‘|”|Ð$€Eà•hÔ&Ð&Ð&ð ˜ˆÝÔ! +Ô.×4Ò4µXÔ5GÑHÔHð 	Ið 	IˆAØð ØØ× Ò Ð HÐ Hµ}ÀQÑ7GÔ7GÐ HÑ HÔ HÑHÔHÐHÐHð	Ið
 KÐJÕ3GÑ3IÔ3IÐJÑJÔJˆð
ð 
ˆ	ð 	×Ò˜Y˜Y¥|¡~¤~Ñ6Ô6Ñ7Ô7Ð7Ø×Ò˜UÑ#Ô#Ð#Ø×Ò˜Y˜Y¥z¡|¤|Ñ4Ô4Ñ5Ô5Ð5ØÐr   c                  ó   — dddœS )zureturn a dict of default environment variables and their values,
    intended to be set before starting a pager.
    s   FRXs   -c)s   LESSs   LVr7   r7   r   r   ÚdefaultpagerenvrI   m   s   € ð  EÐ*Ð*Ð*r   c                  ó   — dt           j        vS )z5True if repositories `.hg/hgrc` config should be reads   HGRCSKIPREPO)r   r!   r7   r   r   Úuse_repo_hgrcrK   t   s   € à¥(Ô"2Ð2Ð2r   )N)r   Ú r   r   r   Úutilsr   Ú	iswindowsr   Úscmplatformr	   ÚfallbackpagerrB   rC   r   r)   r3   rG   rI   rK   r7   r   r   ú<module>rQ      s
  ðð 
€	€	€	ðð ð ð ð ð ð ð ð ð ð  Ð Ð Ð Ð Ð àÔð *Ø+Ð+Ð+Ð+Ð+Ð+Ð+à)Ð)Ð)Ð)Ð)Ð)àÔ)€ØÔ'€ØÔ#€
ðð ð ðð ð ð ð.ð ð ð ð  ð  ðF+ð +ð +ð3ð 3ð 3ð 3ð 3r   