403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.193
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/breezy/bzr/bundle/serializer/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/breezy/bzr/bundle/serializer/__pycache__/v08.cpython-313.pyc
�

p��gqS����SrSSKJrJr SSKJr SSKJr SSKJ	r	 SSK
Jr SSKJ
r
 SSKJr S	S
KJr SSKJrJr S
SKJrJrJr SSS.r"SS5r"SS\5r"SS5r"SS\5rg)z3Serializer factory for reading and writing bundles.�)�errors�ui)�	transport)�
internal_diff)�
NULL_REVISION)�	text_file)�format_highres_date)�mutter���StrictTestament�)�
BundleInfo�RevisionInfo�)�BundleSerializer�_get_bundle_header�binary_diff�yes�no)TFc�:�\rSrSrSrS
SjrSrSrSrSr	S	r
g)�Action�!zRepresent an action.Nc�T�XlUc/UlOX lUc/UlgX0lg�N��name�
parameters�
properties)�selfrrrs    �B/usr/lib/python3/dist-packages/breezy/bzr/bundle/serializer/v08.py�__init__�Action.__init__$s+���	��� �D�O�(�O��� �D�O�(�O�c�Z�URRXRS545 g)z;Add a property whose value is currently utf8 to the action.�utf8N)r�append�decode�r r�values   r!�add_utf8_property�Action.add_utf8_property/s ��������l�l�6�&:�;�<r$c�<�URRX45 g)zAdd a property to the action.N)rr'r)s   r!�add_property�Action.add_property3s��������}�-r$c�6�URU[U5 g)z%Add a boolean property to the action.N)r.�	bool_textr)s   r!�add_bool_property�Action.add_bool_property7s�����$�	�%� 0�1r$c�d�SRUR/UR-5/nURHFn[	U5S:XaURUS5 M(URSR"U65 MH S/nURSRU55 SRU5RS5nS	n[	U5U:�aHURUS
U5 XVS
nURS5 S	[	S5-
n[	U5U:�aMHURUS
-5 g
)zWrite action as to a file.� r��{}:{}z=== � // ��utf-8�ONs
... �... �
)	�joinrrr�lenr'�format�encode�write)r �to_file�p_texts�prop�text�	text_line�	availables       r!rB�Action.write;s����8�8�T�Y�Y�K�$�/�/�9�:�;���O�O�D��4�y�A�~����t�A�w�'����w�~�~�t�4�5�	$�
�x�����F�K�K��(�)��G�G�D�M�(�(��1�	��	��)�n�y�(��M�M�)�J�Y�/�0�!�*�-�I��M�M�)�$��S��\�)�I�	�)�n�y�(�
	�
�
�i�%�'�(r$r�NN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r"r+r.r2rB�__static_attributes__�r$r!rr!s���	)�=�.�2�)r$rc�^�\rSrSrSrSrSrSrSrSSjr	Sr
S	rS
rSSjr
S
rSrg)�BundleSerializerV08r;c�,�[U5R$)zqRead the rest of the bundles from the supplied file.

:param f: The file to read from
:return: A list of bundles
)�BundleReader�info�r �fs  r!�read�BundleSerializerV08.readPs���A��#�#�#r$c��URR5(a*[R"S[	UR55eg)N�0.8)�source�supports_rich_rootr�IncompatibleBundleFormat�repr�r s r!�check_compatible�$BundleSerializerV08.check_compatibleXs6���;�;�)�)�+�+��1�1�%��d�k�k�9J�K�K�,r$c�Z�XlX lX0lX@lUR	5 UR5 UR
5 [RR5nURU5 SSS5 SSS5 g!,(df   N=f!,(df   g=f)z�Write the bundless to the supplied files.

:param source: A source for revision information
:param revision_ids: The list of revision ids to serialize
:param forced_bases: A dict of revision -> base that overrides default
:param f: The file to output to
N)r]�revision_ids�forced_basesrCrb�	lock_read�_write_main_headerr�
ui_factory�nested_progress_bar�_write_revisions)r r]rerfrX�pbs      r!rB�BundleSerializerV08.write\s{����(��(��������
�
�
�
��#�#�%����2�2�4���%�%�b�)�5� �
�4�4�� �
�s#�/B�(B�:B�
B	�B�
B*c��X#0nU[LaSnUR5nURX#/5n[UR5R	U55nUR5 UR
XXT5 U$)z6Helper function for translating write_bundle to write.N)r�	get_graph�find_unique_ancestors�list�iter_topo_order�reverserB)r �
repository�revision_id�base_revision_id�outrf�graphres        r!�write_bundle� BundleSerializerV08.write_bundlensw��#�6���}�,�#���$�$�&���2�2�;�@R�S���J�0�0�2�B�B�<�P�Q�������
�
�:�\�?��r$c�r�URnUR[S55 URS5 g)z!Write the header for the changes.r\s#
N)rCrBrrWs  r!rh�&BundleSerializerV08._write_main_headerzs(���L�L��	���"�5�)�*�	����r$c�v�US:a[S5eURnURSSU--5 URURS55 U(d1U(aUS:XaURS5 gURS5 g[	U[
5(a4URS	5 URU5 URS
5 g[	U[5(aCURS	5 URURS55 URS
5 gURS5 UHunURSSUS---5 [	U[
5(aURU5 O URURS55 URS
5 Mw g)
aDWrite out meta information, with proper indenting, etc.

:param trailing_space_when_empty: To work around a bug in earlier
    bundle readers, when writing an empty property, we use "prop: \n"
    rather than writing "prop:\n".
    If this parameter is True, and value is the empty string, we will
    write an extra space.
rz"indentation must be greater than 0�#� r:r9s: 
s:
s: r=rN)�
ValueErrorrCrBrA�
isinstance�bytes�str)r �keyr*�indent�trailing_space_when_emptyrX�entrys       r!�_write�BundleSerializerV08._write�s:���A�:��A�B�B��L�L��	�����v�
�&�'�	����
�
�7�#�$��(�U�b�[����� ������
��u�
%�
%�
�G�G�E�N�
�G�G�E�N�
�G�G�E�N�
��s�
#�
#�
�G�G�E�N�
�G�G�E�L�L��)�*�
�G�G�E�N�
�G�G�F�O����������
� 3�4�5��e�U�+�+��G�G�E�N��G�G�E�L�L��1�2������
r$c	�6�SnSn[UR5n[UR5H�upVURSXT5 URRU5nXb:XaUnOURR
U5nX`R;aSn	URUn
U
c[n
O)Sn	UR(aURSn
O[n
X�:XaUnOURR
U
5nUS:gnURXxX�X�5 U
nUnM� g)z/Write the information for all of the revisions.NzGenerating revision dataTF���r6)r?re�	enumerate�updater]�get_revision�
revision_treerfr�
parent_ids�_write_revision)
r rl�last_rev_id�
last_rev_tree�i_max�i�rev_id�rev�rev_tree�
explicit_base�base_id�	base_tree�force_binarys
             r!rk�$BundleSerializerV08._write_revisions�s�����
��D�%�%�&��"�4�#4�#4�5�I�A��I�I�0�!�;��+�+�*�*�6�2�C��$�(���;�;�4�4�V�<���*�*�*� $�
��+�+�F�3���?�+�G�� %�
��>�>�!�n�n�R�0�G�+�G��%�)�	� �K�K�5�5�g�>�	���6�L�� � ��w�=�
�"�K�%�M�;6r$c�`�[R"URU5R5$r)r
�
from_revisionr]�as_sha1)r rus  r!�_testament_sha1�#BundleSerializerV08._testament_sha1�s"���,�,�T�[�[�+�F�N�N�P�Pr$c�&^�U4SjnU"SURRS55 U"SUR5 U"S[URUR
55 TRRS5 TRX$URU5 U"SUR5 U"STRUR55 U"S	UR5 UR(aU"S
UR5 U(a	U"SU5 UR(aNTRSS
SS9 [URR!55Hup�TRX�SSS9 M TRRS5 g
)z)Write out the information for a revision.c�&>�TRXSS9 g)Nr�r�)r�)r�r*r s  �r!�w�.BundleSerializerV08._write_revision.<locals>.w�s����K�K��1�K�-r$�message�
�	committer�dater=zrevision id�sha1zinventory sha1z
parent idszbase idrNrr�rT)r�r�)r��splitr�r	�	timestamp�timezonerCrB�_write_deltarur��inventory_sha1r�rr��sorted�items)
r r�r��base_revr�r�r�r�rr*s
`         r!r��#BundleSerializerV08._write_revision�s*���
	.�	
�)�S�[�[�&�&�t�,�-�	�+�s�}�}�%�	�&�%�c�m�m�S�\�\�B�C������5�!����(�s����M�	�-����)�	�&�$�&�&�s���7�8�	�
�C�.�.�/��>�>�
�l�C�N�N�+��
�i��"��>�>��K�K��d�1�K�5�%�c�n�n�&:�&:�&<�=������D��T��R� >�	
�����5�!r$Nc��Uc/nUVs/sHnSR"U6PM nnURRS5 URRSRU/U-5R	S55 URRSRU5R	S55 URRS5 gs snf)Nr7s=== r5r:r8r=)r@rCrBr>rA)r rrr�vrDs      r!�
_write_action�!BundleSerializerV08._write_action�s������J�/9�:�z�!�7�>�>�1�%�z��:������7�#������3�8�8�T�F�Z�$7�8�?�?��H�I������6�;�;�w�/�6�6�w�?�@������5�!��	;s�Cc�\^^^^^^
�SnUUU4Sjm
UU
UUU4SjnTRTSSS9nURHDn[SURSURS/5RTR5n	MF URUR-H�n[SURS	URS	/S
URRS54/5n	URS	S:H=(a URS	n
U"U	URURS	U
URUURS	5 M� URH�n[S
URS	URS/URS	4/5n	U"U	URURS	UR5URURSURS	5 M� URH�n[SURS	URS	/5n	U"U	URURS	UR5URURSURS	5 M� UR H�nTR#URS	5nUcM&TR#URS5nX�:wdMK[SURS	URS	/5n	U	R%SU5 U	RTR5 M� g)z(Write out the changes between the trees.z	/dev/nullc�>�SSjnU(a[R"5eU"T	USS9nU"TUSS9nURT
R5 [	XX'T
R5 g![RaW U"T	USS9nU"TUSS9nURSS5 URT
R5 [
XX'T
R5 gf=f)NFc��URU5nUSLa[U5nUR5$![Ra /s$f=f)NT)�get_filer�	readlines�_mod_transport�
NoSuchFile)�tree�path�require_text�	tree_files    r!�
tree_lines�EBundleSerializerV08._write_delta.<locals>.do_diff.<locals>.tree_lines�sT��1� $�
�
�d� 3�I�$�t�+�$-�i�$8�	�$�.�.�0�0��&�0�0���I��s�3�A�AT)r��encoding�base64)F)r�
BinaryFilerBrCrr.r)�file_id�old_path�new_path�actionr�r��	old_lines�	new_lines�new_tree�old_treer s        ���r!�do_diff�1BundleSerializerV08._write_delta.<locals>.do_diff�s����
1�
T�� �+�+�-�-�&�x���M�	�&�x���M�	����T�\�\�*��h�8����U���$�$�
T�&�x���N�	�&�x���N�	��#�#�J��9����T�\�\�*��H��d�l�l�S�
T�s�AA'�'A(C�Cc�>�TRRU5nURT:waURSUR5 U(aUR	SUR
5 U(a"US:XaUR
SUR5 U(aUS:XaT	"XX`T
5 gURTR5 g)N�last-changed�
executable�symlink�target�file)
�root_inventory�	get_entry�revisionr+r2r�r.�symlink_targetrBrC)
r�r��kind�
meta_modified�
text_modifiedr�r�r��default_revision_idr�r�r�r s
        �����r!�
finish_action�7BundleSerializerV08._write_delta.<locals>.finish_actions�����+�+�5�5�g�>�E��~�~�!4�4��(�(�����H���(�(��u�7G�7G�H����!2��#�#�H�e�.B�.B�C�������8�\�J����T�\�\�*r$T)�want_unchanged�include_root�removedr6�addedrzfile-idr:r��renamed�modifiedNr�)�changes_fromr�rr�r�rBrCr��copiedr�r(r��changed_contentr�r�r��	unchanged�get_file_revisionr+)r r�r�r�r��DEVNULLr��delta�changer�r��new_rev�old_revr�s`````        @r!r�� BundleSerializerV08._write_delta�s������	T�2
	+�
	+��%�%�h�t�RV�%�W���m�m�F��I����A�����A��'G�H�N�N�����F�$��k�k�E�L�L�0�F������Q�����Q��0��V�^�^�2�2�7�;�<�=��F�
#�K�K��N�f�4�M��9J�9J�1�9M�M���������A����&�&�����A��
�1�"�m�m�F���F�K�K��N�F�K�K��N�;�v�{�{�1�~�>O�=P��F�
��������A���$�$�&��&�&����A�����A��
�	$��n�n�F��J����Q�����Q��(H�I�F���������A���$�$�&��&�&����A�����A��
�%��o�o�F��0�0����Q��@�G�����0�0����Q��@�G��!��
�V�[�[��^�V�[�[��^�,L�M���(�(���A����T�\�\�*�&r$)rfrer]rC)rFr)rKrLrMrNrYrbrBryrhr�rkr�r�r�r�rPrQr$r!rSrSOs>��$�L�*�$
��#�J$&�LQ�"�<"�f+r$rSc�d�\rSrSrSrSrSrSrSrSr	Sr
SS	jrS
rSr
SrS
rSrSrg)rUi^zqThis class reads in a bundle from a file, and returns
a Bundle object, which can then be applied against a tree.
c���[RU5 [U5UlSUlUR5UlUR5 UR5 g)zfRead in the bundle from the file.

:param from_file: A file-like object (must have iterator support).
N)	�objectr"�iter�	from_file�
_next_line�	_get_inforV�_read�	_validate)r r�s  r!r"�BundleReader.__init__csE��
	������i��������N�N�$��	�
	
�
�
�����r$c��[5$r)�BundleInfo08ras r!r��BundleReader._get_infots
���~�r$c��[UR55 URbTUR5(dgURcgUR	5 UR5 URbMSggr)�next�_nextr��_read_revision_header�
_read_patches�_read_footerras r!r��BundleReader._readws]���T�Z�Z�\���o�o�)��-�-�/�/�����&����� �����
�o�o�)r$c�8�URR5 g)zUMake sure that the information read in makes sense
and passes appropriate checksums.
N)rV�
complete_inforas r!r��BundleReader._validate�s��	
�	�	���!r$c#�# �URHnURnXlUcMUv� M  URnSUlUv� g7f)zAYield the next line, but secretly
keep 1 extra line for peeking.
N)r�r�)r �line�lasts   r!r�BundleReader._next�sE����N�N�D��?�?�D�"�O����
�#���������
�s
�#A	� A	c�V�SnURRR[S55 UR	5H9nUbUS:Xa O/URS5(dM&SnUR
U5 M; U(d$URRR5 U$)NFr=r~T)rV�	revisionsr'rr�
startswith�_handle_next�pop)r �found_somethingr
s   r!r�"BundleReader._read_revision_header�s������	�	���"�"�<��#5�6��J�J�L�D��|�t�u�}���?�?�4�(�(��"�O����d�#�!���I�I���#�#�%��r$c���URS5(d[R"S5eUSSRS5nUSUSU-:XaXSnU(dgUR	S	5nUS:wa&USUnXS
-SnU(dURUS
-S9nOFUSSS:XaUSSnURUS
-S9nO%[R"S
R
U55eURSS5nXE4$)zRead in a key-value pair.r~zBzr header did not start with #rr�r:Nr5rJz: rr��:z?While looking for key: value pairs, did not find the colon {!r}�_)rr�MalformedHeaderr(�find�
_read_manyr@�replace)r r
r��locr�r*s      r!�_read_next_entry�BundleReader._read_next_entry�s	�����t�$�$��(�(�)J�K�K��A�b�z� � ��)�����=�C�&�L�(���=�D����i�i��o���"�9��t��*�C��q���O�E�����v��z��:���
�"�#�Y�#�
��s��)�C��O�O�6�A�:�O�6�E��(�(�Q�X�X����
��k�k�#�s�#���z�r$c�6�UcgURUSS9up#[SRX#55 UcgURRSnX$R
;a�[
XB5ccUS;aURS5nO>US;a!UVs/sHoURS5PM nnOUS;aURS	5n[XBU5 g[R"S
RU55e[R"SRU55es snf)Nrr�z_handle_next {!r} => {!r}r�)r�rur�r&r�)�testament_sha1r�r��asciizDuplicated Key: {}zUnknown Key: "{}")rr
r@rVr�__dict__�getattrrA�setattrrr)r r
r�r*�
revision_infor�s      r!r�BundleReader._handle_next�s���<���*�*�4��*�:�
���*�1�1�#�=�>��;���	�	�+�+�B�/�
��(�(�(��}�*�2��?�?�!�L�L��0�E��\�*�7<�=�u�!�X�X�f�-�u�E�=�E��H�H�!�L�L��1�E��
�E�2��,�,�-A�-H�-H��-M�N�N��(�(�)<�)C�)C�C�)H�I�I��>s�Dc�^�/nSSU--nURb URRU5(dU$UR5H_nURU[	U5SRS55 URb"URRU5(aM^ U$ U$)z�If a line ends with no entry, that means that it should be
followed with multiple lines of values.

This detects the end of the list, because it will be a line that
does not start properly indented.
r~rr�r:)r�rrr'r?r()r r��values�startr
s     r!r�BundleReader._read_many�s�������v�
�&���?�?�"�$�/�/�*D�*D�U�*K�*K��M��J�J�L�D��M�M�$�s�5�z�B�/�6�6�w�?�@����&�d�o�o�.H�.H��.O�.O���
�	!��
r$c��URb URRS5(aS/S4$Sn/nUR5GH/nU(aPURS5(d%[R"SRU55eUSSR
S	5nO6URS
5(a WU[S
5SR
S	5-
nURb'URRS5(aWUS4s $URb URRS5(aWUS4s $U(aSnGMURS
5(aGMURU5 GM2 WUS4$)zmRead in one patch, return the complete patch, along with
the next line.

:return: action, lines, do_continue
Nr~FTs===zCThe first line of all patches should be a bzr meta line "===": {!r}rr�r:r<)	r�rrr�MalformedPatchesr@r(r?r')r �first�linesr
r�s     r!�_read_one_patch�BundleReader._read_one_patch�sJ���?�?�"�d�o�o�&@�&@��&F�&F���U�?�"������J�J�L�D�����v�.�.� �1�1�!�!'������
�a���*�*�7�3������)�)��$�s�7�|�b�1�8�8��A�A�����*�t���/I�/I�&�/Q�/Q��u�d�*�*����(�D�O�O�,F�,F�t�,L�,L��u�e�+�+�����_�_�W�-�-����T�"�)!�,�u�e�#�#r$c��Sn/nU(a1UR5up4nUbURX445 U(aM1URRSRb
[5eX RRSlg)NTr�)r1r'rVr�tree_actions�AssertionError)r �do_continue�revision_actionsr�r0s     r!r�BundleReader._read_patchess{�������)-�)=�)=�)?�&�F�;��!� �'�'���8��k��9�9���r�"�/�/�;� �"�"�/?�	�	���B��,r$c���UR5H^nURU5 URc gURRS5(aME[	UR55  g g)z�Read the rest of the meta information.

:param first_line:  The previous step iterates past what it
                    can handle. That extra line is given here.
Nr~)rrr�rr)r r
s  r!r�BundleReader._read_footer"sU���J�J�L�D����d�#����&���?�?�-�-�d�3�3��T�Z�Z�\�"��!r$)r�r�rVN)r)rKrLrMrNrOr"r�r�r�rrrrrr1rrrPrQr$r!rUrU^sF����"� �"�
��"�<J�0�&#$�J	@�
r$rUc�&�\rSrSrSrSrSrSrg)ri2c�V�URSU5 [R"XU5 g)Nr9)�note_last_changedr�_update_tree)r �bundle_treerus   r!r>�BundleInfo08._update_tree3s"���%�%�b�+�6�����;�?r$c�N�[R"X5nUR5$r)r
r�r�)r rtru�	testaments    r!�_testament_sha1_from_revision�*BundleInfo08._testament_sha1_from_revision7s!��#�1�1�*�J�	�� � �"�"r$c��[X5$rr)r r�r�s   r!�
_testament�BundleInfo08._testament;s
���x�.�.r$rQN)rKrLrMrNr>rCrFrPrQr$r!rr2s��@�#�/r$rN)rOr9rrrr��diffrr�r�textfilerr�r	�tracer
rBr
�bundle_datarrrrrr1rrSrUrrQr$r!�<module>rLsi��":��,�"�&�"�-��(�2�?�?���&�	�+)�+)�\L+�*�L+�^Q�Q�h
/�:�
/r$

Youez - 2016 - github.com/yon3zu
LinuXploit