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

p��gqu��\�SSKrSSKrSSKJr SSKrSSKJrJrJ	r	J
r
JrJrJ
r
 SSKJr SSKJr SSKJr SS	KJrJr SS
KJr SSKJr SS
KJr "SS\R45r"SS5r"SS5r"SS\R<5r"SS5r "SS5r!"SS5r"g)�N)�BytesIO�)�errors�iterablefile�	lru_cache�multiparent�osutils�trace�ui)�
repository)�revision)�ngettext�)�pack�
serializer)�
versionedfile�)�bundle_data)rc�2^�\rSrSrSrU4SjrSrSrU=r$)�_MPDiffInventoryGenerator�!z0Generate Inventory diffs serialized inventories.c�T>�[TU]URU5 Xl0Ulg�N)�super�__init__�inventories�repo�sha1s)�selfr�inventory_keys�	__class__s   ��A/usr/lib/python3/dist-packages/breezy/bzr/bundle/serializer/v4.pyr�"_MPDiffInventoryGenerator.__init__$s$���
����)�)�>�:��	���
�c#�# �UR5 URVs/sHoSPM	 nnURURVs/sHoSPM	 sn5 URR
RnURRU5H�nURnU4nX`R;aSnO!URUVs/sHoSPM	 nnU"U5nURXh5 UcMcURRU5n	[R"U5n
XWX�4v� M� gs snfs snfs snf7f)z Compute the diffs one at a time.���N)�_find_needed_keys�present_parents�extend�ordered_keysr�_serializer�write_inventory_to_chunks�iter_inventories�revision_id�
parent_map�_process_one_record�diffs�popr	�sha_strings)r�k�
needed_ids�inv_to_lines�invr.�key�
parent_ids�	as_chunks�diff�sha1s           r"�
iter_diffs�$_MPDiffInventoryGenerator.iter_diffs)s(���	
��� �&*�%9�%9�:�%9���e�%9�
�:����$�*;�*;�<�*;�Q�R�5�*;�<�=��y�y�,�,�F�F���9�9�-�-�j�9�C��/�/�K��.�C��*�*�*�"�
�-1�_�_�S�-A�B�-A���e�-A�
�B�$�S�)�I��$�$�S�4��!���:�:�>�>�#�&�D��&�&�y�1�D��4�5�5�:��;��<��C�s)�E�D9�E�
D>�A7E�E�A+E)rr)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr=�__static_attributes__�
__classcell__)r!s@r"rr!s���:��
6�6r$rc�\�\rSrSrSrSrSrSrSrSr	Sr
S	r\SSj5r
SrS
rg
)�BundleWriter�Ez�Writer for bundle-format files.

This serves roughly the same purpose as ContainerReader, but acts as a
layer on top of it.

Provides ways of writing the specific record types supported this bundle
format.
c��[R"UR5UlXl[
R"5Ulgr)r�ContainerWriter�_write_encoded�
_container�_fileobj�bz2�
BZ2Compressor�_compressor)r�fileobjs  r"r�BundleWriter.__init__Os0���.�.�t�/B�/B�C����
��,�,�.��r$c�l�URRURRU55 g)z&Write bzip2-encoded bytes to the file.N)rM�writerP�compress)r�bytess  r"rK�BundleWriter._write_encodedTs%���
�
���D�,�,�5�5�e�<�=r$c���URR[R"S55 URRS5 URR5 g)zStart writing the bundle.�4s#
N)rMrT�bundle_serializer�_get_bundle_headerrL�begin�rs r"r\�BundleWriter.beginXsB���
�
���-�@�@��E�F��
�
���F�#������r$c��URR5 URRURR55 g)zFinish writing the bundle.N)rL�endrMrTrP�flushr]s r"r`�BundleWriter.end^s3���������
�
���D�,�,�2�2�4�5r$c�6�USUS.nURXXEU5 g)auAdd a record for a multi-parent diff.

:mp_bytes: A multi-parent diff, as a bytestring
:sha1: The sha1 hash of the fulltext
:parents: a list of revision-ids of the parents
:repo_kind: The kind of object in the repository.  May be 'file' or
    'inventory'
:revision_id: The revision id of the mpdiff being added.
:file_id: The file-id of the file, or None for inventories.
smpdiff)�parents�storage_kind�sha1N��_add_record)r�mp_bytesr<�parents�	repo_kindr.�file_id�metadatas        r"�add_multiparent_record�#BundleWriter.add_multiparent_recordcs"��!(�)�d�S������Y�W�Mr$c�4�URUUSS.UUS5 g)aAdd a record for a fulltext.

:bytes: The fulltext, as a bytestring
:parents: a list of revision-ids of the parents
:repo_kind: The kind of object in the repository.  May be 'revision' or
    'signature'
:revision_id: The revision id of the fulltext being added.
sfulltext)rdreNrg)rrVrjrkr.s     r"�add_fulltext_record� BundleWriter.add_fulltext_recordss&��	
���� �;�?����	
r$c�8�SUS'URSUSSS5 g)z�Add an info record to the bundle.

Any parameters may be supplied, except 'self' and 'storage_kind'.
Values must be lists, strings, integers, dicts, or a combination.
�headerreN�inforg)r�kwargss  r"�add_info_record�BundleWriter.add_info_record�s$��#,��������v�v�t�T�:r$Nc�D�US;a[U5eUS:XaUc
[5eO
Ub
[5eUS:XaUb
[5eO
Uc
[5eURS5X4Vs/sHnUcMURSS5PM nnSR	U5$s snf)z(Encode semantic ids as a container name.)r
�file�	inventory�	signaturerurzru�ascii�/�//)�
ValueError�AssertionError�encode�replace�join)�content_kindr.rl�n�namess     r"�encode_name�BundleWriter.encode_name�s����U�U��\�*�*��6�!���$�&�&���"�$�&�&��6�!��&�$�&�&�'�
�
 � �"�"�#�)�)�'�2�K�I�
�I���
#�A�I�I�d�E�"�I�	�
�
�y�y�����
s�)B�4Bc��URX4U5n[R"U5nURRU/[	U5U4/5 USS:wa(URRU/[	U5/5 gg)z�Add a bundle record to the container.

Most bundle records are recorded as header/body pairs, with the
body being nameless.  Records with storage_kind 'header' have no
body.
rertN)r��bencoderL�add_bytes_record�len)rrVrmrkr.rl�name�encoded_metadatas        r"rh�BundleWriter._add_record�s{�����	��@��"�?�?�8�4�����(�(�
���$4� 5���y�	
��O�$�	�1��O�O�,�,�e�W�c�%�j�"�E�2r$)rPrLrMr)r?r@rArBrCrrKr\r`rnrqrw�staticmethodr�rhrD�r$r"rGrGEsE���/�
>� �6�
N� 
�";�� �� �,
Fr$rGc�H�\rSrSrSrS	Sjr\S5r\S5rSr	Sr
g)
�BundleReader�z�Reader for bundle-format files.

This serves roughly the same purpose as ContainerReader, but acts as a
layer on top of it, providing metadata, a semantic name, and a record
body
c��UR5nUS:waUR5 /UlU(a&[R"UR	U55nO-[[R"UR555nX@l	g)z�Constructor.

:param fileobj: a file containing a bzip-encoded container
:param stream_input: If True, the BundleReader stream input rather than
    reading it all into memory at once.  Reading it into memory all at
    once is (currently) faster.
�
N)
�readline�patch_linesr�IterableFile�iter_decoderrN�
decompress�read�_container_file)rrQ�stream_input�line�source_files     r"r�BundleReader.__init__�sj�����!���4�<���������&�3�3�D�4D�4D�W�4M�N�K�!�#�.�.�����"@�A�K�*�r$c#�# �[R"5nUHnURU5v� M g![a  gf=f7f)z.Iterate through decoded fragments of the file.N)rN�BZ2Decompressorr��EOFError)rQ�decompressorr�s   r"r��BundleReader.iter_decode�sH����*�*�,���D�
�"�-�-�d�3�3����
��
�s%�A�6�A�
A�A�A�Ac�F�[R"SU5nS/nUH>nUS:XaUS==S-
ss'MUS:XaURS5 M1US==U-
ss'M@ USnSnSn[U5S:�aUSn[U5S	:�aUS	nUR	S
5XV4$)ziDecode a name from its container form into a semantic form.

:retval: content_kind, revision_id, file_id
s(//?)r$rr&r~rN�rr})�re�split�appendr��decode)r��segmentsr��segmentr�r.rls       r"�decode_name�BundleReader.decode_name�s����8�8�H�d�+������G��%���b�	�T�!�	��D�����S�!��b�	�W�$�	�
 ��Q�x�������u�:��>���(�K��u�:��>��A�h�G��"�"�7�+�[�A�Ar$c#�^# �[R"UR5nUH�up#[U5S:wa#[R
"S[U5S35e[R"U5nUSS:XaSnO
[U5upSX44URUSS5-v� M� g7f)zsIterate through bundle records.

:return: a generator of (bytes, metadata, content_kind, revision_id,
    file_id)
r�zRecord has z names instead of 1rertNr)
r�iter_records_from_filer�r�r�	BadBundler��bdecode�nextr�)r�iteratorr�rVrm�_unuseds      r"�iter_records�BundleReader.iter_records�s�����.�.�t�/C�/C�D��$�L�E��5�z�Q���&�&��S��Z�L�@S�'T�U�U����u�-�H���(�I�5���!%�h�����#�d�&6�&6�u�Q�x��{�&C�C�C�%�s�B+B-)r�r�N�T)r?r@rArBrCrr�r�r�r�rDr�r$r"r�r��s<���+�$�����B��B�.Dr$r�c�4�\rSrSrSrSrSr\S5rSr	g)�BundleSerializerV4iz*Implement the high-level bundle interface.c�:�[X2X5nUR5$)aWrite a bundle to a file object.

:param repository: The repository to retrieve revision data from
:param target: The head revision to include ancestors of
:param base: The ancestor of the target to stop including acestors
    at.
:param fileobj: The file-like object to write to
)�BundleWriteOperation�do_write)rr�target�baserQ�write_ops      r"�write_bundle�BundleSerializerV4.write_bundles��(��j�J��� � �"�"r$c��[X5nU$)z(Return a reader object for a given file.)�BundleInfoV4)rrz�bundles   r"r��BundleSerializerV4.reads���d�)���
r$c�d�[RRUSRS55$)z0Retrieve the serializer for a given info object.�
serializerr})r�format_registry�getr�)rus r"�get_source_serializer�(BundleSerializerV4.get_source_serializers+���)�)�-�-�d�=�.A�.H�.H��.Q�R�Rr$r�N)
r?r@rArBrCr�r�r�r�rDr�r$r"r�r�s%��4�
#��
�S��Sr$r�c�\�\rSrSrSrSSjrSrSrSrSr	S	r
S
r\S5r
SrS
rg)r�iz7Perform the operation of writing revisions to a bundle.Nc�Z�XlX lX0l[U5nX`lUbXPlORUR
5nURX!/5nURU5nUV	s/sHo�U;dM
U	PM sn	UlUR
V
s1sHo�4iM sn
Ul	gs sn	fs sn
fr)
r�r�rrGr��revision_ids�	get_graph�find_unique_ancestors�get_parent_map�
revision_keys)rr�r�rrQr�r��graphrj�r�revids           r"r�BundleWriteOperation.__init__s����	���$���g�&�����#� ,���(�(�*�E� �6�6�v�v�F�L��*�*�<�8�G�,8� I�L�q��L��L� I�D��48�4E�4E�F�4E�5�h�4E�F����!J��Fs�%	B#�2B#�B(c	���[R"[SS[UR55[UR55 UR
R
5 URR5 UR5 UR5 UR5 URR5 SSS5 UR$!,(df   UR$=f)zWrite all data to the bundle.zBundling %d revision.zBundling %d revisions.N)
r
�noterr�r�r�	lock_readr�r\�
write_info�write_files�write_revisionsr`r]s r"r��BundleWriteOperation.do_write/s���
�
�
��'�(��D�%�%�&�
�

��!�!�"�
	
��_�_�
&�
&�
(��K�K�����O�O������� � �"��K�K�O�O��)�� � � �
)�
(�� � � �s
�#A%C�
C5c��URR5nSSS.URR5nURR	UUS.5 g)zWrite format info.r�r)TF)r��supports_rich_rootN)r�get_serializer_format�supports_rich_rootr�rw)r�serializer_formatr�s   r"r��BundleWriteOperation.write_infoAsO�� �O�O�A�A�C��$%�a�0����1S�1S�1U�V�����#�#�0�'9�
�	
r$c��/nURRUR5nUR5H up4UHnUR	X545 M M" URSURRU5 g)z4Write bundle records for all revisions of all files.rzN)r�fileids_altered_by_revision_idsr��itemsr��_add_mp_records_keys�texts)r�	text_keys�altered_fileidsrlr�r.s      r"r�� BundleWriteOperation.write_filesLsu���	��/�/�I�I����
��&5�%:�%:�%<�!�G�+��� � �'�!7�8� ,�&=�	
�!�!�&�$�/�/�*?�*?��Kr$c�R�URRn[R"XR5Vs/sHo"SPM	 nnUnUR
b[UR
UR;aA[U5nURUR
5 URUR
5 URRR(a$URSXVs/sHoU4PM sn5 OURU5 URU5 gs snfs snf)z6Write bundle records for all revisions and signatures.r&Nr{)rrr�topo_iter_keysr�r�r��list�remover�r+�support_altered_by_hackr��&_add_inventory_mpdiffs_from_serializer�_add_revision_texts)r�inv_vfr8�topological_order�revision_orderr�s      r"r��$BundleWriteOperation.write_revisionsWs������,�,��*�9�9�&�BT�BT�U�
�U���G�U�	�
�+���;�;�"�t�{�{�d�6G�6G�'G�!�"3�4�N��!�!�$�+�+�.��!�!�$�+�+�.��?�?�&�&�>�>�

�%�%��V�<M�%N�<M�5�h�<M�%N�
�
�7�7�8I�J�� � ��0��+
��&Os�D�(D$c	��UVs/sHo"4PM nn[URU5nUR5HDupVpxSRUR	55n	UR
R
X�USUS5 MF gs snf)aRGenerate mpdiffs by serializing inventories.

The current repository only has part of the tree shape information in
the 'inventories' vf. So we use serializer.write_inventory_to_lines to
get a 'full' representation of the tree shape, and then generate
mpdiffs on that data stream. This stream can then be reconstructed on
the other side.
r$r{N)rrr=r��to_patchr�rn)
rr�r��inventory_key_order�	generatorr.r9r<r;�texts
          r"r��;BundleWriteOperation._add_inventory_mpdiffs_from_serializerqsy��.<�<�^��t�^��<�-�d�o�o�?R�S�	�3<�3G�3G�3I�/�K�T��8�8�D�M�M�O�,�D��K�K�.�.��J��[�$�
�4J��=s�Bc���URRU5nURRRnURR	U5nUH~nUR
nUR
US5nU"U5nURRX�SU5 URRURRU5USU5 M� g![Ra M�f=f)Nr
r|)rr�r+�write_revision_to_string�
get_revisionsr.r�r�rq�get_signature_textr�NoSuchRevision)	rr�r/�revision_to_bytes�	revisionsr
r.rj�
revision_texts	         r"r��(BundleWriteOperation._add_revision_texts�s����_�_�3�3�N�C�
� �O�O�7�7�P�P���O�O�1�1�.�A�	�!�H�"�.�.�K� �n�n�[�$�7�G�-�h�7�M��K�K�+�+��
�K�
�
����/�/��O�O�6�6�{�C����	�"���(�(�
��
�s� 7C�C4�3C4c���[U5S:XagUSnURU5nUcBURU5Rn[U5S:Xa[R
nXC4$USnXC4$)z:Determine the base and target from old-style revision ids.r)NN)r�r��get_revisionr9�
_mod_revision�
NULL_REVISION)r��forced_basesrr�r�rjs      r"�get_base_target�$BundleWriteOperation.get_base_target�s|���|���!���a�������'���<� �-�-�f�5�@�@�G��7�|�q� �$�2�2���|���q�z���|�r$c	��[[R"X#55nURU5nUR	U5nURU5n[
XT5Hwunn	Xin
XyVs/sHo�SPM	 nnSRUR55n
[U	5S:XaU	SnOSnURRX�X�U	SU5 My gs snf)z*Add multi-parent diff records to a bundle.r&r$rrN)r�rr��make_mpdiffs�	get_sha1sr��zipr�r�r�r�rn)rrk�vf�keysr*�mpdiffsrr/�mpdiff�item_keyr<r8rjr�rls               r"r��)BundleWriteOperation._add_mp_records_keys�s����K�6�6�r�@�A���/�/�,�/�����\�*���&�&�|�4�
���
'�
����?�D�*4�*>�?�*>�3�2�w�*>�G�?��8�8�F�O�O�-�.�D��8�}��!�"�1�+�����K�K�.�.��G����g�
�(��?s�.C)r�r�rr�r�r�r)r?r@rArBrCrr�r�r�r�r�r�r�rr�rDr�r$r"r�r�sC��A�G� !�$	
�	L�1�4�"�*����r$r�c��\rSrSrSrSrSrS
SjrSrS
Sjr	Sr
\"\
5rS	r
\"\
5rS
r\"\5rSrg)r�i�z+Provide (most of) the BundleInfo interface.c�8�XlX lSUlSUlgr)rMr+�_BundleInfoV4__real_revisions�_BundleInfoV4__revisions)rrQrs   r"r�BundleInfoV4.__init__�s���
�%�� $�����r$c�$�URU5$r)�install_revisions)rrs  r"�install�BundleInfoV4.install�s���%�%�j�1�1r$c���UR5 [URU5URU5nUR	5sSSS5 $!,(df   g=f)aInstall this bundle's revisions into the specified repository.

:param target_repo: The repository to install into
:param stream_input: If True, will stream input rather than reading it
    all into memory at once.  Reading it into memory all at once is
    (currently) faster.
N)�
lock_write�RevisionInstaller�get_bundle_readerr+r")rrr��ris    r"r!�BundleInfoV4.install_revisions�sI���
"�
"�
$�"��&�&�|�4�d�6F�6F�
��B��:�:�<�	%�
$�
$�s�6A�
Ac� �SURS4$)znProvide data for performing a merge.

Returns suggested base, suggested target, and patch verification status
N�inapplicable)r�)r�target_repos  r"�get_merge_request�BundleInfoV4.get_merge_request�s��
�T�[�[�.�0�0r$c�d�URRS5 [URU5$)z�Return a new BundleReader for the associated bundle.

:param stream_input: If True, the BundleReader stream input rather than
    reading it all into memory at once.  Reading it into memory all at
    once is (currently) faster.
r)rM�seekr�)rr�s  r"r'�BundleInfoV4.get_bundle_reader�s'��	
�
�
���1���D�M�M�<�8�8r$c�H�URc�/UlUR5nUR5H_unnnnnUS:XaURR	U5nUS:XdM2WR
"U5nURR
U5 Ma UR$)Nrur
)rr'r�r+r��read_revision_from_stringr�)	r�
bundle_readerrVrmrk�_revision_id�_file_idr�revs	         r"�_get_real_revisions� BundleInfoV4._get_real_revisions�s���� � �(�$&�D�!� �2�2�4�M��+�+�-�
��������&�!%�!1�!1�!G�!G��!Q�J��
�*�$�>�>�u�E�C��)�)�0�0��5�.��$�$�$r$c���URcR/UlURH;nURR[RRU55 M= UR$r)r�real_revisionsr�r�RevisionInfo�
from_revision)rr
s  r"�_get_revisions�BundleInfoV4._get_revisions�s\�����#�!�D�� �/�/��� � �'�'��,�,�:�:�8�D��0����r$c�4�URSR$)Nr&)rr.r]s r"�_get_target�BundleInfoV4._get_targets���~�~�b�!�-�-�-r$)�__real_revisions�__revisionsrMr+Nr�)r?r@rArBrCrr"r!r-r'r8�propertyr;r>rrAr�rDr�r$r"r�r��sR��5� �2� �1�9�%�$�1�2�N� ���(�I�.��k�
"�Fr$r�c�Z�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrg)r&i
z%Installs revisions into a repository.c�6�XlX lX0lSUlgr)rLr+�_repository�_info)r�	containerrrs    r"r�RevisionInstaller.__init__s��#��%��%����
r$c��[R"UR5 UR5sSSS5 $!,(df   g=f)zFPerform the installation.

Must be called with the Repository locked.
N)�_mod_repository�
WriteGrouprH�_install_in_write_groupr]s r"r"�RevisionInstaller.installs0��
�
'�
'��(8�(8�
9��/�/�1�:�
9�
9�s	�;�
A	c��Sn/n/nSnURR5GHunnnnn	US:Xa(URb
[5eUR	U5 U(a6Xy4SU4:wa-URURRU5 SnUSS2	[U5S:�aUS:waURU5 /nUS:XaURU4Xe45 US:XaUnURX�U5 US:XaURX�U5 US:XdM�U	nURX�4Xe45 GM
 URURRU5 U$)Nrurzrr{r
r|)
rLr�rIr��_handle_info�_install_mp_records_keysrHr�r��_install_inventory_recordsr��_install_revision�_install_signature)
r�current_file�pending_file_records�pending_inventory_records�target_revisionrVrmrkr.rls
          r"rO�)RevisionInstaller._install_in_write_groupss����!��$&�!����_�_�
)�
)�
+�

�������F�"��:�:�)�(�*�*��!�!�(�+�#��(<���@V�(V��-�-��$�$�*�*�,@�� $��(��+��,�-��1�i�;�6N��/�/�0I�J�,.�)��K�'�)�0�0�;�.�(�1R�S��J�&�"-���&�&�{�e�D��K�'��'�'��u�E��F�"�&��$�+�+�g�-C�X�,U�V�3,�4	
�%�%�d�&6�&6�&<�&<�>R�S��r$c��XlURRU5UlUSS:Xa'URR5(aSUlgSUlg)z!Extract data from an info record.r�rTFN)rIr+r��_source_serializerrHr��update_root)rrus  r"rR�RevisionInstaller._handle_infoFsR���
�"&�"2�"2�"H�"H��"N����%�&�!�+��0@�0@�0S�0S�0U�0U�#�D��$�D�r$c���[U5S:Xag[RRnUVVVs/sHupEnXA;dM
XESUSU"U54PM  nnnnUR	U5 gs snnnf)Nrrjr<)r�r�MultiParent�
from_patch�add_mpdiffs)rr�records�d_funcr��m�t�
vf_recordss        r"�_install_mp_records�%RevisionInstaller._install_mp_recordsOsx���w�<�1����(�(�3�3��#�
�"���a��%�
4�Q�)��a��i����3�"�	�
�
	�!�!�*�-��
s�A,�A,c	��[RRn/nUHRupVn[U5S:XaUSSnOSnUSV	s/sHo�U	4-PM
 n
n	UR	XZUSU"U545 MT URU5 gs sn	f)Nrr�r�rdrf)rrarbr�r�rc)rrrdrerhr8�metar��prefix�parentrjs           r"rS�*RevisionInstaller._install_mp_records_keysZs����(�(�3�3���
�&�O�C�t��3�x�1�}��R�a�����8<�Z�8H�I�8H�f��	�)�8H�G�I����s�T�'�]�F�4�L�I�J� '�	�!�!�*�-��Js�Bc��0n/nUH/nURUS5nUcURU5 M+XtU'M1 SnU(a�UV	s/sHo�4PM n
n	URRR	U
5n/n[5nUH.n
U
4U;aURU
5 MUR
U
5 M0 URRnURRU5HDnSRU"U55nX�UR'XtUR'XqUR'MF UVs/sHnXh;dM
XFPM nnU$s sn	fs snf)Nr�r$)r�r�rHrr��set�addr]r,r-r�r.)r�inventory_text_cache�inventory_cacher9�cached_parent_texts�remaining_parent_ids�	parent_id�p_text�ghostsr��parent_keys�present_parent_map�present_parent_ids�p_id�to_lines�
parent_inv�parent_textss                 r"�_get_parent_inventory_texts�-RevisionInstaller._get_parent_inventory_textsksv��!��!��#�I�)�-�-�i��>�F��~�$�+�+�I�6�17�I�.�$��� �*>�>�)=�A�4�)=�K�>�!%�!1�!1�!=�!=�!L�!L��"��"$���U�F�,���7�0�0�&�-�-�d�3��J�J�t�$�	-�
�.�.�H�H�H�"�.�.�?�?�@R�S�
����(�:�"6�7��:D�
� 6� 6�7�>D�J�$:�$:�;�?E�Z�%;�%;�<�	T�(�
�'�	��&�
+��*�'�	�
�
���/?��$
s�E�7	E�Ec�$�URSURRR:XaKURRR(a&URURRU5$[R"S5n[R"S5n[RR5n[U5n[U5GHOunupxn	URSXe5 USn
USnUR!X#U5n["R$R'U	5R)U5n
[*R,"U
5nX�S:wa[.R0"S5eS	R3U
5X*'UR4R7U
5nA
UR9X�5 SnU(aUR;US
S5nUcURR=X�U5 O2UR?U5nURRAUS
UX�5 X�U
'GMR SSS5 g![BRDa/n[.RF"[IUR55UeSnAff=f!,(df   g=f)Nr�i��
zinstalling inventoryr&rdrfzCan't convert to target formatr$r)%rIrHr+�
format_numr�rSrr�LRUSizeCache�LRUCacher�
ui_factory�nested_progress_barr��	enumerate�updater�rrarbr~r	r3rr�r�r]�read_inventory_from_lines�_handle_rootr��
add_inventory�_make_delta�add_inventory_by_deltar�UnsupportedInventoryKind�IncompatibleRevision�repr)rrdrsrt�pb�num_records�idxr8rmrVr.r9�p_texts�target_linesr<�
target_invr�delta�es                   r"rT�,RevisionInstaller._install_inventory_records�sK���J�J�}�%��)9�)9�)E�)E�)P�)P�P�� � �,�,�D�D��0�0��1A�1A�1M�1M�w�W�W�
 )�5�5�6F�G��$�,�,�R�0��
�]�]�
.�
.�
0�B��g�,�K�/8��/A�+��+�c�U��	�	�0�#�C�!�"�g��%�j�1�
��:�:�(�:��� +�6�6�A�A�%�H�Q�Q�� ���*�*�<�8���G�,�,� �*�*�+K�L�L�47�H�H�\�4J�$�1�!�4�4�N�N� ��
�!��!�!�*�9�!�
��!0�!4�!4�Z��]�D�!I�J�U�!�)��(�(�6�6�'�Z��!+� 6� 6�z� B���(�(�?�?�&�q�M�5�+��
0:��,�S0B�1�
0��R"�:�:�U� �5�5�d�4�;K�;K�6L�M�ST�T��U��S1�
0�s=�DJ�H;�6J�71H;�(
J�;I>�*I9�9I>�>J�
Jc���URnUR(afURRU4nUVs/sHoQRRU4PM nnURR
R
XF/5 gURR5(dDURRU:wa)[R"[UR55eggs snfr)r.r^�rootrlrHr��	add_linesr�r
rr�r�)rr�r9r.�text_keyrnrzs       r"r��RevisionInstaller._handle_root�s��� �,�,�����"���/�/��=�H�KU�V�:��O�O�3�3�V�<�:�K�V����"�"�,�,�X�B�G��!�!�4�4�6�6����'�'�;�6��1�1�$�t�7G�7G�2H�I�I�7�7��Ws�!C(c���URRU5(agURRU5nURR	UR
U5 gr)rH�has_revisionr]r3�add_revisionr.)rr.rmr�r
s     r"rU�#RevisionInstaller._install_revision�sN�����(�(��5�5���*�*�D�D�T�J�����%�%�h�&:�&:�H�Er$c��URR5 URRU5(agURRX5 gr)rH�get_transaction�has_signature_for_revision_id�add_signature_text)rr.rmr�s    r"rV�$RevisionInstaller._install_signature�sB�����(�(�*����9�9�+�F�F�����+�+�K�>r$)rLrIrHr+r]r^N)r?r@rArBrCrr"rOrRrirSr�rTr�rUrVrDr�r$r"r&r&
sA��/��2�&�P%�	.�.�")�V::�xJ�F�?r$r&)#rNr��ior�fastbencoder��rrrrr	r
rrrMr
r�i18nrrrr�_mod_versionedfilerrZ�_MPDiffGeneratorrrGr��BundleSerializerr�r�r�r&r�r$r"�<module>r�s���"�	���Q�Q�Q�.�*�� �3��.�!6� 2� C� C�!6�HlF�lF�^KD�KD�\S�*�;�;�S�4^�^�BM#�M#�`Y?�Y?r$

Youez - 2016 - github.com/yon3zu
LinuXploit