KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : andertr9 ( 1047)
PHP Version : 8.2.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/mercurial/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/mercurial/hbisect.pyo
�
Hq�Qc@s�ddlZddlZddlmZddlmZmZddlZd�Zd�Z	d�Z
d�Zd�Zd	�Z
dS(
i����N(t_(tshortthexcs��j�tg|dD]}�j|�^q�}��fd�}t}||d|d�\}}|s�t}||d|d�\}}n�j|�}|st|d�dkr�t|d�dkr�tjt	d���ntjt	d�|t
|�f��ni}	tj|g�}
g}x�|
r�|
j�}||gkr8|j
|�x`�|�D]O}
|
dkrt|
|	kr�|	|
j
|�q�|g|	|
<|
j
|
�qtqtWq8q8W|j�t|�}g|D]$}||kr�||kr�|^q�}|dks(|rQg|D]}�j|�^q/d	|fS|d
}d}d}t�}xB|D]:}||kr�|j|	j|g��qwn||p�|g}d||<t|�}||}t||�}||kr!||kr!|}|}||kr!Pq!n||krX||krX|j|	j|g��qwnxV|	j|g�D]B}||r�tt|||��||<qk||g||<qkWqwW�j|�}|g||fS(s�find the next node (if any) for testing during a bisect search.
    returns a (nodes, number, good) tuple.

    'nodes' is the final result of the bisect if 'number' is 0.
    Otherwise 'number' indicates the remaining possible candidates for
    the search and 'nodes' contains the next bisect target.
    'good' is True if bisect is searching for a first good changeset, False
    if searching for a first bad one.
    tskipc	sptg|D]}�j|�^q
�}g|D]}�j|�^q/}t|�}dgt��d}x|D]}g||<qtWxO�j|d�D]:}x1�|�D]#}||gkr�g||<q�q�Wq�Wx|D]}d||<q�WxT�jt��|�D]:}||dkrx!�|�D]}d||<q1WqqW||dkrf|dfS||fS(Ni(tmintrevtNonetlentrevs(	tbadtgoodtntbadrevtgoodrevstgoodrevt	ancestorsRtprev(t	changelogt	clparents(s7/usr/lib64/python2.7/site-packages/mercurial/hbisect.pytbuildancestorss&("


R	R
is+starting revisions are not directly relateds)inconsistent state, %s:%s is good and badi����iiN(t
parentrevstsetRtFalsetTruetnodeRtutiltAbortRRtdequetpoplefttappendtsortRtupdatetgetRtlist(RtstateRRRR
RRR	tchildrentvisitt
candidatesRRttottct	unskippedtperfecttbest_revtbest_lentpoisontatxtytvaluet	best_node((RRs7/usr/lib64/python2.7/site-packages/mercurial/hbisect.pytbisectsv	, ,	


1)
	



!cCs�igd6gd6gd6gd6}tjj|jd��r�xx|jd�D]d}|d j�\}}|j|�}||kr�tjt	d�|��n||j
|�qMWn|S(NtcurrentR
R	Rsbisect.statei����sunknown bisect kind %s(tostpathtexiststjointopenertsplittlookupRRRR(trepoR"tltkindR((s7/usr/lib64/python2.7/site-packages/mercurial/hbisect.pyt
load_state�s"cCs�|jdddt�}|j�}zWxFt|�D]8}x/||D]#}|jd|t|�f�qEWq4W|j�Wd|j�XdS(Nsbisect.statetwt
atomictemps%s %s
(R8RtwlocktsortedtwriteRtclosetrelease(R;R"tfRAR=R((s7/usr/lib64/python2.7/site-packages/mercurial/hbisect.pyt
save_state�s%c
Csht|�}|dkr/t|jj||�Sd}|jd�}t|�dkred}d	}nd
}d}d}d
|||f}d||f}	d}
d}d|
||f}|dkr�|j|�S|dkr�|j|�S|dkr|j|	�S|dkr|j|�S|dkr6|j|�S|dkrO|j|�Stjtd���dS(s
    Return a list of revision(s) that match the given status:

    - ``good``, ``bad``, ``skip``: csets explicitly marked as good/bad/skip
    - ``goods``, ``bads``      : csets topologically good/bad
    - ``range``              : csets taking part in the bisection
    - ``pruned``             : csets that are goods, bads or skipped
    - ``untested``           : csets whose fate is yet unknown
    - ``ignored``            : csets ignored due to DAG topology
    - ``current``            : the cset currently being bisected
    R
R	RR3s9( bisect(bad)::bisect(good) | bisect(good)::bisect(bad) )sbisect(good)::bisect(bad)isbisect(good)::s
::bisect(bad)s::bisect(good)s
bisect(bad)::sbisect(skip)s( (%s) | (%s) | (%s) )s( (%s) - (%s) )s::bisect(bad) - ::bisect(good)s::bisect(good) - ::bisect(bad)s( ( (%s) | (%s) ) - (%s) )trangetprunedtuntestedtignoredtgoodstbadssinvalid bisect stateN(sgoodsbadsskipscurrent(	R>tmapRRRRterrort
ParseErrorR(
R;tstatusR"RHt_tRLRMtskipsRIRJtibatigaRK((s7/usr/lib64/python2.7/site-packages/mercurial/hbisect.pyR �s:
	





cCs|jj|�}|t|d�kr1td�S|t|d�krPtd�S|t|d�krotd�S|t|d�ks�|t|d�kr�td�S|t|d�kr�td�S|t|d�kr�td	�S|t|d
�krtd�SdS(NR
R	RtskippedRJR3RKRLsgood (implicit)RMsbad (implicit)(RRR RR(R;RR((s7/usr/lib64/python2.7/site-packages/mercurial/hbisect.pytlabel�s 


*



cCs|r|dj�SdS(Ni(tupperR(RW((s7/usr/lib64/python2.7/site-packages/mercurial/hbisect.pyt
shortlabel�s(R4ROti18nRRRRRR2R>RGR RWRY(((s7/usr/lib64/python2.7/site-packages/mercurial/hbisect.pyt<module>s	v			C	

Anon7 - 2021