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__/closehead.cpython-310.pyc
o

�]Lb�
�@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)�helpcategory�	inferrepoc		s\����fdd�}t����|t��dg��7}t��|�}|s't�td���g}��	�D]
}|�
��|��q-�fdd�|D�}|D]}||vrRt�td�|��qCt�
|����sbt�td���d	d
i�����:����|D]}�|}|��}|�d<||�qrWd�n1s�wYWd�d
SWd�d
S1s�wYd
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�files�	filectxfn�user�date�extrascommitT)	r�memctx�get�transaction�	commitctxr�update�
markcommitted�close)�rev�cctx�tr�ret�r�message�opts�repo��1/usr/lib/python3/dist-packages/hgext/closehead.py�docommit3s�


zclose_branch.<locals>.docommitrsno revisions specifiedcsh|]}�|���qSr%)r)�.0�h)r$r%r&�	<setcomp>Oszclose_branch.<locals>.<setcomp>s revision is not an open head: %ds)no commit message specified with -l or -msclose�1sbranchNr)r	�byteskwargs�tuplerr�revranger�Abortr�	branchmap�extend�branchheadsr�
logmessage�wlock�lock�branch)	�uir$�revsr#r'�headsr6r�rr%r!r&�close_branch"s>
�
�(���r;N)�__doc__�
__future__r�mercurial.i18nr�	mercurialrrrrrr	r
�cmdtable�command�
testedwith�
commitopts�commitopts2�commitopts3�CATEGORY_CHANGE_MANAGEMENTr;r%r%r%r&�<module>s$$


�

https://t.me/RX1948 - 2025