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/lib64/python2.7/site-packages/hgext/split.pyc
�
1�3\c@@s3dZddlmZddlmZddlmZmZddlm	Z	m
Z
mZmZm
Z
mZmZmZmZmZmZddlmZiZeje�ZdZed	d
dded
�ed�fddeed�fge
jed�dejde�d��Zd�Zd�ZdS(s=command to split a changeset into smaller ones (EXPERIMENTAL)i(tabsolute_import(t_(tnullidtshort(t	bookmarkstcmdutiltcommandsterrorthgtobsoletetphasestpycompatt	registrart
revsetlangtscmutili(trebasesships-with-hg-coretsplittrtrevtsrevision to splittREVRsrebase descendants after splits!hg split [--no-rebase] [[-r] REV]thelpcategoryt	helpbasiccO@s[tj|�}g}|jd�r=|j|jd��n|j|�|j���|j���|jd���}tj	||p�dg�}t
|�dkr�tjt
d���n|j�}||}|dks�|j�tkr|jt
d��dS|j�dkr0tjt
d���n|j�tjkritjt
d�d	t
d
���nt|jd||��}tj|tj�}	|jd�r�t|jd
||��}
|	r(t
|
�t
|�kr(tjt
d���q(n+|	r"|r"tjt
d���nd}
t
|j��dkrXtjt
d���ntj|�|j}|r�|j||j�kr�t j!|�n|dj�}d}
zt"|||||�}
Wd|
dks�||j�kr	t#j$||dt%�n|r"t j&||�nX|
rE|
rEt'|||
|
�nWdQXWdQXWdQXdS(sfsplit a changeset into smaller ones

    Repeatedly prompt changes and commit message for new changesets until there
    is nothing left in the original changeset.

    If --rev was not given, split the working directory parent.

    By default, rebase connected non-obsoleted descendants onto the new
    changeset. Use --no-rebase to avoid the rebase.
    RRt.iscannot split multiple revisionssnothing to split
scannot split working directoryscannot split public changesetthints see 'hg help phases' for detailss
(%d::) - (%d)Rs%ld - (%ld & obsolete())::s,split would leave orphaned changesets behinds3cannot split changeset with children without rebasescannot split a merge changesetNt
show_stats(((RtbyteskwargstgettappendtextendtwlocktlockttransactionRtrevrangetlenRtAbortRtfirsttNonetnodeRtstatustphaseR
tpublictlisttrevsR	t	isenabledtallowunstableopttparentsRt
bailifchangedt_activebookmarkt
_bookmarksRt
deactivatetdosplitRtcleantFalsetactivatetdorebase(tuitrepoR+toptstrevlistttrRtctxtdescendantst
alloworphanedttorebasetbnametwnodettop((s1/usr/lib64/python2.7/site-packages/hgext/split.pyR/s`



	

	cC@s�g}tj||j�j�dt�|jj|j��}|j�tj	||||�|j
�d�}x||�r�|r
td�t|j��}xP|D]H}	|	j
�jdd�d}
|td�t|	j��|
f7}q�W|td�7}ntd	�t|j��}|jitd
6td6||j
�d6�tj||tj|��|d
}|j|�qvW|s�tjtd���ntj|ig|D]}	|	j�^q�|j�6dddt�|dS(NRcS@st|j�d �S(Ni(tanyR'(R9((s1/usr/lib64/python2.7/site-packages/hgext/split.pyt<lambda>�Rs1HG: Splitting %s. So far it has been split into:
s
iis
HG: - %s: %s
s7HG: Write commit message for the next split changeset.
sFHG: Splitting %s. Write commit message for the first split changeset.
tedittinteractivetmessageRscannot split an empty revisiont	operationRtfixphasei����(RR4tp1R&R5t	changelogR.t
pushbufferRtrevertt	popbufferRRtdescriptionRtupdatetTrueRtcommitRt	strkwargsRRR#Rtcleanupnodes(R8R9R<R=R:t	committedR.t
incompletetheadertct	firstlinetnewctx((s1/usr/lib64/python2.7/site-packages/hgext/split.pyR3�s:"

		
*		
5
c	C@sAtj||dtjd|�gdtjd|j���dS(NRs%ldtdests%d(RR
t
formatspecR(R8R9tsrctdestctx((s1/usr/lib64/python2.7/site-packages/hgext/split.pyR7�s$N(t__doc__t
__future__Rtmercurial.i18nRtmercurial.nodeRRt	mercurialRRRRRR	R
RRR
RRRtcmdtabletcommandt
testedwithRRtcommitopts2tCATEGORY_CHANGE_MANAGEMENTRR3R7(((s1/usr/lib64/python2.7/site-packages/hgext/split.pyt<module>s LQ	-