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/thread-self/root/proc/self/root/lib64/python2.7/site-packages/hgext/closehead.pyc
�
1�3\c@@s�dZddlmZddlmZddlmZmZmZm	Z	m
Z
mZmZiZ
eje
�ZdZejZejZddged�ed	�fgZed
eeeed�dejd
e�d��ZdS(s5close arbitrary heads without checking them out firsti(tabsolute_import(t_(t	bookmarkstcmdutiltcontextterrortpycompatt	registrartscmutilsships-with-hg-coretrtrevsrevision to checktREVsclose-head|close-headss[OPTION]... [REV]...thelpcategoryt	inferrepoc	@s�����fd�}tj���|t�jdg��7}tj�|�}|sstjtd���ng}x*�j	�D]}|j
�j|��q�Wt�fd�|D��}x6|D].}||kr�tjtd�|��q�q�Wt
j|����s+tjtd���nidd6��j��S�j��@x8|D]0}�|}|j�}|�d	<||�qYWWd
QXWd
QXdS(s	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@s�tj�d|dgd�dgddd�jd�d�jd�d��}�jd�}�j|t�}tj�|dg|�|j	|�|j
�dS(	Ntparentsttexttfilest	filectxfntusertdatetextratcommit(RtmemctxtNonetgetttransactiont	commitctxtTrueRtupdatet
markcommittedtclose(R
tcctxttrtret(Rtmessagetoptstrepo(s5/usr/lib64/python2.7/site-packages/hgext/closehead.pytdocommit/s
R
sno revisions specifiedc3@s|]}�|j�VqdS(N(R
(t.0th(R$(s5/usr/lib64/python2.7/site-packages/hgext/closehead.pys	<genexpr>Dss revision is not an open head: %ds)no commit message specified with -l or -mt1RtbranchNi(RtbyteskwargsttupleRRtrevrangeRtAbortRt	branchmaptextendtbranchheadstsetRt
logmessagetwlocktlockR)(	tuiR$trevsR#R%theadsR)R
R	((RR"R#R$s5/usr/lib64/python2.7/site-packages/hgext/closehead.pytclose_branch"s2


 





N(t__doc__t
__future__Rtmercurial.i18nRt	mercurialRRRRRRRtcmdtabletcommandt
testedwitht
commitoptstcommitopts2tcommitopts3tCATEGORY_CHANGE_MANAGEMENTRR8(((s5/usr/lib64/python2.7/site-packages/hgext/closehead.pyt<module>s4