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__/destutil.cpython-39.pyc
a

�+�bLD�
@s�ddlmZddlmZddlmZmZmZmZm	Z	dd�Z
dd�Zd	d
�Zdd�Z
d
d�Zgd�Zeee
ed�Zd@dd�Zed�ed�fed�ed�fd�ed�ed�fed�ed�fd�ed�ed�fed�ed�fd�ed�ed�fed�ed�fd�ed �ed�fed!�ed�fd�ed"�d#fed$�d#fd�ed"�ed%�fed$�ed%�fd�ed&�ed'�fed&�ed(�fd�ed)�d#fed)�d#fd�ed*�d#fed+�ed,�fd�d-�
ZdAd/d0�ZdBd2d3�ZdCd4d5�Zd6d7�Zd8d9�Zd:d;�Zd<d=�Zd>d?�Zd#S)D�)�absolute_import�)�_)�	bookmarks�error�obsutil�scmutil�stackcCs�|jj}|jj}|jj}t�}t||��}|r�|��}t�|||��}|sZ|�	||��q*|D](}	|	D]}
||
�}|dkrf|�
|�qfq^q*|S)z�Return all changesets that may be a new parent for orphan `rev`.

    This function works fine on non-orphan revisions, it's just silly
    because there's no destination implied by obsolete markers, so
    it'll return nothing.
    ���)Z	changelog�nodeZ
parentrevs�rev�set�list�popr�successorssets�extend�add)�reporZtonode�parentsZtorev�destZtovisit�rZsuccsets�ss�nZdr�r�8/usr/lib64/python3.9/site-packages/mercurial/destutil.py�orphanpossibledestinations rcCs�d}|d}|��}d}|��r�|��s�t�||���}|r\dd�|D�}|�d|���}n"|��}|��rv|��}qd|��}|dur�t�	|�r�|d��}||dfS)z9decide of an update destination from obsolescence markersNcSsg|]}|D]}|�qqSrr)�.0�subrrrr�
<listcomp>J�z"_destupdateobs.<locals>.<listcomp>smax(%ln)�.)
�p1ZobsoleteZchildrenrrr�revs�firstr�isactivewdirparent)r�cleanr�wcr!�movemarkZ
successorsrrr�_destupdateobs0s 
r(cCs2d}t�|j|�\}}|dur(|j|}|||fS)z4decide on an update destination from active bookmarkN)rZcalculateupdate�ui�
_bookmarks)rr%r�
activemarkr'rrr�_destupdatebook[s

r,cCs�|d}d}}|��}|r(|d��}||��vrj|�|�}|rR|�d|���}t�|�r�|d��}n,|dkr�|��s�|�d���}n|d��}||dfS)z_decide on an update destination from current branch

    This ignores closed branch heads.
    Nr �
max(.::(%ln))sdefaultsmax(head() and not closed()))	�branch�	branchmap�branchheadsr"r#rr$rr!)rr%r&r'r�
currentbranch�headsrrr�_destupdatebranches

r3cCs�|d}|��}d}||��vrr|j|dd�}|s:Jd��|�d|���}|dusZJd��t�|�r�|d��}n|�d�}|dus�Jd	��||dfS)
zCdecide on an update destination from closed heads in current branchNT��closeds any branch has at least one headr-s4any revision has at least one descendant branch headr stips%'tip' exists even in empty repository)	r.r/r0r"r#rr$r�lookup)rr%r&r1r'r2rrrr�_destupdatebranchfallback�s ��

r7)s	evolutionsbookmarksbranchsbranchfallbackFcCsLd}}}tD]$}t|||�\}}}|durq6q||��}|||fS)a"destination for bare update operation

    return (rev, movemark, activemark)

    - rev: the revision to update to,
    - movemark: node to move the active bookmark from
                (cf bookmark.calculate update),
    - activemark: a bookmark to activate at the end of the update.
    N)�destupdatesteps�destupdatestepmapr)rr%rr'r+�steprrrr�
destupdate�s
r;sTmultiple matching bookmarks to merge - please merge with an explicit rev or bookmarks4run 'hg heads' to see all heads, specify rev with -rsTmultiple matching bookmarks to rebase - please rebase to an explicit rev or bookmarks<run 'hg heads' to see all heads, specify destination with -d)�mergesrebasesMno matching bookmark to merge - please merge with an explicit rev or bookmarksMno matching bookmark to rebase - please rebase to an explicit rev or bookmarks<branch '%s' has %d heads - please merge with an explicit revs2run 'hg heads .' to see heads, specify rev with -rs;branch '%s' has %d heads - please rebase to an explicit revs:run 'hg heads .' to see heads, specify destination with -ds8heads are bookmarked - please merge with an explicit revs7heads are bookmarked - please rebase to an explicit revs<branch '%s' has one head - please merge with an explicit revs;branch '%s' has one head - please rebase to an explicit revsnothing to mergeNsnothing to rebasesuse 'hg update' insteads(working directory not at a head revisions2use 'hg update' or merge with an explicit revisions1use 'hg update' or rebase to an explicit revisionssource set is emptys)source set is rooted in multiple branchess.rebaseset is rooted in multiple named branchess+specify an explicit destination with --dest)
�toomanybookmarks�nootherbookmarks�toomanyheads�bookmarkedheads�nootherbranchheads�nootherheads�nootherheadsbehind�
notatheads�emptysourceset�multiplebranchessourcesetr<c	Cs�d}t�|�}|j|j}t|�dkrF||dkr<|d}q�|d}nVt|�dkrrtd|\}}tj||d��n*t|�dkr�td|\}}tj||d��|dus�J�|S)z2find merge destination in the active bookmark caseN�rrr=��hintr>)	r�headsforactiver*�_activebookmark�len�msgdestmerger�ManyMergeDestAbort�NoMergeDestAbort)	r�action�	sourceset�	destspacer�bmheads�curhead�msgrIrrr�_destmergebooks


rVTc
Cs"d}|dur,||j����g}|j��}nv|sPtd|\}}tj||d��nRd}|�d||�D]>}	|dur�|	��|kr�td|\}}tj||d��|	��}qb|�	|�}
|�
d||
�}|�r|�st|���dkr�td|\}}ntd	|\}}tj
||d��t|�
d
|
|��}
t|�
d|
��}|du�rDt|�
d||��}t|�dk�r�td
|\}}||t|
�df;}tj||d��n�|�s|
�r�td|\}}nTt|���dk�r�td|\}}||;}n(|�s�td|\}}ntd|\}}tj||d��n|d}|du�sJ�|S)z,find merge destination based on branch headsNrErHsroots(%ld::%ld)rFs%ld and %lnrrCrDs
%ln - (%ld::)s%ld - bookmark()s%ld and %ldr?r@rArBr)�dirstater!rr.rMrrOr
rNr0r"rLr2ZAbortr)
rrPrQ�onheadcheckrRrr.rUrI�ctxZbheadsZonheadZnbhsrrr�_destmergebranch2sR



rZcCs6|jrt||||d�}nt|||||d�}||��S)z�return the default destination for a merge

    (or raise exception about why it can't pick one)

    :action: the action being performed, controls emitted error message
    )rPrQrR)rPrQrXrR)rKrVrZr)rrPrQrXrRrrrr�	destmerge{s��r[cCsR|�dd�}|dur t�|�}n"|r4t�||g�}nt�td���|rN|��SdS)z0Default base revision to edit for `hg histedit`.shistedits
defaultrevNs0config option histedit.defaultrev can't be empty)	Zconfigr	�getstackrZrevrangerZConfigErrorr�min)r)r�defaultr"rrr�desthistedit�s�r_cCst�|�}|r|��SdS)N)r	r\r#)r)rr"rrr�	stackbase�s
r`cs\t�|�}|j|j�|�d��rX�fdd�|D�}|rXtd�}|�|t|�|jf�dS)Ns%n and parents()csg|]}�|kr|�qSrr)r�b�rTrrr�rz$_statusotherbook.<locals>.<listcomp>s&%i other divergent bookmarks for "%s"
)rrJr*rKr"r�statusrL)r)rrSrUrrbr�_statusotherbook�s
rdcCs�|j��}|j|dd�}|�|�}|�d|�r�|�d|�}|d��r�|�td�|�|rt|�td�t|��q�|�td�|�nJ|r�|d}|�td	�||�	��
d
�df�|�td�t|�|f�dS)
NTr4s%ln and parents()s%ln - parents()r sCno open descendant heads on branch "%s", updating to a closed head
sJ(committing will reopen the head, use 'hg heads .' to see %i other heads)
s%(committing will reopen branch "%s")
supdated to "%s: %s"
�
rs%i other heads for branch "%s"
)rWr.r0r"Zclosesbranch�warnrrLrc�description�split)r)rr1Zallheadsr2Z
otherheadsrTrrr�_statusotherbranchheads�sH


������
���
��ricCs |jrt||�n
t||�dS)zPrint message about other headN)rKrdri)r)rrrr�statusotherdests�srj)F)r<NN)r<NTN)r<NTN)Z
__future__rZi18nr�rrrrr	rr(r,r3r7r8r9r;rMrVrZr[r_r`rdrirjrrrr�<module>s�"+
�
�������������
���
���

�����

�
���g
�
J�
/

Youez - 2016 - github.com/yon3zu
LinuXploit