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/self/root/usr/lib64/python2.7/site-packages/hgext/histedit.pyc
�
1�3\c@@s�dZddlmZddlZddlmZddlmZmZm	Z	m
Z
mZmZm
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZej Z ej!Z!iZ"ej#e"�Z#iZ$ej%e$�Z%e%ddd	e&�e%d
dd	d�e%d
dd	e&�e%d
d
d	d�e%d
dd	e&�dZ(iZ)e*�Z+e*�Z,e*�Z-e*�Z.d�Z/de0fd��YZ1de0fd��YZ2d�Z3d�Z4e&d�Z5d�Z6d�Z7e&e&d�Z8e8ddged�de9�de2fd ��Y�Z:e8d!d"ged#�de9�d!e2fd$��Y�Z;e8d%d&ged'��d%e2fd(��Y�Z<e8d)d*ged+��d)e2fd,��Y�Z=e8d-ged.�d/e9�d-e<fd0��Y�Z>e8d1d2ged3��d4e<fd5��Y�Z?e8d6d7ged8��d6e2fd9��Y�Z@e8d:d;ged<�de9�d=e2fd>��Y�ZAde&dd?�ZBe#d
d@dAd@edB�edC�fdDdEe&edF�fd@dGe&edH�fdIdJe&edK�fd@dLe&edM�fdNdOe&edP�fd&dQe&edR�fd2dSgedT�edU�fgejCedV�dWe#jD�dX��ZEdEZFdLZGdGZHdYZIdZ�ZJd[�ZKd\�ZLd]�ZMd^�ZNd_�ZOe&d`�ZPda�ZQdb�ZRdc�ZSdd�ZTde�ZUd@df�ZVdg�ZWdh�ZXdi�ZYdj�ZZdk�Z[dl�Z\e&dm�Z]dn�Z^ej_edoe^�dp�Z`dq�ZadS(rs�interactive history editing

With this extension installed, Mercurial gains one new command: histedit. Usage
is as follows, assuming the following history::

 @  3[tip]   7c2fd3b9020c   2009-04-27 18:04 -0500   durin42
 |    Add delta
 |
 o  2   030b686bedc4   2009-04-27 18:04 -0500   durin42
 |    Add gamma
 |
 o  1   c561b4e977df   2009-04-27 18:04 -0500   durin42
 |    Add beta
 |
 o  0   d8d2fcd0e319   2009-04-27 18:04 -0500   durin42
      Add alpha

If you were to run ``hg histedit c561b4e977df``, you would see the following
file open in your editor::

 pick c561b4e977df Add beta
 pick 030b686bedc4 Add gamma
 pick 7c2fd3b9020c Add delta

 # Edit history between c561b4e977df and 7c2fd3b9020c
 #
 # Commits are listed from least to most recent
 #
 # Commands:
 #  p, pick = use commit
 #  e, edit = use commit, but stop for amending
 #  f, fold = use commit, but combine it with the one above
 #  r, roll = like fold, but discard this commit's description and date
 #  d, drop = remove commit from history
 #  m, mess = edit commit message without changing commit content
 #  b, base = checkout changeset and apply further changesets from there
 #

In this file, lines beginning with ``#`` are ignored. You must specify a rule
for each revision in your history. For example, if you had meant to add gamma
before beta, and then wanted to add delta in the same revision as beta, you
would reorganize the file to look like this::

 pick 030b686bedc4 Add gamma
 pick c561b4e977df Add beta
 fold 7c2fd3b9020c Add delta

 # Edit history between c561b4e977df and 7c2fd3b9020c
 #
 # Commits are listed from least to most recent
 #
 # Commands:
 #  p, pick = use commit
 #  e, edit = use commit, but stop for amending
 #  f, fold = use commit, but combine it with the one above
 #  r, roll = like fold, but discard this commit's description and date
 #  d, drop = remove commit from history
 #  m, mess = edit commit message without changing commit content
 #  b, base = checkout changeset and apply further changesets from there
 #

At which point you close the editor and ``histedit`` starts working. When you
specify a ``fold`` operation, ``histedit`` will open an editor when it folds
those revisions together, offering you a chance to clean up the commit message::

 Add beta
 ***
 Add delta

Edit the commit message to your liking, then close the editor. The date used
for the commit will be the later of the two commits' dates. For this example,
let's assume that the commit message was changed to ``Add beta and delta.``
After histedit has run and had a chance to remove any old or temporary
revisions it needed, the history looks like this::

 @  2[tip]   989b4d060121   2009-04-27 18:04 -0500   durin42
 |    Add beta and delta.
 |
 o  1   081603921c3f   2009-04-27 18:04 -0500   durin42
 |    Add gamma
 |
 o  0   d8d2fcd0e319   2009-04-27 18:04 -0500   durin42
      Add alpha

Note that ``histedit`` does *not* remove any revisions (even its own temporary
ones) until after it has completed all the editing operations, so it will
probably perform several strip operations when it's done. For the above example,
it had to run strip twice. Strip can be slow depending on a variety of factors,
so you might need to be a little patient. You can choose to keep the original
revisions by passing the ``--keep`` flag.

The ``edit`` operation will drop you back to a command prompt,
allowing you to edit files freely, or even use ``hg record`` to commit
some changes as a separate commit. When you're done, any remaining
uncommitted changes will be committed as well. When done, run ``hg
histedit --continue`` to finish this step. If there are uncommitted
changes, you'll be prompted for a new commit message, but the default
commit message will be the original message for the ``edit`` ed
revision, and the date of the original commit will be preserved.

The ``message`` operation will give you a chance to revise a commit
message without changing the contents. It's a shortcut for doing
``edit`` immediately followed by `hg histedit --continue``.

If ``histedit`` encounters a conflict when moving a revision (while
handling ``pick`` or ``fold``), it'll stop in a similar manner to
``edit`` with the difference that it won't prompt you for a commit
message when done. If you decide at this point that you don't like how
much work it will be to rearrange history, or that you made a mistake,
you can use ``hg histedit --abort`` to abandon the new changes you
have made and return to the state before you attempted to edit your
history.

If we clone the histedit-ed example repository above and add four more
changes, such that we have the following history::

   @  6[tip]   038383181893   2009-04-27 18:04 -0500   stefan
   |    Add theta
   |
   o  5   140988835471   2009-04-27 18:04 -0500   stefan
   |    Add eta
   |
   o  4   122930637314   2009-04-27 18:04 -0500   stefan
   |    Add zeta
   |
   o  3   836302820282   2009-04-27 18:04 -0500   stefan
   |    Add epsilon
   |
   o  2   989b4d060121   2009-04-27 18:04 -0500   durin42
   |    Add beta and delta.
   |
   o  1   081603921c3f   2009-04-27 18:04 -0500   durin42
   |    Add gamma
   |
   o  0   d8d2fcd0e319   2009-04-27 18:04 -0500   durin42
        Add alpha

If you run ``hg histedit --outgoing`` on the clone then it is the same
as running ``hg histedit 836302820282``. If you need plan to push to a
repository that Mercurial does not detect to be related to the source
repo, you can add a ``--force`` option.

Config
------

Histedit rule lines are truncated to 80 characters by default. You
can customize this behavior by setting a different length in your
configuration file::

  [histedit]
  linelen = 120      # truncate rule lines at 120 characters

``hg histedit`` attempts to automatically choose an appropriate base
revision to use. To change which base revision is used, define a
revset in your configuration file::

  [histedit]
  defaultrev = only(.) & draft()

By default each edited revision needs to be present in histedit commands.
To remove revision you need to use ``drop`` operation. You can configure
the drop to be implicit for missing commits by adding::

  [histedit]
  dropmissing = True

By default, histedit will close the transaction after each action. For
performance purposes, you can configure histedit to use a single transaction
across the entire histedit. WARNING: This setting introduces a significant risk
of losing the work you've done in a histedit if the histedit aborts
unexpectedly::

  [histedit]
  singletransaction = True

i(tabsolute_importN(t_(tbundle2tcmdutiltcontexttcopiestdestutilt	discoveryterrortexchanget
extensionsthgtlocktmerget	mergeutiltnodetobsoletetpycompatt	registrartrepairtscmutiltstatetutil(t
stringutiltexperimentalshistedit.autoverbtdefaultthisteditt
defaultrevtdropmissingtlineleniPtsingletransactionsships-with-hg-corec	@s�td�}g��fd�}x2tt�tt�tt�D]}||�qBW�jd�g}|jdd�r�|jd�n|||fjd��|}djg|D]}|r�d|nd	^q��S(
s� construct the editor comment
    The comment includes::
     - an intro
     - sorted primary commands
     - sorted short commands
     - sorted long commands
     - additional hints

    Commands are only included once.
    s�Edit history between %s and %s

Commits are listed from least to most recent

You can reorder changesets by reordering the lines

Commands:
c@s�t|}|jjd�}t|j�rOdjt|jdd���}n�jd||df��jg|dD]}d^q{�dS(	Ns
s, tkeycS@s
t|�S(N(tlen(tv((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyt<lambda>ts %s = %siis  %s(	tactiontabletmessagetsplitR tverbstjointsortedtappendtextend(R!tatlinestl(tactions(s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytaddverbs
$R#RRsKDeleting a changeset from the list will DISCARD it from the edited history!s
s# %s
s#
(	RR)tprimaryactionstsecondaryactionsttertiaryactionsR*t
configboolR&R((	tuitfirsttlasttintroR0R!thintsR-R.((R/s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytgeteditcomment�s	
!t
histeditstatecB@sheZdddddddd�Zd�Zd�Zdd�Zd�Zd�Zd�Z	d�Z
RS(	c		C@s�||_||_||_||_||_||_||_d|_t	j
|d�|_|dkrug|_n	||_dS(Nshistedit-state(
trepoR/tkeepttopmostt
parentctxnodeRtwlocktNonet
backupfiletstatemodtcmdstatetstateobjtreplacements(	tselfR<R?R/R=R>RFRR@((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyt__init__)s								cC@s�|jj�s+tj|jtd��n|j�}|d|_t|d|�}||_	|d|_
|d|_|d|_|d|_
dS(	s;Load histedit state from disk and set fields appropriately.RR?trulesR=R>RFRBN(REtexistsRtwrongtooltocontinueR<Rt_readR?t
parserulesR/R=R>RFRB(RGtdataR/((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytread9s
	


cC@s�|jjjd�}|jd�rK|j�}|\}}}}}}n*tj|�}|\}}}}}d}djg|D]\}	}
d|	|
f^q��}i|d6|d6|d6|d6|d	6|d
6S(Nshistedit-statesv1
s
s%s %sR?RIR=R>RFRB(	R<tvfsROt
startswitht_loadtpickletloadsRAR((RGtfpRNR?RIR=R>RFRBtverbtrest((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRLHs2cC@sT|r%|jdd|jdd�n+|jjdd��}|j|�WdQXdS(Nshistedit-statetlocationtplaintw(shistedit-state(taddfilegeneratort_writeR<RP(RGttrtf((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytwriteWs
cC@sB|jd�|jdtj|j��|jdtj|j��|jd|jr_dnd�|jdt|j��x(|jD]}|jd|j��q�W|jdt|j	��xL|j	D]A}|jdtj|d�dj
d	�|d
D��f�q�W|j}|s-d}n|jd|�dS(Nsv1
s%s
tTruetFalses%d
s%s%s
iR#cs@s|]}tj|�VqdS(N(Rthex(t.0tr((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pys	<genexpr>isi(R_RRbR?R>R=R R/ttostateRFR(RB(RGRUtactiontreplacementRB((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR\_s
 %		cC@s|jjdd�}g|j�D]}|d ^q"}d}|||d7}tj||�}|d7}tj||�}|d7}||dk}|d7}g}t||�}	|d7}xRtj|	�D]A}
||}|d7}||}|d7}|j||f�q�Wg}
t||�}|d7}x�tj|�D]}
||}tj|d �}gt	dt
|�d�D] }
tj||
|
d!�^q�}|
j||f�|d7}qIW||}|d7}|j�|||||
|fS(Nshistedit-stateRdi����iiR`i((R<RPt	readlinesRtbintintRtxrangeR*trangeR tclose(RGRUR.R-tindexR?R>R=RItrulelentit
ruleactiontruleRFtreplacementlenRgtoriginaltsuccRB((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRRpsD#










<


cC@s&|j�r"|jjjd�ndS(Nshistedit-state(t
inprogressR<RPtunlink(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytclear�scC@s|jjjd�S(Nshistedit-state(R<RPRJ(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRv�sN(t__name__t
__module__RARHRORLR_R\RRRxRv(((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR;(s					/	thisteditactioncB@sqeZd�Zed��Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
RS(cC@s"||_|j|_||_dS(N(RR<R(RGRR((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRH�s	cC@s�|j�jdd�d}ytj|�}Wnutk
r�y4tj|j|�}|j�}tj|�}Wq�t	j
k
r�t	jtd�|��q�XnX|||�S(sLParses the given rule, returning an instance of the histeditaction.
        t iisinvalid changeset %s(
tstripR&RRit	TypeErrorRt	revsingleR<RbRtRepoLookupErrort
ParseErrorR(tclsRRrtruleidtrevt_ctxtrulehash((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytfromrule�s
!cC@sv|j}tj|j�}tj||�|_|jdkr_tjtd�|d ��n|j	|||�dS(s* Verifies semantic correctness of the rulesunknown changeset %s listediN(
R<RRbRtresolvehexnodeidprefixRARR�Rt_verifynodeconstraints(RGtprevtexpectedtseenR<tha((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytverify�s	 cC@s�|j|krLtjtd�|jtj|j�fdtd���n|j|kr�tjtd�tj|j���ndS(Ns%%s "%s" changeset was not a candidatethintsonly use listed changesetss#duplicated command for changeset %s(RRR�RRVtshort(RGR�R�R�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR��scC@sr|j|j}t|�}d|j||j�|f}|jjjdd�}t|d�}tj	||�S(s{build a histedit rule line for an action

        by default lines are in the form:
        <hash> <rev> <summary>
        s%s %s %d %sRRi(
R<Rt_getsummaryRVR�R5t	configinttmaxRtellipsis(RGtctxtsummarytlinetmaxlen((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyttorule�scC@sd|jtj|j�fS(s�Print an action in format used by histedit state files
           (the first line is a verb, the remainder is the second)
        s%s
%s(RVRRb(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRe�scC@s|j�|j�|j�S(snRuns the action. The default behavior is simply apply the action's
        rulectx onto the current parentctx.(tapplychanget
continuedirtyt
continueclean(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytrun�s

cC@s�|j}||j}|jjdtdt�tj||jjdt�t	|j||i�}|j
j|j��|j
r�|jj�}|jj|�tjtd�|jtj|j�fdtd���n
|jj�dS(slApplies the changes from this action's rulectx onto the current
        parentctx, but does not commit them.Rtlabeledt
quietemptysFix up the change (%s %s)R�s hg histedit --continue to resumeN(R<RR5t
pushbufferR`RtupdateRR?tapplychangestdirstatet	setbranchtbranchtunresolvedcountt	popbufferR_RtInterventionRequiredRRVR�(RGR<trulectxtstatstbuf((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR��s	
		cC@sr|j}||j}|j�}t||�}|d|j�d|j�d|j�d|j�d|�dS(s�Continues the action when changes have been applied to the working
        copy. The default behavior is to commit the dirty changes.ttexttusertdatetextrateditorN(R<Rtcommiteditort
commitfuncfortdescriptionR�R�R�(RGR<R�R�tcommit((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�s	
cC@stS(s1The editor to be used to edit the commit message.(Ra(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�scC@s�|jd}|j�|jjkrg|jjjtd�tj|j��||jt�fgfS|j�|jkr�|gfS||j|j�ffgfS(s�Continues the action when the working copy is clean. The default
        behavior is to accept the current commit as the new version of the
        rulectx.t.s$%s: skipping changeset (no changes)
(	R<RRR?R5twarnRR�ttuple(RGR�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�s

(RyRzRHtclassmethodR�R�R�R�ReR�R�R�R�R�(((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR{�s										c@s%�j�����fd�}|S(s=Build a commit function for the replacement of <src>

    This function ensure we apply the same treatment to all changesets.

    - Add a 'histedit_source' entry in extra.

    Note that fold has its own separated logic because its handling is a bit
    different and not easily factored out of the fold method.
    c@sli�d6}�jj|d��D|jdi�j�}�j�|d<||d<�j|�SWdQXdS(Ntphasess
new-commitRR�thistedit_source(R�s
new-commit(R5tconfigoverridetgettcopyRbR�(tkwargst	overridesR�(tphaseminR<tsrc(s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyt
commitfunc+s

(tphase(R<R�R�((R�R<R�s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR� s
cC@s�|jj�d}|j�j�|krktj||||tjfdt�tj	dddd�}njzM|j
jdd|jdd�d�tj
|||j�ddg�}Wd	|j
jdddd�X|S(
s@Merge changeset from ctx (only) in the current working directoryitallR5t
forcemergettoolR#RtlocalN(R�tparentstp1RRtreverttnullidR`tmergemodtupdateresultR5t	setconfigR�tgraft(R5R<R�toptstwcparR�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�4s%(c@st|jd|j��j���}|s1dSxE|D]=}|j�s8tjtd�tj	|j����q8q8W|j
�d}t�}x!|D]}	|j|	j��q�Wt
j|���g|D]!}
tj|
�|�s�|
^q�}�j�����fd�}|jd�r3|d}n|j�}|jd�}
|jd�}|jd�}|j�j�|j�j�f}d}|s�tjd	td
d�}ntj|d|d
|d|d|d|
d|d|d|�}|j|�S(s�collapse the set of revisions from first to last as new one.

    Expected commit options are:
        - message
        - date
        - username
    Commit message is edited in all cases.

    This function works in memory.s%d::%ds!cannot fold into public change %sic@su|�krq�|}|j�}tj|||j�|j�dd|kdd|kd�j|��}|SdS(NtislinkR.tisexectxtcopied(tflagsRt
memfilectxtpathRNR�RA(R<R�R�tfctxR�tmctx(R�theadmftlastctx(s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyt	filectxfnfs
R%R�R�R�teditteditforms
histedit.foldR�R�tfilesR�R�N(tlisttsetR�RAtmutableRR�RRR�R�R�R�Rt
pathcopiesRtsamefiletmanifestR�R�R�tp2tgetcommiteditorR`Rtmemctxt	commitctx(R<tfirstctxR�t
commitoptst
skipprompttctxstctbaseR�R�R^R�R%R�R�R�R�R�tnew((R�R�R�s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytcollapseFsF
'
)	
.
$	cC@s|djdt�S(Ntmissing(RAtdirtyR`(R<((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyt
_isdirtywc�scC@s%tjtd�dtd���dS(Ns working copy has pending changesR�sYamend, commit, or revert them and run histedit --continue, or abort with histedit --abort(RtAbortR(((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyt
abortdirty�sc@s����fd�}|S(Nc@s��s�st��d}�r4tj|�nE�rJtj|�n/t��dkrltj|�n
tj|�||_�|_�|_	x�D]}|t
|<q�W|S(Nii(tAssertionErrorR1taddtinternalactionsR R2R3RVR'R%R$(R�RV(tinternalR%tpriorityR'(s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytwrap�s

			
((R'R%R�R�R�((R�R%R�R's4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRf�stpicktps
use commitR�cB@seZd�ZRS(cC@sr|j|j}|j�dj�|jjkr_|jjjdtj|j��|gfStt	|�j
�S(Nisnode %s unchanged
(R<RR�RR?R5tdebugR�tsuperR�R�(RGR�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR��s
"#
(RyRzR�(((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR��sR�tes!use commit, but stop for amendingcB@seZd�Zd�ZRS(cC@s}|j}||j}tj||jjdt�t|j||i�t	j
td�tj|j�dtd���dS(NR�s5Editing (%s), you may commit or record as needed now.R�s hg histedit --continue to resume(
R<RRR�RR?R`R�R5RR�RR�(RGR<R�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR��s	
	cC@stjdtdd�S(NR�R�s
histedit.edit(RR�R`(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR��s(RyRzR�R�(((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR��s	
tfoldR^s-use commit, but combine it with the one abovecB@sGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cC@s�tt|�j|||�|j}|sE||jj�d}n |jdkrXdS||j}|j�s�tj	t
d�tj|j����ndS(s/ Verifies semantic correctness of the fold ruleiR�R�Ns!cannot fold into public change %s(R�R�(RRR�R<RR�RVR�RR�RR�(RGR�R�R�R<R�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR��s	
c	C@sj|j}||j}t||�}|ddtj|j�d|j�d|j�d|j��dS(NR�sfold-temp-revision %sR�R�R�(R<RR�R�R�R�R�(RGR<R�R�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR��s	
cC@sV|j}|d}||j}|jj}|j�|kr}|jjtd�tj|j��||j|ffgfS||}td�|jd|j	�|j	��D��}|s|jjtd�tj|j�tj|�f�||j|j�ffgfS|j
�}|j|j��|j|j||||j�|�S(NR�s%s: empty changeset
cs@s|]}|j�VqdS(N(R(RcR�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pys	<genexpr>�ss(%d::. - %d)sI%s: cannot fold - working copy is not a descendant of previous commit %s
(
R<RRR?R5R�RR�R�R�R�tdiscardt
finishfold(RGR<R�R�R?t	parentctxt
newcommitst
middlecommits((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR��s(	


	#cC@stS(s�Returns true if the rule should skip the message editor.

        For example, 'fold' wants to show an editor, but 'rollup'
        doesn't want to.
        (Ra(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR��scC@stS(s�Returns true if the rule should merge messages of multiple changes.

        This exists mainly so that 'rollup' rules can be a subclass of
        'fold'.
        (R`(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyt
mergedescsscC@stS(s�Returns true if the rule should preserve the date of the first
        change.

        This exists mainly so that 'rollup' rules can be a subclass of
        'fold'.
        (Ra(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyt	firstdatescC@s+|j�dj�}tj||dt�i}|j�|d<|j�s]|j�}	nJdj|j�gg|D]}
||
j�^qv|j�g�d}	|	|d<|j	�r�|j
�|d<nt|j
�|j
��|d<|j�j
�}d|j�|j�f|d	<||d
<t|j�|j��}i|d6}
|jj|
d
��*t|||||d|j��}WdQX|dkr�|gfStj||dt�|j�|ff|j�|ff||ffg}x$|D]}|j||ff�q�W|||fS(Nit	overwriteR�s
***
s
R%R�s%s,%sR�R�R�s
new-commitRR�(R�s
new-commit(R�RRt
updaterepoRaR�R	R�R(R
R�R�R�R�RbR�R5R�R�R�RAR*(RGR5R<R�toldctxtnewnodetinternalchangestparentR�t
newmessageRdR�R�R�tnRFtich((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRs<-
 



(	RyRzR�R�R�R�R	R
R(((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�s								R�tbs:checkout changeset and apply further changesets from therecB@s,eZd�Zd�Zd�Zd�ZRS(cC@sK|jdj�|jkrAtj|j|jdtdt�n|j�S(NR�tbranchmergetforce(R<RR�R�RaR`R�(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�?s%cC@st�dS(N(R�(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�DscC@s|jd}|gfS(NR�(R<(RGtbasectx((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�Gs
cC@sV|j|krRtd�}tj||jtj|j�fdtd���ndS(Ns.%s "%s" changeset was an edited list candidateR�s&base must only use unlisted changesets(RRRR�RVR�(RGR�R�R�tmsg((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�Ks
(RyRzR�R�R�R�(((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�;s			t
_multifoldsvfold subclass used for when multiple folds happen in a row

    We only want to fire the editor for the folded message once when
    (say) four changes are folded down into a single change. This is
    similar to rollup, but we should preserve both messages so that
    when the last fold operation runs we can show the user all the
    commit messages in their editor.
    R�cB@seZd�ZRS(cC@stS(N(R`(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�_s(RyRzR�(((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRSstrollRds9like fold, but discard this commit's description and datetrollupcB@s#eZd�Zd�Zd�ZRS(cC@stS(N(Ra(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR	escC@stS(N(R`(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�hscC@stS(N(R`(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR
ks(RyRzR	R�R
(((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRbs		tdroptdsremove commit from historycB@seZd�ZRS(cC@s,|j|jj}||jt�fgfS(N(R<RR?RR�(RGR((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�qs(RyRzR�(((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRnstmesstms3edit commit message without changing commit contentR%cB@seZd�ZRS(cC@stjdtdd�S(NR�R�s
histedit.mess(RR�R`(RG((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�ys(RyRzR�(((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR%uscC@sx|d
kri}n|j|p$d|p-d�}tj|d
�d \}}|jtd�tj|��tj|||d
�\}}tj	|||�}	|r�g|D]}
|j
|
�^q�}ntj||	|d|�}|j
s	tjtd���nt|jd|j
��}t|�dkrftd	�}
td
�}tj|
d|��n||dj�S(sVutility function to find the first outgoing changeset

    Used by initialization codesdefault-pushRiscomparing with %s
Rsno outgoing ancestorss
roots(%ln)is&there are ambiguous outgoing revisionss&see 'hg help histedit' for more detailR�iN(RAt
expandpathRtparseurltstatusRRthidepasswordt
addbranchrevstpeertlookupRtfindcommonoutgoingR�RR�R�trevsR R(R5R<tremoteRR�tdesttbranchesR(tcheckouttotherR�toutgoingtrootsRR�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytfindoutgoing|s$	 %	R#tcommandss*read history edits from the specified filetFILER�tcontinues$continue an edit already in progresss	edit-plansedit remaining actions listtkR=s,don't strip old nodes after edit is completetabortsabort an edit in progresstoR.s#changesets not found in destinationRs.force outgoing even for unrelated repositoriesR�sfirst revision to be editedtREVs)[OPTIONS] ([ANCESTOR] | --outgoing [URL])thelpcategorycO@s_t|�}z8|j�|_|j�|_t|||||�Wdt|j|j�XdS(s<
interactively edit changeset history

    This command lets you edit a linear series of changesets (up to
    and including the working directory, which should be clean).
    You can:

    - `pick` to [re]order a changeset

    - `drop` to omit changeset

    - `mess` to reword the changeset commit message

    - `fold` to combine it with the preceding changeset (using the later date)

    - `roll` like fold, but discarding this commit's description and date

    - `edit` to edit this changeset (preserving date)

    - `base` to checkout changeset and apply further changesets from there

    There are a number of ways to select the root changeset:

    - Specify ANCESTOR directly

    - Use --outgoing -- it will be the first linear changeset not
      included in destination. (See :hg:`help config.paths.default-push`)

    - Otherwise, the value from the "histedit.defaultrev" config option
      is used as a revset to select the base revision when ANCESTOR is not
      specified. The first revision returned by the revset is used. By
      default, this selects the editable history that is unique to the
      ancestry of the working directory.

    .. container:: verbose

       If you use --outgoing, this command will abort if there are ambiguous
       outgoing revisions. For example, if there are multiple branches
       containing outgoing revisions.

       Use "min(outgoing() and ::.)" or similar revset specification
       instead of --outgoing to specify edit target revision exactly in
       such ambiguous situation. See :hg:`help revsets` for detail about
       selecting revisions.

    .. container:: verbose

       Examples:

         - A number of changes have been made.
           Revision 3 is no longer needed.

           Start history editing from revision 3::

             hg histedit -r 3

           An editor opens, containing the list of revisions,
           with specific actions specified::

             pick 5339bf82f0ca 3 Zworgle the foobar
             pick 8ef592ce7cc4 4 Bedazzle the zerlog
             pick 0a9639fcda9d 5 Morgify the cromulancy

           Additional information about the possible actions
           to take appears below the list of revisions.

           To remove revision 3 from the history,
           its action (at the beginning of the relevant line)
           is changed to 'drop'::

             drop 5339bf82f0ca 3 Zworgle the foobar
             pick 8ef592ce7cc4 4 Bedazzle the zerlog
             pick 0a9639fcda9d 5 Morgify the cromulancy

         - A number of changes have been made.
           Revision 2 and 4 need to be swapped.

           Start history editing from revision 2::

             hg histedit -r 2

           An editor opens, containing the list of revisions,
           with specific actions specified::

             pick 252a1af424ad 2 Blorb a morgwazzle
             pick 5339bf82f0ca 3 Zworgle the foobar
             pick 8ef592ce7cc4 4 Bedazzle the zerlog

           To swap revision 2 and 4, its lines are swapped
           in the editor::

             pick 8ef592ce7cc4 4 Bedazzle the zerlog
             pick 5339bf82f0ca 3 Zworgle the foobar
             pick 252a1af424ad 2 Blorb a morgwazzle

    Returns 0 on success, 1 if user intervention is required (not only
    for intentional "edit" command, but also for resolving unexpected
    conflicts).
    N(R;R@Rt	_histedittrelease(R5R<tfreeargsR�R((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�srR�cC@s=|jd�rtS|jd�r&tS|jd�r9tStS(NR3R5t	edit_plan(R�tgoalcontinuet	goalaborttgoaleditplantgoalnew(R�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyt_getgoalscC@sX|dkr2|jd��|jj�SWdQXn"t|d��}|j�SWdQXdS(Nt-Rtrb(ttimeblockedsectiontfinROtopen(R5R�R^((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyt	_readfiles
cC@sPt|dd�}|r9|jr9tjtd���n|jd�}	|jd�}
|jd�}|jd�}|r�|	r�tjtd���n|dkr�t|	|||||
f�rLtjtd	���qLnm|dkr!t|	||||
f�rLtjtd
���qLn+|dkr]t|	||f�rLtjtd���qLn�|j�r�tjtd
���n|	r�|r�tjtd���nt	|�dkrLtjtd���qLnz|j
|�t	|�dkr"tj||�}
|
dk	r"|j
|
�q"nt	|�dkrLtjtd���ndS(Ntmqssource has mq patches appliedR.R<R5Rs$--force only allowed with --outgoingR3s$no arguments allowed with --continues!no arguments allowed with --aborts	edit-plans1only --commands argument allowed with --edit-plans;history edit already in progress, try --continue or --aborts$no revisions allowed with --outgoingis.only one repo argument allowed with --outgoingis/histedit requires exactly one ancestor revision(tgetattrRAtappliedRR�RR�tanyRvR R+RtdesthisteditR*(R5R<RR;R�tgoalRIR(RHtoutgteditplanR5RR((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyt
_validateargs&sD

c
	O@s`tj|�}|jd|�}|j�t|�}|jdg�}|jdd�}|jdd�}	|jdt�|_t	|||||||	|�|t
kr�|j�t|||�}nb|t
kr�t||||	�dS|tkrt|||d|�dSt||||||�t|||�t||||�|j�dS(	NRR�R5shistory-editing-backupR1R#R=tnobackup(Rtbyteskwargst	formattert	startitemRAR�R4RaR=RPR=ROtbootstrapcontinueR?t_edithisteditplanR>t_aborthisteditt_newhisteditt_continuehisteditt_finishhistedittend(
R5R<RR;R�tfmRMR(RQRI((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR9Ss,

cC@s�|j}xktt||dd
g��D]I\}\}}|jdkr+|r+|jdkr+t|j|_q+q+W|j�d
}|jdd�r�|j	d�}n|j
td�dtd�dt|j��}|��t
j|���x�|jr�|jd	|�|jd
}	|jd|	j��|jd|	j|	j�f�|	j�\}
}|
j�|_|jj|�|jjd
�q�WWd
QXWd
QX|j�d
S(s�This function runs after either:
    - bootstrapcontinue (if the goal is 'continue')
    - _newhistedit (if the goal is 'new')
    iRRRteditingtunittchangesttotalR]ititemshistedit: processing %s %s
N(R/t	enumeratetzipRARVRt	__class__R_R4ttransactiontmakeprogressRR Rtacceptinterventiont	incrementR�RR�RR?RFR+tpop(R5R<RR/tidxRftnextactR]tprogresstactobjRtreplacement_((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRYrs0
-$

 c@sMtj||jdt�t|�\}}}}|r�x�|j�D]�\}}	|	ss|jdtj|��qD|jdtj|�tj|	d�f�t	|	�dkrDd}
x/|	dD] }|j|
tj|��q�WqDqDWn|j
s|rt||j|�qni}x'|D]}||kr&d||<q&q&W|j
�jj��fd�|j�D�}tj||d�|j�|j�|j}|��fd	�|j�D�d
ddd
�}
|jd|
�|j�tjj|jd��r$tj|jd��n|jjd�rI|jjd�ndS(s7This action runs when histedit is finishing its sessionRshistedit: %s is dropped
shistedit: %s is replaced by %s
iis'histedit:                            %sc@sGi|]=\}}|�krt�fd�|D��r||�qS(c3@s|]}|�kVqdS(N((RcR(tnodemap(s4/usr/lib64/python2.7/site-packages/hgext/histedit.pys	<genexpr>�s(R�(RcR4R!(Ro(s4/usr/lib64/python2.7/site-packages/hgext/histedit.pys
<dictcomp>�s		Rc@sJi|]@\}}�g|D]}�|�^qdd��|��qS(tnameR((RctoldntnewnR(tflthf(s4/usr/lib64/python2.7/site-packages/hgext/histedit.pys
<dictcomp>�s	Rtoldnodetvaluetnewnodestnodechangestundoshistedit-last-edit.txtN((RRR?Ratprocessreplacementt	iteritemsRRR�R R=tmovetopmostbookmarksR>t
unfilteredt	changelogRotitemsRtcleanupnodesthexfunct
formatlistt
formatdictRNRxtosR�RJtsjoinRwRP(R5R<RR\tmappingttmpnodestcreatedtntmtprectsuccsRRtfdRx((RsRtRos4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRZ�sD	$(	
			
c
C@s�z�yR|j�t|�\}}}}|jdtj|j��|j|kr�|jr�|jj|j�}t	j
||�}tj|||�}	|j
d��*}
tj||	|
dddd|�WdQXtj|�n|j�jd|j||B�r(t	j||jdtd	t�nt|||d
|�t|||d
|�Wn6tk
r�|j�r�|jtd��n�nXWd|j�XdS(Nsrestore wc to old parent %s
shistedit.aborttsourceRturlsbundle:sparents() and (%n  or %ln::)t
show_statsR�RQsrwarning: encountered an exception during histedit --abort; the repository may not have been completely cleaned up
(RORzRRR�R>RBRPR(RtopenpathR	t
readbundleReRtapplybundleR�tremoveR}R(R?tcleanR`tcleanupnodet	ExceptionRvR�RRx(R5R<RRQt__tleafsR�RBR^tgenR]((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRW�s0
	"
cC@s�|j�|sUt|tj|j�tj|j��}t|||j|�}nt||�}t	||�}g|jD]}|jr}||j^q}}t
|||||�||_|j�dS(N(ROR:RR�R?R>t
ruleeditorR/RGRMtwarnverifyactionsR_(R5R<RRItcommentR/tactR�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRV�s
)	cC@s�|jd�}|jdd�}|jd�}tj|�tj|�|jj�\}	}
|r�|rx|d}nd}t|||||�}n^t|j	dt
j||���}
t|
�dkr�t
jtd���n|
dj�}t|||	|j�}|s:t
jtd	�tj|���ng|D]}||^qA}|s�t|tj|�tj|	��}g|D]}t||�^q�}t||||�}nt||�}t||�}t|||||�||j�dj�}||_||_|	|_g|_|jd
dt|�dt|��d}tj |tj!�s�t"j#||g|	g|d
�}n||_$dS(
NR.R1R#Ris
roots(%ld)is9The specified revisions must have exactly one common roots*%s is not an ancestor of working directoryRs%d actions to histeditthistedit_num_actions(%R�Rtcheckunfinishedt
bailifchangedR�R�RAR0R�R�RtrevrangeR RR�RRtbetweenR=R�R:R�R�RGRMR�R?R/R>RFtlogRt	isenabledtcreatemarkersoptRtbackupbundleRB(R5R<RR(R;R�RNRIRR>temptyR)troottrrRdR�R�R/R?RB((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRX�sN


$$"				
cC@s/|j�pd}|r+|j�d}n|S(NR#i(R�t
splitlines(R�R�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�2scC@s�|j}tjj|�}tj|�|jr�|jjd�}t|�rr|j	�t|�rrt
�qrn|j�\}}|j�|_
|jj|�n|S(Ni(R<R�t
mergestateRORtcheckunresolvedR/RiR�R�R�R�RR?RFR+(R5RR�R<tmsRmRRF((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRU:s	
	

cC@s�|jd||�}|r�|r�tj|tj�re|jd||�retjtd���n|jd|�r�tjtd���n||j�}|j�s�tjtd�|dtd���q�nt	j
|jj|�S(	soselect and validate the set of revision to edit

    When keep is false, the specified set can't have children.s%n::%ns(%ld::) - (%ld)s?can only histedit a changeset together with all its descendantss(%ld) and merge()s(cannot edit history that contains mergess cannot edit public changeset: %sR�s see 'hg help phases' for details(
R(RR�tallowunstableoptRR�RR6R�RtmaplistR~R(R<toldR�R=R(R�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�Os
cC@s|jjdd�rxtj�}x|D]}||j}t|�}|jdd�dj�}t}	|j	d�r$|d }|t
tBtBkr$||_
|t|�dj�}
xett|j���D]H\}}||j}
t|
�}||
kr�t}	|j|�Pq�q�Wq$n|	s(g||<q(q(Wg}x4|j�D]#\}}|j|�||7}qNWndjg|D]}|j�^q��}|d	7}||7}|j||j�id
d6d|jd
d
�}|jdd��}|j|�WdQX|S(seopen an editor to edit rules

    rules are in the format [ [act, ctx], ...] like in state.rules
    Rshistedit.autoverbR|iit!i����s
s

RtprefixtrepopathRfshistedit-last-edit.txttwbN(R5R4RtsortdictRR�R&tlowerRatendswithR1R2R3RVR tlstriptreversedR�R{R`R*R(R�R�tusernameR�RPR_(R<R5R/teditcommenttnewactR�R�R�tfwordtaddedttsumtnaR.tactxtasumRIR^((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�asB


	%


(

cC@s�gd�|j�D�D]"}|r|jd�r|^q}g}x�|D]�}d|krztjtd�|��n|jdd�\}}|tkr�tjtd�|��nt|j||�}|j|�qLW|S(sARead the histedit rules string and return list of action objects cs@s|]}|j�VqdS(N(R}(RcRd((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pys	<genexpr>�st#R|smalformed line "%s"isunknown action "%s"(	R�RQRR�RR&R$R�R*(RIRR.R/RdRVRWRf((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRM�s"
cC@sZyt|||�Wn?tjk
rU|jjd�rO|jtd��n�nXdS(Nshistedit-last-edit.txts=warning: histedit rules saved to: .hg/histedit-last-edit.txt
(t
verifyactionsRR�RPRJR�R(R5R<R/RR�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR��sc
C@s�td�|D��}t�}d
}|ra|djdkratjtd�|dj��nxI|D]A}|j|||�|}|jd
k	rh|j|j�qhqhWt	||�}|j
jjdd�r:t
|�dkrtjtd�d	td
���ng|D]}t||�^q}	|	|d*nL|r�tjtd�tj|d�d	td�tj|d���nd
S(s�Verify that there exists exactly one action per given changeset and
    other constraints.

    Will abort if there are to many or too few rules, a malformed rule,
    or a rule on a changeset outside of the user-given range.
    cs@s|]}|j�VqdS(N(R(RcR�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pys	<genexpr>�siRRs$first changeset cannot use verb "%s"RRsno rules providedR�s%use strip extension to remove commitssmissing rules for changeset %ss@use "drop %s" to discard, see also: 'hg help -e histedit.config'N(RR(R�RARVRR�RR�RR�R)R<R5R4R RR�(
R/RR�R�R�R�RfR�Rtdrops((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR��s.	
"
	cC@sStj|tj�s|S|j�}|jj}|j}t|�}g|D]}|d^qM}t�j	|�}t|�}	x�|	rN|	j
�}
|j|
�dk}|j
j|
d�}|r�|r�|j|
df�nxe|D]]}
|
d}|j|
|f�x7|D]/}||kr|j|�|	j|�qqWq�Wq�W|S(sAdjust replacements from obsolescence markers

    Replacements structure is originally generated based on
    histedit's state and does not account for changes that are
    not recorded there. This function fixes that by adding
    data read from obsolescence markersiN(((RR�R�R}R~RotobsstoreR�R�tunionRiR�RAt
successorsR*R�(R<toldreplacementstunfitnmR�tnewreplacementsRdtoldsuccst	seensuccstsuccstocheckRR�tmarkerstmarkertnsuccstnsucc((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytadjustreplacementsfrommarkers�s.		




cC@st|j|j�}t�}t�}i}xT|D]L}|j|d�|j|d�|j|dt��j|d�q4W||}||@}t|�}i}	x�|rBx�t|�D]{}
||
}xht|�D]C}||kr�Pq�||	kr�|j|�|j|	|�q�q�W||	|
<|j|
�q�Wq�Wx|D]
}
|	|
=qJW|jj	j
}x3|	j�D]%\}}t|d|j
�|	|<qwW|r�t|d|jj	j�d}nG|	s�d}n8|jj	j}|jt|	d|�dj�j�}|	|||fS(s�process the list of replacements to return

    1) the final mapping between original and created nodes
    2) the list of temporary node created by histedit
    3) the list of new commit created by histeditiiRi����N(R�R<RFR�R�R�t
setdefaultR�R�R~RoRR)R�R�RAR�R(RRFtallsuccstreplacedtfullmappingtrepR�R�t	toproceedtfinalR�R�tsRR�R�t
newtopmostRd((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyRz�sF		
(

	



"	)cC@s�|s|rdS|j|�}|r�|j��c|jd��M}|j}g}x!|D]}|j||f�q\W|j|||�WdQXWdQXndS(s�Move bookmark from oldtopmost to newly created topmost

    This is arguably a feature and we may only want that for the active
    bookmark. But the behavior is kept compatible with the old version for now.
    NR(t
nodebookmarksRRet
_bookmarksR*R�(R<t
oldtopmostR�t	oldbmarksR]tmarksR_Rp((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR|6s
	
c
@s�|j���|j�}|jj�t�fd�|D��}g|jd|�D]}|j�^qT}|r�|}tj|||d|�nWdQXdS(sdstrip a group of nodes from the repository

    The set of node to strip may contains unknown nodes.c3@s!|]}|�kr|VqdS(N((RcR(R�(s4/usr/lib64/python2.7/site-packages/hgext/histedit.pys	<genexpr>Sss
roots(%ln)tbackupN(	RR}R~RoR)R�RRR}(R5R<tnodesRQR�R/R�((R�s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyR�Gs
+c	O@s�t|t�r|g}nt|�}|j�r�|j�d�|jD�}|t|�@}|r�tjt	d�dj
d�|D����q�n||||||�S(NcS@s"h|]}|jr|j�qS((R(RcRf((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pys	<setcomp>_s	s$histedit in progress, can't strip %ss, cs@s|]}tj|�VqdS(N(RR�(RcR�((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pys	<genexpr>ds(t
isinstancetstrR;RvROR/R�RR�RR((	torigR5R<tnodelisttargsR�Rthistedit_nodestcommon_nodes((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytstripwrapperYs

#R}cC@slt|�}|j�sdS|j�|jrh|jtd�|jtd�d�t|j��ndS(Ns!hist:   %s (histedit --continue)
s%d remainingshistedit.remaining(R;RvROR/R_RtlabelR (R5R<R((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytsummaryhookis
	cC@s^tjjdt�tjjdtttd�td�g�tj	jdtd�g�dS(NRshistedit-stateshistedit in progresss5use 'hg histedit --continue' or 'hg histedit --abort'shg histedit --continue(
RtsummaryhooksR�R�tunfinishedstatesR*RaR`Rtafterresolvedstates(R5((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pytextsetupts		(bt__doc__t
__future__RR�tmercurial.i18nRt	mercurialRRRRRRRR	R
RRR
R�RRRRRRRRRCRtmercurial.utilsRRSR:tcmdtabletcommandtconfigtablet
configitemRaRAt
testedwithR$R�R1R2R3R�R:tobjectR;R{R�R�R�R�R�RfR`R�R�RR�RRRR%R0t
formatteroptstCATEGORY_CHANGE_MANAGEMENTRR=R>R?R@RARGRPR9RYRZRWRVRXR�RUR�R�RMR�R�R�RzR|R�R�twrapfunctionR�R�(((s4/usr/lib64/python2.7/site-packages/hgext/histedit.pyt<module>�s��							-y		C					v			
				!l				-		*	/!		6			5				&	#	=