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__/closehead.cpython-39.opt-1.pyc
a

�+�b�
�@s�dZddlmZddlmZddlmZmZmZm	Z	m
Z
mZmZiZ
e�e
�ZdZejZejZddged�ed	�fgZed
eeeed�ejdd
�dd��ZdS)z5close arbitrary heads without checking them out first�)�absolute_import)�_)�	bookmarks�cmdutil�context�error�
logcmdutil�pycompat�	registrarsships-with-hg-core�r�revsrevision to checksREVsclose-head|close-headss[OPTION]... [REV]...T)ZhelpcategoryZ	inferrepoc		sN����fdd�}t����|t��dg��7}t��|�}|sNt�td���g}��	�D]}|�
��|��qZ�fdd�|D�}|D]}||vr�t�td�|��q�t�
|����s�t�td���d	d
i�����d����:|D]$}�|}|��}|�d<||�q�Wd�n1�s 0YWd�n1�s@0Yd
S)a	close the given head revisions

    This is equivalent to checking out each revision in a clean tree and running
    ``hg commit --close-branch``, except that it doesn't change the working
    directory.

    The commit message must be specified with -l or -m.
    c
shtj�|dg�gd��d���d��d�}��d�}��|d�}t��|dg|�|�|�|��dS)Nsusersdate)�parents�text�filesZ	filectxfn�user�date�extrascommitT)	rZmemctx�getZtransactionZ	commitctxr�updateZ
markcommitted�close)�revZcctx�tr�ret�r�message�opts�repo��5/usr/lib64/python3.9/site-packages/hgext/closehead.py�docommit3s�


zclose_branch.<locals>.docommitrsno revisions specifiedcsh|]}�|���qSr)r)�.0�h)rrr�	<setcomp>O�zclose_branch.<locals>.<setcomp>s revision is not an open head: %ds)no commit message specified with -l or -msclose�1sbranchNr)r	Zbyteskwargs�tuplerrZrevrangerZAbortrZ	branchmap�extendZbranchheadsrZ
logmessageZwlock�lock�branch)	ZuirZrevsrrZheadsr(r�rrrr�close_branch"s0
Jr*N)�__doc__Z
__future__rZmercurial.i18nrZ	mercurialrrrrrr	r
ZcmdtableZcommandZ
testedwithZ
commitoptsZcommitopts2Zcommitopts3ZCATEGORY_CHANGE_MANAGEMENTr*rrrr�<module>s"$


�

Youez - 2016 - github.com/yon3zu
LinuXploit