-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/mercurial/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/mercurial/hbisect.pyc

ó
Ì\,Tc@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|ƒ}|s+t|dƒdkrt|dƒdkr|d|dkrtjt	dƒƒ‚ntjt	dƒ|t
|ƒfƒ‚ni}	tj|gƒ}
g}x–|
rá|
jƒ}||gkrL|j
|ƒx`ˆ|ƒD]O}
|
dkrˆ|
|	krº|	|
j
|ƒq×|g|	|
<|
j
|
ƒqˆqˆWqLqLW|jƒt|ƒ}g|D]$}||krÿ||krÿ|^qÿ}|dks<|reg|D]}ˆj|ƒ^qCd	|fS|d
}d}d}tƒ}xB|D]:}||kr¼|j|	j|gƒƒq‹n||pÌ|g}d||<t|ƒ}||}t||ƒ}||kr5||kr5|}|}||kr5Pq5n||krl||krl|j|	j|gƒƒq‹nxV|	j|gƒD]B}||r°tt|||ƒƒ||<q||g||<qWq‹W|dk	sÛt‚ˆ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(s5/usr/lib/python2.7/dist-packages/mercurial/hbisect.pytbuildancestorss&("


R	R
is+starting revisions are not directly relateds)inconsistent state, %s:%s is good and badiÿÿÿÿiiN(t
parentrevstsetRtFalsetTruetnodeRtutiltAbortRRtdequetpoplefttappendtsortRtupdatetgetRtlisttAssertionError(RtstateRRRR
RRR	tchildrentvisitt
candidatesRRttottct	unskippedtperfecttbest_revtbest_lentpoisontatxtytvaluet	best_node((RRs5/usr/lib/python2.7/dist-packages/mercurial/hbisect.pytbisectsz	, ,	


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((s5/usr/lib/python2.7/dist-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
(R9RtwlocktsortedtwriteRtclosetrelease(R<R#tfRBR>R((s5/usr/lib/python2.7/dist-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	RR4s9( 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#RIt_tRMRNtskipsRJRKtibatigaRL((s5/usr/lib/python2.7/dist-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	RtskippedRKR4RLRMsgood (implicit)RNsbad (implicit)(RRR RR(R<RR((s5/usr/lib/python2.7/dist-packages/mercurial/hbisect.pytlabelâs 


*



cCs|r|djƒSdS(Ni(tupperR(RX((s5/usr/lib/python2.7/dist-packages/mercurial/hbisect.pyt
shortlabels(R5RPti18nRRRRRR3R?RHR RXRZ(((s5/usr/lib/python2.7/dist-packages/mercurial/hbisect.pyt<module>s	w			C	

Copyright © 2017 || Recoded By Mr.Bumblebee