403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/breezy/__pycache__/bisect.cpython-313.pyc
�

p��g�@���SrSSKrSSKJr SSKJr SSKJr SSK	J
r
 SSKJr SS	K
Jr S
rSr"SS
5r"SS5r"SS\5rg)zbisect command implementations.�N�)�revision)�Command)�
ControlDir)�CommandError)�Option)�note�bisect�bisect_revidc�T�\rSrSrSr\4SjrSrSrSr	Sr
SrS	rS
r
SrSrg
)�
BisectCurrent� z/Bisect class for managing the current revision.c�^�X lXlURR5UlURRRU5(a9URRR
U5R5UlgURR5Ulg�N)
�	_filename�_controldir�open_branch�_branch�control_transport�has�	get_bytes�strip�_revid�
last_revision��self�
controldir�filenames   �//usr/lib/python3/dist-packages/breezy/bisect.py�__init__�BisectCurrent.__init__#s{��!��%���'�'�3�3�5������-�-�1�1�(�;�;��*�*�<�<�F�F�x�P�V�V�X�D�K��,�,�4�4�6�D�K�c�~�URRRURURS-5 g)zSave the current revision.�
N)rr�	put_bytesrr�rs r�_save�BisectCurrent._save,s.�����*�*�4�4��N�N�D�K�K�%�/�	
r"c��UR$)zReturn the current revision id.)rr&s r�get_current_revid�BisectCurrent.get_current_revid2s���{�{�r"c�L�URRUR5$)z.Return the current revision number as a tuple.)r�revision_id_to_dotted_revnorr&s r�get_current_revno�BisectCurrent.get_current_revno6s���|�|�7�7����D�Dr"c���URRnUR5 URUR/5RURS5nSSS5 U$!,(df   W$=f)z6Return the IDs of the current revision's predecessors.N)r�
repository�	lock_read�get_parent_mapr�get)r�repo�retvals   r�get_parent_revids�BisectCurrent.get_parent_revids:sZ���|�|�&�&��
�^�^�
��(�(�$�+�+��7�;�;�D�K�K��N�F���
��
��
�s�7A(�(
A7c�:�[UR55S:�$)z&Is the current revision a merge point?r��lenr7r&s r�is_merge_point�BisectCurrent.is_merge_pointAs���4�)�)�+�,�q�0�0r"c�H�URRRUR5nSR	UR5Vs/sHn[
U5PM sn5nURSRXBRUR55 gs snf)z1Write the current revision's log entry to a file.�.zOn revision {} ({}):
{}
N)rr1�get_revisionr�joinr.�str�write�format�revision_id�message)r�outf�rev�x�revnos     r�show_rev_log�BisectCurrent.show_rev_logEsv���l�l�%�%�2�2�4�;�;�?�����$�*@�*@�*B�C�*B�Q�#�a�&�*B�C�D���
�
�(�/�/�������T�	
��Ds�
Bc��URR5n[U[5(aURRU5nO=[U[5(a(USRUR5RnURSURRRU5S5 Xl
UR5 g)z/Switch the current revision to the given revid.rNF)r�open_workingtree�
isinstance�intr�
get_rev_id�list�
in_history�branch�rev_id�revertr1�
revision_treerr')r�revid�workings   r�switch�BisectCurrent.switchMs����"�"�3�3�5���e�S�!�!��L�L�+�+�E�2�E�
��t�
$�
$��!�H�'�'����7�>�>�E����t�W�^�^�6�6�D�D�U�K�U�S����
�
�r"c��URR5nURR5nURRRU5nUR
SUS5 URRR[5(a*URRR[5 gg)z5Revert bisection, setting the working tree to normal.NF)rrNrTrr1rWrVrr�BISECT_REV_PATH�delete)rrY�last_rev�rev_trees    r�reset�BisectCurrent.resetXs����"�"�3�3�5���>�>�/�/�1���>�>�,�,�:�:�8�D�����t�X�u�-����-�-�1�1�/�B�B����.�.�5�5�o�F�Cr")rrrrN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r]r r'r*r.r7r<rKrZra�__static_attributes__�r"rr
r
 s7��9�,;�7�
��E��1�
�	�Gr"r
c�|�\rSrSrSr\4SjrSrSrSSjr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrg)�	BisectLog�bzBisect log file handler.c��/Ul[U5UlXlSUlSUlSUlSUlX lUR5 gr)
�_itemsr
�_currentrr�_high_revid�
_low_revid�
_middle_revidr�loadrs   rr �BisectLog.__init__esG�����%�j�1��
�%�����������!���!���	�	�r"c��UR(a/URRRUR5$[R
$)zOpen log file for reading.)rrrr4�sys�stdinr&s r�_open_for_read�BisectLog._open_for_readps4���>�>��#�#�5�5�9�9�$�.�.�I�I��9�9�r"c�f�UR(d URR5Ulgg)zLoad bzr information.N)rrrr&s r�
_load_tree�BisectLog._load_treews$���|�|��+�+�7�7�9�D�L�r"Nc��UR5 SUlU(dURR5nOUnURRnUR5 UR
5nURU[R45nSnSn/nUH�n	URSU	5 URV
s/sHn
U
SU	:XdMU
SS;dMU
SPM  nn
U(dMS[U5S:�a[SRU	55eUSS:XaU	n/nM�USS:XdM�U	nUS	 O U(dUnU(dURRS5nSSS5 [W5S-nUS:aSn
OUS-S-
n
[U5S:�a
X�UlOWUlWUlWUlgs sn
f!,(df   Na=f)	z2Find the current revision range, and the midpoint.Nrr��yes�nozrevision {} duplicatedrr��)r{rrrrr1r2�	get_graph�iter_lefthand_ancestry�
_mod_revision�
NULL_REVISION�insertrnr;�RuntimeErrorrDrQrprq)r�branch_last_rev�
last_revidr5�graph�rev_sequence�
high_revid�	low_revid�between_revsrrI�matches�spread�middle_indexs              r�_find_range_and_middle� BisectLog._find_range_and_middle|s�������!�������3�3�5�J�(�J��|�|�&�&��
�^�^�
��N�N�$�E� �7�7��]�8�8�:��L��J��I��L�(���#�#�A�x�0�"�[�[��(����t�x�'��,-�a�D�M�,A��A�a�D�(���
���w�<�!�#�&�'?�'F�'F�x�'P�Q�Q��1�:��&�!)�J�#%�L��Q�Z�4�'� (�I�$�Q���#)�&�'�
�� �L�L�3�3�A�6�	�=�H�\�"�Q�&���A�:��L�"�a�K�1�,�L��|��q� �!-�!;�D��!+�D��%���#����M��
�s2�"AG�?
F<�F<�	F<�$A
G�24G�<G�
Gc�l�URRU5 URRUS9 g)z)Move the working tree to the given revno.�rGN)rorZrK)rrJrGs   r�_switch_wc_to_revno�BisectLog._switch_wc_to_revno�s)���
�
���U�#��
�
�"�"��"�-r"c��UR5(dkUS:waHUURVs/sHo3SS;dM
USPM sn;a[SRU55eURR	X45 ggs snf)z*Set the bisect status for the given revid.�donerr~rz attempting to add revid {} twiceN)�is_donernr�rD�append)rrX�statusrIs    r�_set_status�BisectLog._set_status�s}���|�|�~�~����E�"�k�k�.�)��q�T�]�-B���!��k�.�%�#�#E�#L�#L�U�#S�T�T��K�K�����/���.s
�B�	Bc��Xlg)zSwitch log files.N)r)rrs  r�change_file_name�BisectLog.change_file_name�s��!�r"c�(�/UlURRRUR5(aWUR5nUH@nUR
5up4URRX4RS545 MB gg)zLoad the bisection log.�asciiN)	rnrrrrrx�splitr��decode)r�revlog�linerXr�s     rrs�BisectLog.load�ss��������-�-�1�1�$�.�.�A�A��(�(�*�F���"&�*�*�,������"�"�E�=�=��+A�#B�C��Br"c�
�SRSUR55nUR(a1URRRURU5 g[RRU5 g)zSave the bisection log.r"c3�P# �UHupSXRS54-v� M g7f)s%s %s
r�N)�encode)�.0rXr�s   r�	<genexpr>�!BisectLog.save.<locals>.<genexpr>�s*���
�#.����5�-�-��"8�9�
9�#.�s�$&N)	rArnrrrr%rv�stdoutrC)r�contentss  r�save�BisectLog.save�s\���8�8�
�#'�;�;�
�
���>�>����.�.�8�8�����R��J�J���X�&r"c�j�[UR5S:�=(a URSSS:H$)z.Report whether we've found the right revision.r���rr�)r;rnr&s rr��BisectLog.is_done�s-���4�;�;��!�#�D����B���(:�f�(D�Dr"c��UR5 USRUR5RnUR	X25 g)z5Set the bisection status for the revision in revspec.rN)r{rSrrUr�)r�revspecr�rXs    r�set_status_from_revspec�!BisectLog.set_status_from_revspec�s8��������
�%�%�d�l�l�3�:�:������'r"c�X�URURR5U5 g)z7Set the current revision to the given bisection status.N)r�ror*)rr�s  r�set_current�BisectLog.set_current�s��������8�8�:�F�Cr"c�<�[URU55S:�$)Nrr:)rrXs  rr<�BisectLog.is_merge_point�s���4�)�)�%�0�1�A�5�5r"c���URRnUR5 URU/5R	US5nSSS5 U$!,(df   W$=fr)rr1r2r3r4)rrXr5r6s    rr7�BisectLog.get_parent_revids�sR���|�|�&�&��
�^�^�
��(�(�%��1�5�5�e�T�B�F���
��
��
�s�#A�
A#c���UR5 URUR:XdURUR:Xa�UR	UR5(a�URUR5H%nX R:XaMURU5  O URUR:XdURUR:Xa"UR	UR5(aM�UR
URU5 URUR:XdURUR:XaURS5 gg)z4Using the current revision's status, do a bisection.r�N)r�rrrprqr<r7r�r�)rrG�parents   rr
�BisectLog.bisect�s���#�#�%�
���$�"2�"2�2��!�!�T�_�_�4��!�!�$�"4�"4�5�5��0�0��1C�1C�D���_�_�,���/�/��7��E�
���$�"2�"2�2��!�!�T�_�_�4��!�!�$�"4�"4�5�5�	
� � ��!3�!3�T�:����$�"2�"2�2��!�!�T�_�_�4����V�$�5r")rrrorrprnrqrrr)rcrdrerfrg�BISECT_INFO_PATHr rxr{r�r�r�r�rsr�r�r�r�r<r7r
rhrir"rrkrkbsW��"�,<�	��:�
;$�z.�
0�"�D�	'�E�(�D�6��%r"rkc�~�\rSrSrSrSS/r\"SSS\S9S	S
/rSr	Sr
SSjrSrSr
SrSrSrSrSrSrSrg
)�
cmd_bisecti
a�Find an interesting commit using a binary search.

Bisecting, in a nutshell, is a way to find the commit at which
some testable change was made, such as the introduction of a bug
or feature.  By identifying a version which did not have the
interesting change and a later version which did, a developer
can test for the presence of the change at various points in
the history, eventually ending up at the precise commit when
the change was first introduced.

This command uses subcommands to implement the search, each
of which changes the state of the bisection.  The
subcommands are:

brz bisect start
    Start a bisect, possibly clearing out a previous bisect.

brz bisect yes [-r rev]
    The specified revision (or the current revision, if not given)
    has the characteristic we're looking for,

brz bisect no [-r rev]
    The specified revision (or the current revision, if not given)
    does not have the characteristic we're looking for,

brz bisect move -r rev
    Switch to a different revision manually.  Use if the bisect
    algorithm chooses a revision that is not suitable.  Try to
    move as little as possible.

brz bisect reset
    Clear out a bisection in progress.

brz bisect log [-o file]
    Output a log of the current bisection to standard output, or
    to the specified file.

brz bisect replay <logfile>
    Replay a previously-saved bisect log, forgetting any bisection
    that might be in progress.

brz bisect run <script>
    Bisect automatically using <script> to determine 'yes' or 'no'.
    <script> should exit with:
       0 for yes
       125 for unknown (like build failed so we could not test)
       anything else for no
�
subcommandzargs*�output�ozWrite log to this file.)�
short_name�help�typer�	directoryc�b�URR[5(d[S5eg)z0Check preconditions for most operations to work.zNo bisection in progress.N)rrr�r�rrs  r�_check�cmd_bisect._checkFs,���+�+�/�/�0@�A�A��:�;�;�Br"c�L�[U5nUR5(a/[S5 URR	UR
S9 gU(aUR
X#5 OURU5 URUR
5 UR5 g)zdSet the state of the given revspec and bisecting.

Returns boolean indicating if bisection is done.
z"No further bisection is possible.
r�TF)
rkr�r	rorKrGr�r�r
r�)rrr��state�
bisect_logs     r�
_set_state�cmd_bisect._set_stateKs���
�z�*�
�������6�7����,�,�$�)�)�,�<����.�.�w�>��"�"�5�)����$�)�)�$�����r"Nc��SnUS;aU(aObUS;aU(a[U5S:XaUSnO@US;aU(d[S5eUS;aUSnOU(dU(a[S	U-5e[R"U5up�US
:XaUR	U5 gUS:XaURX�5 gUS:XaUR
X�5 gUS
:XaURX�5 gUS:XaURU5 gUS:XaURX�5 gUS:XaURX�5 gUS:XaURUW5 g[SU-5e)zHandle the bisect command.N)rr��move)�replayrr)r�z.The 'bisect move' command requires a revision.)�runzImproper arguments to bisect �startrr�r�ra�logr�r�zUnknown bisect command: )r;rr�open_containingr�rr�r�rar�r��
run_bisect)
rr��	args_listr�rr��log_fn�
run_scriptr�_s
          rr��cmd_bisect.run^s7�����.�.�8��
�;�
&�9��Y��1�9L��q�\�F�
�9�
$�X��O�P�P�
�8�
#�"�1��J�
�(��>��K�L�L�"�2�2�9�=�
�
��� ��J�J�z�"�
�5�
 ��H�H�Z�*�
�4�
��G�G�J�)�
�6�
!��I�I�j�+�
�7�
"��J�J�z�"�
�5�
 ��H�H�Z�(�
�8�
#��K�K�
�+�
�5�
 ��O�O�J�
�3��9�J�F�G�Gr"c��URU5 [U5R5 URR	[
5 g)z#Reset the bisect state to no state.N)r�r
rarr^r�r�s  rra�cmd_bisect.reset�s4�����J���j�!�'�'�)��$�$�+�+�,<�=r"c��URR[5(a8[U5R	5 URR[5 [
U5nURS5 UR5 g)z9Reset the bisect state, then prepare for a new bisection.r�N)	rrr�r
rar^rkr�r�)rrr�s   rr��cmd_bisect.start�sb���'�'�+�+�,<�=�=��*�%�+�+�-��(�(�/�/�0@�A��z�*�
����w�'����r"c�(�URXS5 g)z;Mark that a given revision has the state we're looking for.rN�r��rrr�s   rr�cmd_bisect.yes�s�����
�U�3r"c�(�URXS5 g)zMark a given revision as wrong.r�Nr�r�s   rr��
cmd_bisect.no�s�����
�T�2r"c�n�[U5nURU5 URURS9 g)z&Move to a different revision manually.r�N)r
rZrKrG)rrr��currents    rr��cmd_bisect.move�s-���
�+�����w�����$�)�)��,r"c�~�URU5 [U5nURU5 UR5 g)z'Write the current bisect log to a file.N)r�rkr�r��rrrr�s    rr��cmd_bisect.log�s0�����J���z�*�
��#�#�H�-����r"c�R�URR[5(a8[U5R	5 URR[5 [
X5nUR[5 UR5 URUR5 g)zeApply the given log file to a clean state, so the state is
exactly as it was when the log was saved.
N)rrr�r
rar^rkr�r�r
rGr�s    rr��cmd_bisect.replay�sw���'�'�+�+�,<�=�=��*�%�+�+�-��(�(�/�/�0@�A��z�4�
��#�#�$4�5��������$�)�)�$r"c�<�SSKn[S5 URU5 URUSS9nUR	5 UR
nUS:XaUR
USS5nOUS:XagUR
USS5nU(agMl![a gf=f)NrzStarting bisect.T)�shellr�}r�)�
subprocessr	r��Popen�wait�
returncoder�r�)rr�scriptr��process�retcoder�s       rr��cmd_bisect.run_bisect�s�����
� ��
�
�:���

�$�*�*�6��*�>������!�,�,���a�<��?�?�:�t�U�C�D���^���?�?�:�t�T�B�D������ �
��
�s�AB�0B�
B�Bri)r?NN)rcrdrerfrg�
takes_argsrrB�
takes_optionsr�r�r�rar�rr�r�r�r�r�rhrir"rr�r�
si��/�b��(�J��x�C�.G�c�R����M�<�
�&"H�H>��4�3�-��%�r"r�)rgrv�rr��commandsrrr�errorsr�optionr�tracer	r�r]r
rkr�rir"r�<module>rsR��"&�
�'��"� ����� ��?G�?G�Dh%�h%�Vz��zr"

Youez - 2016 - github.com/yon3zu
LinuXploit