��c@sFddlZddlZddlZddlZd�Zd�ZdS(i�NcCs�g}tj�}tjjtjj|�d�}tjj|�rV|j|�|Stjjtjj|�d�}tjj|�r�xKt j
|�D]:\}}|jd�r�|jtjj||��q�q�W|Stjddtj�}t|t�s
|r|Stj|�}x�|jtj�D]�}|j�jd�r[|j|�q0tjj|�r0xNt j
|�D]:\}}|jd�r}|jtjj||��q}q}Wq0q0W|S(s+return default os-specific hgrc search paths
mercurial.inishgrc.ds.rcsSOFTWARE\MercurialN(tutiltexecutablepathtostpathtjointdirnametisfiletappendtisdirtosutiltlistdirtendswitht lookupregtNonet_winregtHKEY_LOCAL_MACHINEt
isinstancetstrt localpathtsplittpathseptlower(trcpathtfilenametprogrctprogrcdtftkindtvaluetp((s8/sys/lib/python2.7/site-packages/mercurial/scmwindows.pytsystemrcpaths2!
!#*cCs�tjjd�}tjj|d�tjj|d�g}tjjd�}|r�|jtjj|d��|jtjj|d��n|S(s3return os-specific hgrc search path to the user dirt~s
mercurial.inis.hgrctUSERPROFILE(RRt
expanduserRtenvirontgetR(thomeRtuserprofile((s8/sys/lib/python2.7/site-packages/mercurial/scmwindows.pyt
userrcpath%s(RR RRRR&(((s8/sys/lib/python2.7/site-packages/mercurial/scmwindows.pyt<module>s
|