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__/delta.cpython-313.pyc
�

p��g�G���SSKJr SSKJrJr SSKJr "SS5rS
Sjr"S	S
5r	Sr
SSjrg)�)�StringIO)�osutils�trace�)�InventoryTreeChangec�B�\rSrSrSrSrSrSrSrSr	SSjr
S	rg
)�	TreeDelta�a�Describes changes from one tree to another.

Contains seven lists with TreeChange objects.

added
removed
renamed
copied
kind_changed
modified
unchanged
unversioned

Each id is listed only once.

Files that are both modified and renamed or copied are listed only in
renamed or copied, with the text_modified flag true. The text_modified
applies either to the content of the file or the target of the
symbolic link, depending of the kind of file.

Files are only considered renamed if their name has changed or
their parent directory has changed.  Renaming a directory
does not count as renaming all its contents.

The lists are normally sorted when the delta is created.
c��/Ul/Ul/Ul/Ul/Ul/Ul/Ul/Ul/Ulg�N)	�added�removed�renamed�copied�kind_changed�modified�	unchanged�unversioned�missing��selfs �./usr/lib/python3/dist-packages/breezy/delta.py�__init__�TreeDelta.__init__4sC����
���������������
����������c� �[U[5(dgURUR:H=(a� URUR:H=(a� URUR:H=(a� UR
UR
:H=(ay URUR:H=(aY URUR:H=(a9 URUR:H=(a URUR:H$)NF)
�
isinstancer	r
rrrrrrr�r�others  r�__eq__�TreeDelta.__eq__?s����%��+�+���J�J�%�+�+�%�
6�����
�
�-�
6�����
�
�-�
6����u�|�|�+�
6��
�
����/�	
6�
���%�/�/�1�
6��!�!�U�%7�%7�7�

6�� � �E�$5�$5�5�		
rc��X:X+$r�rs  r�__ne__�TreeDelta.__ne__Ms���"�"rc
���SRURURURURUR
URURUR5$)Nz�TreeDelta(added={!r}, removed={!r}, renamed={!r}, copied={!r}, kind_changed={!r}, modified={!r}, unchanged={!r}, unversioned={!r}))	�formatr
rrrrrrrrs r�__repr__�TreeDelta.__repr__PsR��
!�!'���
�
�����������!�!��
�
����� � �	"�
	
rc���[UR=(dX UR=(dE UR=(d2 UR=(d UR
=(d UR5$r)�boolrr
rrrrrs r�has_changed�TreeDelta.has_changed`sZ����M�M�
!��z�z�
!��|�|�
!��|�|�
!��{�{�	
!�
� � �

�	
rc�P�[5n[X@X1U5 UR5$r)r�report_delta�getvalue)r�show_ids�show_unchanged�short_status�outputs     r�get_changes_as_text�TreeDelta.get_changes_as_textjs$������V�<�>�J���� � r)	r
rrrrrrrrN)FFF)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr r$r(r,r5�__static_attributes__r#rrr	r	s,���6	�
�#�
� 
�BG�!rr	Nc	�^�[5nURUUUUUUS9GHnmTRS:XaURR	T5 M1U(dTR
S:XaMJ[
U4Sj[S555n	U	SU	S:wa�U	SSLaURR	T5 M�TRSS	:XaIUR5(d4[R"S
RTRS55 M�URR	T5 GMU	SSLaUR R	T5 GM9TR"STR"S:wd TR
STR
S:waMTR$(aUR$R	T5 GM�UR&R	T5 GM�TRSTRS:waUR(R	T5 GMTR*(d TR,STR,S:waUR.R	T5 GMSUR0R	T5 GMq Sn
URR3U
S
9 URR3U
S
9 UR&R3U
S
9 UR$R3U
S
9 UR R3U
S
9 UR.R3U
S
9 UR0R3U
S
9 URR3U
S
9 U$)z2Worker function that implements Tree.changes_from.)�extra_trees�require_versioned�want_unversioned�FF)NNc3�r># �UH,nTRU=(a TRUSLv� M. g7fr)�	versioned�kind)�.0�x�changes  �r�	<genexpr>�!_compare_trees.<locals>.<genexpr>�s4����
�JR�Q�V�
�
�a�
 �
?�V�[�[��^�4�%?�
?�(�s�47�rrT�symlinkz?Ignoring "{}" as symlinks are not supported on this filesystem.Fc�z�URScURSnOURSnXR4$�Nrr)�path�file_id�rGrNs  r�
change_key�"_compare_trees.<locals>.change_key�s7���;�;�q�>�!��;�;�q�>�D��;�;�q�>�D��n�n�%�%r��key)r	�iter_changesrCr�append�	parent_id�tuple�ranger
rD�supports_symlinksr�warningr'rNrr�namerrr�changed_content�
executablerr�sort)�old_tree�new_tree�want_unchanged�specific_files�include_rootr>r?r@�delta�
fully_presentrQrGs           @r�_compare_treesrgrs����
�K�E��'�'�����+�)�
(������~�-����$�$�V�,���� 0� 0�L� @���
�JO�PQ�(�
�
�
����}�Q�/�/��Q��4�'����"�"�6�*��;�;�q�>�Y�.�x�7Q�7Q�7S�7S��M�M�@�@F��v�{�{�ST�~�@V��
�M�M�(�(��0�
�1�
��
&��M�M� � ��(��K�K��N�f�k�k�!�n�,�����"�f�&6�&6�q�&9�9�
�}�}����#�#�F�+��
�
�$�$�V�,�
�[�[��^�v�{�{�1�~�
-����%�%�f�-�
�
#�
#�v�'8�'8��';�v�?P�?P�QR�?S�'S��N�N�!�!�&�)��O�O�"�"�6�*�[�^&�
�M�M���:��&�	�K�K�����$�	�M�M���:��&�	�L�L���*��%�	�M�M���:��&�
�N�N���J��'�	�O�O���Z��(�	�����z��*��Lrc�4�\rSrSrSrSSjrSrSrg)�_ChangeReporter��z!Report changes between two trees.Nc�^�TbUb[S5eU4SjnXlURcSSKJn URUlX lSSSS	S
SS.UlS
SSSS.UlX@lU(a[RUl
OSUl
UcSUl/UlgUSUlUSUlURSRUR55 g)a�Constructor.

:param output: a function with the signature of trace.note, i.e.
    accepts a format and parameters.
:param supress_root_add: If true, adding the root will be ignored
    (i.e. when a tree has just been initted)
:param output_file: If supplied, a file-like object to write to.
    Only one of output and output_file may be supplied.
:param unversioned_filter: A filter function to be called on
    unversioned files. This should return True to ignore a path.
    By default, no filtering takes place.
:param view_info: A tuple of view_name,view_files if only
    items inside a view are to be reported on, or None for
    no view filtering.
:param classify: Add special symbols to indicate file kind.
Nz*Cannot specify both output and output_filec�2>�TRX-S-5 g)N�
��write)�fmt�args�output_files  �rr4�(_ChangeReporter.__init__.<locals>.output�s����!�!�3�:��"5�6rr)r�K� �N�M�D�!)�kind changedr�createdr�deletedr�+�-�?)r
rrrc��g)N�r#)rDs r�<lambda>�*_ChangeReporter.__init__.<locals>.<lambda>�s��Brrz8Operating on whole tree but only reporting on '{}' view.)�BzrErrorr4r�r�note�suppress_root_add�modified_map�
versioned_map�unversioned_filterr�kind_marker�	view_name�
view_filesr')rr4r�rrr��	view_info�classifyrs   `    rr�_ChangeReporter.__init__�s����2�"��!��K�L�L�
7����;�;����*�*�D�K�!2��������

�������	
���#5���&�2�2�D��.�D����!�D�N� �D�O�&�q�\�D�N�'��l�D�O��K�K�J�Q�Q��N�N��
rc�<�[R"5(agUSS:XaUS:XaUR(agUR(a*[R
"URUS5(dgUS:Xa)URbUR
US5(agSnUS:XaRU(d
U(dUS:Xa>U(dU(aUup�O	USUSp�USbX�RUS5-
nUS	-
nOUS
:XaSnUSn	OSnUSn	U(aSn
OU(aSn
OURUn
US
:XaX�RUS5-
n	OUSbX�RUS5-
n	U(aSnOSnURSX�RUX�U	5 g)a�Report one change to a file.

:param path: The old and new paths as generated by Tree.iter_changes.
:param versioned: may be 'added', 'removed', 'unchanged', or
    'unversioned.
:param renamed: may be True or False
:param copied: may be True or False
:param modified: may be 'created', 'deleted', 'kind changed',
    'modified' or 'unchanged'.
:param exe_change: True if the execute bit has changed
:param kind: A pair of file kinds, as generated by Tree.iter_changes.
    None indicates no file present.
Nrr�r
rrrzrz => r�R�Cr|�*ruz%s%s%s %s%s)r�is_quietr�r�r�
is_inside_anyr�r�r�r4r�)r�pathsrCrrr�
exe_changerD�old_pathrN�rename�exes            r�report�_ChangeReporter.reports����>�>������8�r�>�i�7�2�t�7M�7M���?�?�7�#8�#8����%�PQ�(�#S�#S���
�%��&�&�2��*�*�5��8�4�4��"�H�
��#��v��^�!;��&�!&���$�"'�q��5��8�$��A�w�"��,�,�T�!�W�5�5�����H�
�)�
#��H���8�D��H���8�D���F�
��F��'�'�	�2�F��y� ��$�$�T�!�W�-�-�D�
�!�W�
 ��$�$�T�!�W�-�-�D���C��C�����6�#4�#4�X�#>��t�	
r)r�r�r4r�r�r�r�r�)NTNNNT)r7r8r9r:r;rr�r<r#rrriri�s&��+�������C�JG
rric
�Z�SSSSS.nSn[XS9GHnSnUR(aS	nSnOUR(aS	nSnOSnSnURS
URS:wa)URS
cS
nOqURScSnO^SnO[UR(aSnOURS
cSnOSnURSS:XaUR
S
UR
S:gnX$Rn	URURU	UUUUUR5 GM g)a�Report the changes from a change iterator.

This is essentially a translation from low-level to medium-level changes.
Further processing may be required to produce a human-readable output.
Unfortunately, some tree-changing operations are very complex
:change_iterator: an iterator or sequence of changes in the format
    generated by Tree.iter_changes
:param reporter: The _ChangeReporter that will report the changes.
rrr
r))TT)TF)FTrAc��URSbURSnOURSn[R"U5$rM)rNr�	splitpathrPs  r�path_key� report_changes.<locals>.path_keygs;���;�;�q�>�%��;�;�q�>�D��;�;�q�>�D�� � ��&�&rrSFTrrNr{r|rzrr�file)	�sortedrrrDr]r^rCr�rN)
�change_iterator�reporter�versioned_change_mapr�rGr�rrr�versioned_changes
          r�report_changesr�Vs2��"� ��%�	��'���7���
��=�=��F��G�
�^�^��G��F��F��G��;�;�q�>�V�[�[��^�+��{�{�1�~�%�$�����Q��'�$��)���%�%�%�����Q��'�$��&���{�{�1�~��'�#�.�.�q�1�V�5F�5F�q�5I�I�
�/�0@�0@�A������K�K�������K�K�	
�=8rc��^^^^^^^^^
�SU4SjjmUUU4SjnU4Sjn	UUU4Sjm
SUUUUU
U4Sjjn
U
"URSS	5 U
"URS
S5 U
"URSS
5 /mU
"URSSSUS9 U
"URSSSUS9 U
"UR
SSSU	S9 U
"URT-SS5 U(aU
"URSS5 U
"URSS5 g)aKOutput this delta in status-like form to to_file.

:param to_file: A file-like object where the output is displayed.

:param delta: A TreeDelta containing the changes to be displayed

:param short_status: Single-line status if True.

:param show_ids: Output the file ids if True.

:param show_unchanged: Output the unchanged files if True.

:param indent: Added at the beginning of all output lines (for merged
    revisions).

:param predicate: A callable receiving a path returning True if the path
    should be displayed.

:param classify: Add special symbols to indicate file kind.
Nc�`>�T(dU$US:XaUS-
nOUS:XaUS-
nU(aUS-
nU$)N�	directory�/rK�@r�r#)rNrD�
meta_modifiedr�s   �r�
decorate_path�#report_delta.<locals>.decorate_path�s>�����K��;���C�K�D�
�Y�
��C�K�D���C�K�D��rc
�j>�T"URSURSUR55nTRSR	U55 UR
(dUR5(a�TR
[URURSURS4UR
URURSURS4URSURS4URSURS4UR55 gg)Nrz => {})
rNrDr�ror'r]rVrrOrCrWr\r^)�item�dec_new_pathr��extra_modified�to_files  ���r�show_more_renamed�'report_delta.<locals>.show_more_renamed�s����$�T�Y�Y�q�\�4�9�9�Q�<��AS�AS�AU�V���
�
�h�o�o�l�3�4����4�#5�#5�#7�#7��!�!�#��L�L��Y�Y�q�\�4�9�9�Q�<�0��(�(��N�N��^�^�A�&����q�(9�:��Y�Y�q�\�4�9�9�Q�<�0��Y�Y�q�\�4�9�9�Q�<�0��O�O�	�
�$8rc�|>�TRSRURSURS55 g)Nz ({} => {})rr)ror'rD)r�r�s �r�show_more_kind_changed�,report_delta.<locals>.show_more_kind_changed�s,����
�
�m�*�*�4�9�9�Q�<����1��F�Grc�t>�T"XU5nT(aTRXE-5 gTRX5-5 grrn)	rNrDr��default_format�with_file_id_format�dec_pathr�r1r�s	      ���r�	show_path�report_delta.<locals>.show_path�s1��� ��]�;����M�M�-�8�9��M�M�.�3�4r�%sc�>�U(GaASnT
(aUnOSnTU-S-nUGH#nURScURSn	URSn
OURSn	URSn
TbT"U	5(dMcU(d T
(dTRTU-S-5 SnTRU5 T"U	U
UR5UU5 UbU"U5 T(aK[	USS5(a9TRS	RURRS
555 TRS5 GM& gg)NFr�z  rrz:
TrOz {}zutf-8rm)rNrDror��getattrr'rO�decode)�files�long_status_name�short_status_letterr�r��	show_more�header_shown�prefixr�rNrD�indent�	predicater3r1r�r�s           ������r�	show_list�report_delta.<locals>.show_list�s'���� �L��,�����f�_�t�+�F����9�9�Q�<�'��9�9�Q�<�D��9�9�Q�<�D��9�9�Q�<�D��9�9�Q�<�D��(��4����#�L��M�M�&�+;�";�e�"C�D�#'�L��
�
�f�%�����&�&�(�"�'���(��d�O����i�� >� >��M�M�%�,�,�t�|�|�/B�/B�7�/K�"L�M��
�
�d�#�1�rrrxr
�Arryrr�)r�r�rr�rzrtrrwr�S�unknownrur)r�z%-30sN)	rr
rrrrrrr)r�rer3r1r2r�r�r�r�r�r�r�r�r�s` `` ```   @@@rr/r/�s�����>	��"H�5��#��
($�($�T�e�m�m�Y��,�
�e�k�k�7�C�(�
�e�m�m�Y��,��N�
�
�
�
��� �#���
����� �#���
����� �(���e�n�n�~�-�z�3�?���%�/�/�;��4�
�e����C�0r)NFF)FFFr�NT)�ior�breezyrr�bzr.inventorytreerr	rgrir�r/r#rr�<module>r�s\��"�!�2�W!�W!�@���O�dO
�O
�d>
�H�
��
��
�L1r

Youez - 2016 - github.com/yon3zu
LinuXploit