
    6h              
      <   S r SSKJr  SSKJr  SSKJrJr  SSKJ	r	J
r
JrJrJrJrJrJrJrJrJr  SSKJr  0 r\R.                  " \5      rSr\" S	S
SS\" S5      \" S5      4SSS\" S5      4/\
R2                  -   \" S5      \R4                  SS9S 5       rS rS rg)z=command to split a changeset into smaller ones (EXPERIMENTAL)    )annotations)_)nullrevshort)	bookmarkscmdutilcommandserrorhg
logcmdutil	registrar
revsetlangrewriteutilscmutilutil   )rebases   ships-with-hg-core   split   rs   rev    s   revision to splits   REVs   rebaseTs   rebase descendants after splits!   hg split [--no-rebase] [[-r] REV])helpcategory	helpbasicc                   / nUR                  S5      (       a   UR                  UR                  S5      5        UR                  U5        UR                  5          UR	                  5          UR                  S5      n[        R                  " U5         [        R                  " X=(       d    S/5      n[        U5      S:  a  [        R                  " [        S5      5      eUR                  5       nUb
  U[        :X  a4  U R!                  [        S5      5         SSS5        SSS5        SSS5        gX   nUR#                  5       c  [        R                  " [        S5      5      eUR                  S	5      (       a7  [%        UR'                  S
Xf5      5      n[%        UR'                  SX5      5      n	O/ n	[(        R*                  " X/U	-   S5        [        UR-                  5       5      S:  a  [        R                  " [        S5      5      e[.        R0                  " U5        UR2                  n
U
(       a7  UR4                  U
   UR#                  5       :w  a  [6        R8                  " U5        US   R#                  5       nSn [;        XXW40 UD6nUb  XR#                  5       :w  a  [<        R>                  " XSS9  U
(       a  [6        R@                  " X5        U	(       a  U(       a  [C        XX5        SSS5        SSS5        SSS5        g! Ub  XR#                  5       :w  a  [<        R>                  " XSS9  U
(       a  [6        R@                  " X5        f f = f! , (       d  f       Nm= f! , (       d  f       Nv= f! , (       d  f       g= f)aN  split 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.
revr      .r   s   cannot split multiple revisionsNs   nothing to split
s   cannot split working directoryr   s   (%d::) - (%d)s   %ld - (%ld & obsolete())::s   cannot split a merge changesetF
show_stats)"getappendextendwlocklocktransactionr   acceptinterventionr   revrangelenr
   
InputErrorr   firstr   statusnodelistrevsr   precheckparentsr   bailifchanged_activebookmark
_bookmarksr   
deactivatedosplitr   cleanactivatedorebase)uirepor,   optsrevlisttrr   ctxdescendantstorebasebnamewnodetops                -/usr/lib/python3/dist-packages/hgext/split.pysplitrC   .   s   , Gxxtxx'NN4	tyy{h' $$R(&&t->?D4y1}&&q)K'LMM**,C {cWn		!123 )	 # )Cxxz!&&q)J'KLLxx!! #499-=s#HIII5{   ux'7B3;;=!A%&&q)J'KLL!!$' ((E/388:=$$T*JOO%EC4b848 ;%88:"5HHTU;&&t3C81g )	 #d ;%88:"5HHTU;&&t3 a )(	 #{sj   M;+(M*BMM*"M;3EMLA"M2M*:M;AM	M
M'#M**
M8	4M;;
N	c           	     ^   / nUR                  5       UR                  R                  5       :w  a#  [        R                  " XR                  5       SS9  UR                  R                  U5         [        R                  " XR                  5       5        S S S 5        S nU" U5      (       Ga7  U(       a  [        S5      [        UR                  5       5      -  nU R                  SS0S5         U H+  n[        R                  " XS5      n	U[        S5      U	-  -  nM-     S S S 5        U[        S	5      -  nO%[        S
5      [        UR                  5       5      -  nUR                  SSXsR                  5       -   S.5        US   n
[        R                   " X40 UD6  US   nU
R                  5       UR                  5       :w  a  UR#                  U5        U" U5      (       a  GM7  U(       d  [$        R&                  " [        S5      5      e[)        U5      S:w  d%  US   R                  5       UR                  5       :w  aE  [        R*                  " UUR                  5       U Vs/ s H  oR                  5       PM     sn0SSS9  US   $ ! , (       d  f       GN= f! , (       d  f       GN= fs  snf )NFr   c                    U R                  5       n[        UR                  UR                  UR                  UR
                  45      $ )N)r)   anymodifiedaddedremoveddeleted)r8   sts     rB   
incompletedosplit.<locals>.incomplete   s1    [[]BKK2::rzzBCCr   s1   HG: Splitting %s. So far it has been split into:
)s   templatealiass
   label(l,x)   xr   s	   HG: - %s
s7   HG: Write commit message for the next split changeset.
sF   HG: Splitting %s. Write commit message for the first split changeset.
T)editinteractivemessager   s   cannot split an empty revisionr   r   )	operationfixphase)r*   dirstatep1r   r4   changing_parentsr   movedirstater   r   configoverrider   format_changeset_summaryupdatedescriptionr	   commitr   r
   r'   r&   cleanupnodes)r7   r8   r;   r<   r9   	committedrL   headercsummaryorigctxnewctxs               rB   r3   r3      sF   I xxzT]]%%''
xxze4		'	'	-T668, 
.D
 T

Echhj!"F
 ""2D98 #A%>>rhOGa.88F # aK F , chhj!"F 	#!OO$55	
 t*)D)d <<>V[[]*V$E T

H q!BCDD
9~il//1SXXZ? 	XXZI6Iq&&(I67		
 R=u 
.	-  J 7s   -%J+2J J*
J
J'c           
         [         R                   " U U[        R                  " SU5      /[        R                  " SUR                  5       5      S9  g )Ns   %lds   %d)r   dest)r   r   
formatspecr   )r7   r8   srcdestctxs       rB   r6   r6      s=    
MM
""63/0""5'++-8	r   N)__doc__
__future__r   mercurial.i18nr   mercurial.noder   r   	mercurialr   r   r	   r
   r   r   r   r   r   r   r    r   cmdtablecommand
testedwithcommitopts2CATEGORY_CHANGE_MANAGEMENTrC   r3   r6    r   rB   <module>rv      s    D " 
    


H
% #
 		vsA23QvY?	iq!BCD 	
 *+33
F2
F2R@Fr   