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/usr/lib64/python2.7/site-packages/hgext/fetch.pyc
�
1�3\c
@@sGdZddlmZddlmZddlmZddlmZm	Z	m
Z
mZmZm
Z
mZmZddlmZejZiZeje�ZdZedd	d
ged�ed�fd
dded�fd
dded�fd
dded�fgejejejed�dej�dd��ZdS(s2pull, update and merge in one command (DEPRECATED)i(tabsolute_import(t_(tshort(tcmdutilterrortexchangethgtlocktpycompatt	registrartutil(tdateutilsships-with-hg-coretfetchtrtrevs*a specific revision you would like to pulltREVttedits invoke editor on commit messagessforce-editors edit commit message (DEPRECATED)s
switch-parentsswitch parents when mergingshg fetch [SOURCE]thelpcategorytdefaultcK@stj|�}|jd�}|r:tj|�|d<n|jj�\}}|jj�}y|j|�}Wnt	j
k
r�d}nX||kr�t	jt
d�dt
d���nd}	}
z$|j�}	|j�}
tj|�|j|�}g|D](}t||j��dkr|^q}t|�dkr^t	jt
d���ntj|||j|��}
|jt
d�tj|j|���d}|d	ry*g|d	D]}|
j|�^q�}Wqt	jk
rt
d
�}t	j|��qXntj||
d|�j}|dkr?dS|j|�}|j j!|g|�d}t|�dkr�t|�r�|d|kr�tj"||d�SdSng|D]}||kr�|^q�}|}|r|d}tj#||�ng|D]}||kr|^q}t|�dkr]|jt
d
�t|�d�dS|sgdSt$}|r+|dr�||d}}n@|d|}}|jt
d�|j j%|�t&|�f�tj#||�|jt
d�|j j%|�t&|�f�tj'||dt$�}n|s�tj(||�pYdtj)|
j*��}|jd�pw|jd�}tj+d|dd�}|j,||d|dd|�}|jt
d�|j j%|�t&|�f�n|SWdt-|
|	�XdS(s�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.
    tdates#working directory not at branch tipthints'use 'hg update' to check out branch tipiisHmultiple heads in this branch (use "hg heads ." and "hg merge" to merge)spulling from %s
RsOother repository doesn't support revision lookup, so a rev cannot be specified.theadsis[not merging with %d other new branch heads (use "hg heads ." and "hg merge" to merge them)
t
switch_parentsupdating to %d:%s
smerging with %d:%s
tremindsAutomated merge with %sRtforce_editorteditformRtuserteditors5new changeset %d:%s merges remote changes with local
N(.RtbyteskwargstgetRt	parsedatetdirstatetparentstbrancht	branchtipRtRepoLookupErrortNonetAbortRtwlockRRt
bailifchangedtbranchheadstlentchildrenRtpeert
expandpathtstatusR
thidepasswordtlookuptCapabilityErrorRtpulltcgresultt	changelogtnodesbetweentupdatetcleantFalseRRtmerget
logmessaget
removeauthturltgetcommiteditortcommittrelease(tuitrepotsourcetoptsRtparentt_p2R"t
branchnodeR'RtbheadstheadtothertrevsRterrtmodheadstnewheadstnewchildrentnt	newparenttfirstparenttsecondparenttmessageteditoptR((s1/usr/lib64/python2.7/site-packages/hgext/fetch.pyR%s�


5
*%
%
 #N(t__doc__t
__future__Rtmercurial.i18nRtmercurial.nodeRt	mercurialRRRRRRR	R
tmercurial.utilsRR?tcmdtabletcommandt
testedwithR%t
commitoptstcommitopts2t
remoteoptstCATEGORY_REMOTE_REPO_MANAGEMENTR(((s1/usr/lib64/python2.7/site-packages/hgext/fetch.pyt<module>s:
	u