403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.208
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/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

p��g�=��\�SrS/rSSKJr SSKJr SSKJr SSKJr Sr	"S	S
\R5r"SS\R5rS
r
SrSrSr\R"4Sjr\R&4Sjr\R*4Sjr\R.4Sjr"SS5r"SS5rSrg)z�Inventory delta serialisation.

See doc/developers/inventory.txt for the description of the format.

In this module the interesting classes are:
 - InventoryDeltaSerializer - object to read/write inventory deltas.
�InventoryDeltaSerializer�)�errors)�basename)�
NULL_REVISION�)�	inventorys!bzr inventory delta v1 (bzr 1.14)c�0^�\rSrSrSrSrU4SjrSrU=r$)�InventoryDeltaError�#z>An error when serializing or deserializing an inventory delta.Tc�2>�Xl[TU]"S0UD6 g)N�)�_fmt�super�__init__)�self�
format_string�kwargs�	__class__s   ��</usr/lib/python3/dist-packages/breezy/bzr/inventory_delta.pyr�InventoryDeltaError.__init__+s���!�	�
���"�6�"�)r)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__�internal_errorr�__static_attributes__�
__classcell__)rs@rr
r
#s���H�
�N�#�#rr
c��\rSrSrSrSrSrg)�IncompatibleInventoryDelta�1z�The delta could not be deserialised because its contents conflict with
the allow_versioned_root or allow_tree_references flags of the
deserializer.
Fr
N)rrrrrrrr
rrr!r!1s���
�Nrr!c��g)zeSerialize the content component of entry which is a directory.

:param entry: An InventoryDirectory.
�dirr
)�entrys r�_directory_contentr&:s��
rc��UR(aSnOSnURXR4nSU;a[SURS9eSU-$)z[Serialize the content component of entry which is a file.

:param entry: An InventoryFile.
�YrNz"Missing size or sha for %(fileid)r��fileids
file%d%s%s)�
executable�	text_size�	text_sha1r
�file_id)r%�
exec_bytes�
size_exec_shas   r�
_file_contentr1BsT��

����
��
��O�O�Z���@�M��}��!�0����
�	
�%�}�4�4rc�p�URnUc[SURS9eSURS5-$)z^Serialize the content component of entry which is a symlink.

:param entry: An InventoryLink.
zMissing target for %(fileid)rr)slink%s�utf8)�symlink_targetr
r.�encode)r%�targets  r�
_link_contentr7Ss:��
�
!�
!�F�
�~�!�"A�%�-�-�X�X��6�=�=��0�0�0rc�R�URnUc[SURS9eSU-$)zdSerialize the content component of entry which is a tree-reference.

:param entry: A TreeReference.
z)Missing reference revision for %(fileid)rr)stree%s)�reference_revisionr
r.)r%�
tree_revisions  r�_reference_contentr;^s8��
�,�,�M���!�7��
�
�
�	
��=�(�(rc�$�U"X1U5nXFlU$)z6Convert a dir content record to an InventoryDirectory.)�revision��content�name�	parent_idr.�
last_modified�_type�results       r�
_dir_to_entryrEks���7�)�
,�F�#�O��Mrc��U"X1U5nXFl[US5UlUSUlUS(a	SUlU$SUlU$)z1Convert a dir content record to an InventoryFile.r�rTF)r=�intr,r-r+r>s       r�_file_to_entryrItsV���7�)�
,�F�#�O��7�1�:��F���q�z�F���q�z� ����M�"����Mrc�V�U"X1U5nXFlUSRS5UlU$)z2Convert a link content record to an InventoryLink.rr3)r=�decoder4r>s       r�_link_to_entryrL�s1���7�)�
,�F�#�O�#�A�J�-�-�f�5�F���Mrc�8�U"X1U5nXFlUSUlU$)z1Convert a tree content record to a TreeReference.r)r=r9r>s       r�_tree_to_entryrN�s&���7�)�
,�F�#�O� '��
�F���Mrc�0�\rSrSrSrSrSrSrSrSr	g)	r�zSerialize inventory deltas.c��XlX l[[[S.UlU(a[UR
S'gg)z�Create an InventoryDeltaSerializer.

:param versioned_root: If True, any root entry that is seen is expected
    to be versioned, and root entries can have any fileid.
:param tree_references: If True support tree-reference entries.
)�	directory�file�symlinkztree-referenceN)�_versioned_root�_tree_referencesr&r1r7�_entry_to_contentr;)r�versioned_root�tree_referencess   rr�!InventoryDeltaSerializer.__init__�s>�� .�� /��+�!�$�"
���
�7I�D�"�"�#3�4�rc��[U[5(d[SRU55e[U[5(d[SRU55e/SQnURnUHnU"Xb5nURU5 M UR
5 S[-US'SU-US'SU-US	'S
URUR5-US'SURUR5-US
'U$)aReturn a line sequence for delta_to_new.

Both the versioned_root and tree_references flags must be set via
require_flags before calling this.

:param old_name: A UTF8 revision id for the old inventory.  May be
    NULL_REVISION if there is no older inventory and delta_to_new
    includes the entire inventory contents.
:param new_name: The version name of the inventory we create with this
    delta.
:param delta_to_new: An inventory delta such as Inventory.apply_delta
    takes.
:return: The serialized delta as lines.
z old_name should be str, got {!r}z new_name should be str, got {!r})rrrrrsformat: %s
�sparent: %s
rsversion: %s
rsversioned_root: %s
rGstree_references: %s
�)�
isinstance�bytes�	TypeError�format�_delta_item_to_line�append�sort�FORMAT_1�_serialize_boolrUrV)r�old_name�new_name�delta_to_new�lines�to_line�
delta_item�lines        r�delta_to_lines�'InventoryDeltaSerializer.delta_to_lines�s����(�E�*�*��>�E�E�h�O�P�P��(�E�*�*��>�E�E�h�O�P�P�)���*�*��&�J��:�0�D��L�L���'�	�
�
��"�X�-��a��"�X�-��a��#�h�.��a��*�T�-A�-A�$�BV�BV�-W�W��a��+�d�.B�.B��!�!�/
�
��a���rc��U(agg)N�true�falser
�r�values  rrf�(InventoryDeltaSerializer._serialize_bool�s����rc���Uup4pVUc!SURS5-nSnSn	[n
SnO�UcSnOSURS5-nUS:Xa[SRU55eSURS5-nUR=(d Sn	UR
n
US:Xa"UR(dX�:wa[SUU
US	9eU
c
[S
US9eURUR"U5nSUUUU	U
U4-$)
zConvert delta_item to a line.�/r3�Noners	deleted�/zQBad inventory delta: '/' is not a valid newpath (should be '') in delta item {!r}z9Version present for / in %(fileid)r (%(last)r != %(new)r))r*�last�newz no version for fileid %(fileid)rr)s%s%s%s%s%s%s
)
r5r�AssertionErrorrarAr=rUr
rW�kind)rrl�new_version�oldpath�newpathr.r%�oldpath_utf8�newpath_utf8rArBr?s            rrb�,InventoryDeltaSerializer._delta_item_to_line�s.��+5�(��'��?��'�.�.��"8�8�L�"�L��I�)�M�(�G���&��#�g�n�n�V�&<�<���#�~�$�8�8>��z�8J���
 �'�.�.��"8�8�L����.�3�I�!�N�N�M��t�#�D�,@�,@�!�/�-�S�&�*�'�	���$�)�6�w����,�,�U�Z�Z�8��?�G�4�������
8
�
�	
r)rWrVrUN)
rrrrrrrnrfrbrr
rrrr�s��%�J�" �D�6
rc�.�\rSrSrSrSSjrSrSrSrg)	�InventoryDeltaDeserializerizDeserialize inventory deltas.c��XlX lg)z�Create an InventoryDeltaDeserializer.

:param versioned_root: If True, any root entry that is seen is expected
    to be versioned, and root entries can have any fileid.
:param tree_references: If True support tree-reference entries.
N)�_allow_versioned_root�_allow_tree_references)r�allow_versioned_root�allow_tree_referencess   rr�#InventoryDeltaDeserializer.__init__s��&:�"�&;�#rc�2�US:XagUS:Xag[SUS9e)NrqTrrFzvalue %(val)r is not a bool)�val)r
rss  r�_deserialize_bool�,InventoryDeltaDeserializer._deserialize_bools&���G���
�h�
��%�&C��O�Orc��U(d[S5eUSRS5(d
[SUSS9eUVs/sHo"RS5PM nnU(aUSS[-:wa
[SUSS	S9e[	U5S
:dUS	RS5(d[S5eUS	S
Sn[	U5S:dUS
RS5(d[S5eUS
SSn[	U5S:dUSRS5(d[S5eUR
USSS5n[	U5S:dUSRS5(d[S5eUR
USSS5nUR(dU(a[S5e/n[5n[U5n	[S5Hn
[U	5 M U	GHknURSS5up�p�nnU=(d SnX�;a
[SU
S9eURU
5 US:XaU(dX�:wa
[S US9eUS!:waUSSS":Xa
[S#US9eURS$5(a+US%La
[S&US9eUR(d[S'5eUS!:XaSnO)USS	S:wa
[S(US)9eUS	SnUR!S*5nUS!:XaSnO)USS	S:wa
[S+US)9eUS	SnUR!S*5n[#URS55nUSS,:XaSnO[%UX�UU5nUUU
U4nUR'U5 GMn UUUUU4$s snf)-akParse the text bytes of a serialized inventory delta.

If versioned_root and/or tree_references flags were set via
require_flags, then the parsed flags must match or a BzrError will be
raised.

:param lines: The lines to parse. This can be obtained by calling
    delta_to_lines.
:return: (parent_id, new_id, versioned_root, tree_references,
    inventory_delta)
zinventory delta is empty����
zlast line not empty: %(line)r)rmr\s
format: %szunknown format %(line)rrrsparent: zmissing parent: marker�NrGs	version: zmissing version: marker�	r]sversioned_root: zmissing versioned_root: marker��stree_references: zmissing tree_references: marker�zversioned_root not allowed�zduplicate file id %(fileid)rr)rwzVersioned root found: %(line)rrx�:z"special revisionid found: %(line)rstreeFzGTree reference found (but header said tree_references: false): %(line)rzTree reference not allowedz1oldpath invalid (does not start with /): %(path)r)�pathr3z1newpath invalid (does not start with /): %(path)rsdeleted)r
�endswith�rstripre�len�
startswithr�r�r!�set�iter�range�next�split�addr�rK�tuple�_parse_entryrc)rrjrm�delta_parent_id�delta_version_id�delta_versioned_root�delta_tree_referencesrD�seen_ids�	line_iter�_ir�r�r.rArBr?rr��
content_tupler%rls                      r�parse_text_bytes�+InventoryDeltaDeserializer.parse_text_bytes!s����%�&@�A�A��R�y�!�!�%�(�(�%�&E�E�RT�I�V�V�05�6�����U�#���6���a��M�H�$<�<�%�&?�e�A�a�j�Q�Q��u�:��>��q��!4�!4�[�!A�!A�%�&>�?�?���(�1�2�,���u�:��>��q��!4�!4�\�!B�!B�%�&?�@�@� ��8�A�B�<���u�:��>��q��!4�!4�5H�!I�!I�%�&F�G�G�#�5�5�e�A�h�r�s�m�D���u�:��>��q��!4�!4�5I�!J�!J�%�&G�H�H� $� 6� 6�u�Q�x���}� E���)�)�.B�,�-I�J�J����5����K�	���(�B���O���D��
�
�7�A�&�
U�\��]�G�"�)�T�I��"�)�2�7���
�L�L��!���$�,�!�5�*�*J�QU�V�V���(�]�2�3�-?�4�-G�*�8�t����!�!�+�.�.�(�E�1�-�<�!���
�4�4�4�5Q�R�R��w�&����b�q�!�T�)�)�G�%���
 ,�A�B�/��&�-�-�f�5���w�&����b�q�!�T�)�)�G�%��� ,�A�B�/��&�-�-�f�5��!�'�-�-��"8�9�M��Q��:�-���$��W��
���"�7�G�U�;�J��M�M�*�%�}�@
�� �!��
�	
��k7s�M)r�r�N)TT)	rrrrrrr�r�rr
rrr�r�s��'�<�P�k
rr�c��[[[[S.nUS UR	S5(a[
e[
U5nXTS"XFX!U5$)N)r$sfileslinkstreer\ry)rErIrLrNr�r|r)r�r.rArBr?�
entry_factoryr@s       rr�r��sR������	�M��A�J����s������D�>�D����$�W�I�
�V�VrN)r�__all__�r�osutilsrr=rrre�BzrErrorr
r!r&r1r7r;�InventoryDirectoryrE�
InventoryFilerI�
InventoryLinkrL�
TreeReferencerNrr�r�r
rr�<module>r�s���"�&�
&����$��/��#�&�/�/�#�������5�"1�
)�=F�<X�<X��=F�<S�<S�� =F�<S�<S��=F�<S�<S��r
�r
�j@
�@
�FWr

Youez - 2016 - github.com/yon3zu
LinuXploit