HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/self/root/lib64/python2.7/site-packages/mercurial/logexchange.pyc
�
1�3\c@@s|ddlmZddlmZddlmZmZdZd�Z	d�Z
d�Zddd	�Z
d
�Zd�ZdS(
i(tabsolute_importi(thex(tutiltvfstlogexchangec	c@s�tj|jjt��}|j|�s.dS||�}d}x}|D]u}|j�}|seqGn|dkr~|d7}ny*|jd�\}}}|||fVWqGtk
r�qGXqGW|j�dS(s�
    reads a file from .hg/logexchange/ directory and yields it's content
    filename: the file to be read
    yield a tuple (node, remotepath, name)
    Niis(	tvfsmodRtjoint
remotenamedirtexistststriptsplitt
ValueErrortclose(	trepotfilenameRtftlinenotlinetnodetremotetrname((s;/usr/lib64/python2.7/site-packages/mercurial/logexchange.pytreadremotenamefiles"


cc@sBxt|d�D]}|VqWxt|d�D]}|Vq/WdS(s
    read the details about the remotenames stored in .hg/logexchange/ and
    yields a tuple (node, remotepath, name). It does not yields information
    about whether an entry yielded is branch or bookmark. To get that
    information, call the respective functions.
    t	bookmarkstbranchesN(R(R
tbmentrytbranchentry((s;/usr/lib64/python2.7/site-packages/mercurial/logexchange.pytreadremotenames0s	cC@s8tj|jjt��}||ddt�}|jd�tt||��}xFt|�D]8\}}}	||kr_|jd|||	f�q_q_Wx�t|j	��D]x\}
}|dkr�x]|D] }|jd|||
f�q�Wq�|dkr�|r&|jd|||
f�q&q�q�W|j
�dS(Ntwt
atomictemps0

s	%s%s%s
RR(RRRRtTruetwritetsetRtsortedt	iteritemsR(R
t
remotepathtnamestnametypeRRtolddataRtoldpathRtnametn((s;/usr/lib64/python2.7/site-packages/mercurial/logexchange.pytwriteremotenamefile=s
!
!$cC@sZ|j�}z<|r+t|||d�n|rGt|||d�nWd|j�XdS(s�
    save remotenames i.e. remotebookmarks and remotebranches in their
    respective files under ".hg/logexchange/" directory.
    RRN(twlockR)trelease(R
R"RRR*((s;/usr/lib64/python2.7/site-packages/mercurial/logexchange.pytsaveremotenamesTscC@s�d}|j�}|}|r6tj|jj�}nt|t�sQ|j}nxu|j	j
d�D]a\}}tj|�}tjt|��}tj|�}||ks�||krd|}PqdqdW|S(sreturns remote pathtpathsN(tNonetlocalRtpconvertt_repotroott
isinstancetbytest_urltuitconfigitemst
removeauth(R
RR/trpathtpathturlt	noauthurl((s;/usr/lib64/python2.7/site-packages/mercurial/logexchange.pyt
activepathbsc	C@st||�}|j��&}|jdidd6�j�}WdQXi}|j�}|j��}|jdi�j�}WdQXxl|j�D]^\}}	g||<xE|	D]=}
|
|kr�||
j�r�||jt|
��q�q�Wq�Wt	||||�dS(s�
    pulls bookmarks and branches information of the remote repo during a
    pull or clone operation.
    localrepo is our local repository
    remoterepo is the peer instance
    tlistkeysRt	namespaceNt	branchmap(
R=tcommandexecutortcallcommandtresultt
unfilteredR!tobsoletetappendRR,(t	localrepot
remoterepoR"teRtbmapR
R@tbranchtnodesR((s;/usr/lib64/python2.7/site-packages/mercurial/logexchange.pytpullremotenamess

"N(t
__future__RRRtRRRRRRR)R.R,R=RM(((s;/usr/lib64/python2.7/site-packages/mercurial/logexchange.pyt<module>	s