403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/lib64/python3.9/site-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib64/python3.9/site-packages/mercurial/__pycache__/logexchange.cpython-39.pyc
a

�+�b��@srddlmZddlmZddlmZmZmZddl	m
Z
dZdd�Zd	d
�Z
dd�Zddd�Zdd�Zdd�Zd
S)�)�absolute_import�)�hex)�pycompat�util�vfs)�urlutilslogexchangec		cs�t�|j�t��}|�|�s dS||�}d}|D]V}|��}|sBq0|dkrR|d7}z |�d�\}}}|||fVWq0ty�Yq00q0|��dS)z�
    reads a file from .hg/logexchange/ directory and yields it's content
    filename: the file to be read
    yield a tuple (node, remotepath, name)
    Nrr�)	�vfsmodr�join�
remotenamedir�exists�strip�split�
ValueError�close)	�repo�filenamer�f�lineno�line�node�remote�rname�r�;/usr/lib64/python3.9/site-packages/mercurial/logexchange.py�readremotenamefiles"
rccs0t|d�D]
}|Vq
t|d�D]
}|Vq dS)a
    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.
    �	bookmarks�branchesN)r)rZbmentryZbranchentryrrr�readremotenames6srcCs�t�|j�t��}||ddd�}|�d�tt||��}t|�D]&\}}}	||kr@|�d|||	f�q@tt�	|��D]P\}
}|dkr�|D]}|�d|||
f�q�qv|dkrv|rv|�d|||
f�qv|�
�dS)N�wT)Z
atomictemps0

s	%s%s%s
rr)r
rrr�write�setr�sortedr�	iteritemsr)r�
remotepath�namesZnametyperrZolddatarZoldpathr�name�nrrr�writeremotenamefileDs
r)NcCsH|��}z0|rt|||d�|r.t|||d�W|��n
|��0dS)z�
    save remotenames i.e. remotebookmarks and remotebranches in their
    respective files under ".hg/logexchange/" directory.
    rrN)�wlockr)�release)rr%Zbranches�	bookmarksr*rrr�saveremotenames\sr-cCs�|��}|}|r t�|jj�}nt|t�s0|j}|j�	d�D]B\}}t
�|�}t�t|��}t�|�}||ksv||kr<|}q�q<|S)zreturns remote pathspaths)�localrZpconvertZ_repo�root�
isinstance�bytesZ_urlZuiZconfigitemsrZ
removeauth)rrr.Zrpath�path�urlZ	noauthurlrrr�
activepathks


r4cCs�t||�}|���$}|�dddi���}Wd�n1s<0Yi}|��}|��� }|�di���}Wd�n1s�0Yt�|�D]@\}}	g||<|	D]*}
|
|vr�||
��s�||�t	|
��q�q�t
||||�dS)z�
    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
    slistkeyss	namespacerNs	branchmap)r4ZcommandexecutorZcallcommand�resultZ
unfilteredrr$Zobsolete�appendrr-)Z	localrepoZ
remoterepor%�er,ZbmaprZ	branchmap�branchZnodesrrrr�pullremotenames�s"

��&
.r9)NN)Z
__future__rrr�rrrr
Zutilsrrrrr)r-r4r9rrrr�<module>	s


Youez - 2016 - github.com/yon3zu
LinuXploit