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/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

p��g�&���SSKrSSKrSSKrSSKrSSKJr SSKJrJrJ	r	J
r
JrJr SSKJ
r SSKJr SSKJrJr SSKJr S	S
KJrJrJr S	SKJrJr S	SKJr S	S
KJrJrJ r J!r! S	SK"J#r# S	SK$J%r% S	SK&J'r' S	SK(J)r) Sr*Sr+"SS\)5r,"SS\RZ5r."SS\R^5r0"SS5r1"SS\1\R^5r2"SS\25r3"S S!\25r4"S"S#\1\R^5r5"S$S%\55r6"S&S'5r7"S(S)\R^\75r8"S*S+\R^\75r9"S,S-\RZ5r:g).�N)�BytesIO�)�diff�errors�merge�osutils�tests�treebuilder)�revision)�	transport)�features�test_commit)�	InterTree�)�bzrdir�	inventory�knitrepo)�install_bundle�merge_bundle)�
BundleTree)�read_bundle�v09�v4�write_bundle)�BundleSerializerV08)�BundleSerializerV09)�BundleSerializerV4)�
InventoryTreec�b�URU/SS5n[U5nURS5$)zCGet the fulltext for a given revision id that is present in the vf.�	unorderedT�fulltext)�get_record_stream�next�get_bytes_as)�vf�key�stream�records    �>/usr/lib/python3/dist-packages/breezy/bzr/tests/test_bundle.py�get_textr*&s2��
�
!�
!�3�%��d�
;�F�
�&�\�F����z�*�*�c��UR5 [URU45sSSS5 $!,(df   g=f)z2Get the fulltext for the inventory at revision id.N)�	lock_readr*�inventories)�repo�revision_ids  r)�get_inventory_textr1-s*��	
���	���(�(�;�.�9�
�	�	�s	�2�
Ac��\rSrSrSr\"S5r\"S5rSrSr	Sr
SrS	rS
r
SrSrS
rSrSrSrSrSSjrSrSrSrSSjrSrSrg)�MockTree�3c��SSKJnJn [R	U5 US0UlSU0Ul0UlU"USS5Ulg)Nr)�ROOT_ID�InventoryDirectory�)	rr6r7�object�__init__�paths�ids�contents�root)�selfr6r7s   r)r:�MockTree.__init__4s>��;�������r�]��
���=�����
�&�w��D�9��	r+c��U$�N���xs r)�<lambda>�MockTree.<lambda>=s��1r+c��U$rBrCrDs r)rFrG>s��r+c�.�URR$rB)r>�file_id�r?s r)�get_root_id�MockTree.get_root_id@s���y�y� � � r+c�H�[URR55$rB)�setr;�keysrKs r)�all_file_ids�MockTree.all_file_idsCs���4�:�:�?�?�$�%�%r+c�H�[URR55$rB)rOr;�valuesrKs r)�all_versioned_paths�MockTree.all_versioned_pathsFs���4�:�:�$�$�&�'�'r+c��g)NFrC�r?�paths  r)�
is_executable�MockTree.is_executableIs��r+c��XRR:XaUR$URXRU5$rB)r>rJ�
make_entryr;)r?rJs  r)�__getitem__�MockTree.__getitem__Ms4���i�i�'�'�'��9�9���?�?�7�J�J�w�,?�@�@r+c�(�XRU5$rB)�path2idrXs  r)�get_entry_by_path�MockTree.get_entry_by_pathSs���L�L��&�'�'r+c��[RRURU5nUS:XagURU$)Nr8)�osrY�dirnamer;r<)r?rJ�
parent_dirs   r)�	parent_id�MockTree.parent_idVs7���W�W�_�_�T�Z�Z��%8�9�
������x�x�
�#�#r+c#�b# �URR5H
upXU4v� M g7frB)r<�items�r?rYrJs   r)�iter_entries�MockTree.iter_entries\s)���!�X�X�^�^�-�M�D��W�
�%�%�.�s�-/c�0�XR;aSnU$SnU$)N�file�	directory)r=)r?rY�kinds   r)rr�
MockTree.kind`s$���=�=� ��D����D��r+c���SSKJnJnJn [	U[
5(d[
U5e[RRU5nURU5nURU5nURU5up�US:XaU"XU5nU$US:XaU"XU5nX�l
X�lU$US:XaU"XU5nU$[R "SR#U55e)Nr)r7�
InventoryFile�
InventoryLinkrqrp�symlinkzunknown kind {!r})rr7rurv�
isinstance�bytes�	TypeErrorrerY�basenamerrrh�contents_stats�	text_sha1�	text_sizer�BzrError�format)r?rJrYr7rurv�namerrrh�
text_sha_1r~�ies            r)r]�MockTree.make_entrygs���P�P��'�5�)�)��G�$�$��w�w����%���y�y�����N�N�7�+�	� $� 3� 3�D� 9��
��;��#�G�9�=�B��	��V�^��w�i�8�B�%�L�$�L�
�	�	�Y�
��w�i�8�B��	��/�/�"5�"<�"<�T�"B�C�Cr+c�|�[U[5(d[U5eX RU'XRU'grB)rxryrzr;r<)r?rJrYs   r)�add_dir�MockTree.add_dir|s1���'�5�)�)��G�$�$�"�
�
�7�� ����r+c��[U[5(d[U5eURX5 X0RU'grB)rxryrzr�r=)r?rJrYr=s    r)�add_file�MockTree.add_file�s2���'�5�)�)��G�$�$����W�#�&�
�
�d�r+c�8�URRU5$rB)r<�getrXs  r)ra�MockTree.path2id�s���x�x�|�|�D�!�!r+c�t�URU$![an[R"X5UeSnAff=frB)r;�KeyErrorr�NoSuchId)r?rJ�recurse�es    r)�id2path�MockTree.id2path�s7��	8��:�:�g�&�&���	8��/�/�'�0�a�7��	8�s��
7�2�7c���[5nURURU5 UR
SS5 U$![an[R
"U5UeSnAff=f�Nr)r�writer=r��_mod_transport�
NoSuchFile�seek)r?rY�resultr�s    r)�get_file�MockTree.get_file�s]�����	9��L�L����t�,�-�	���A�q���
���	9� �+�+�D�1�q�8��	9�s�>�
A$�A�A$c�L�URRU5R$rB)rrbrrXs  r)�get_file_revision�MockTree.get_file_revision�s���~�~�/�/��5�>�>�>r+c�L�URRU5R$rB)rrbr~rXs  r)�
get_file_size�MockTree.get_file_size�����~�~�/�/��5�?�?�?r+Nc�L�URRU5R$rB)rrbr}rls   r)�
get_file_sha1�MockTree.get_file_sha1�r�r+c��XR;ag[R"URU55nU[	URU54$)N�NN)r=r�sha_filer��len)r?rYr}s   r)r|�MockTree.contents_stats�sA���}�}�$���$�$�T�]�]�4�%8�9�	��#�d�m�m�D�1�2�2�2r+)r=r<r;r>)�downrB)�__name__�
__module__�__qualname__�__firstlineno__r:�propertyr�root_inventoryrLrQrUrZr^rbrhrmrrr]r�r�rar�r�r�r�r�r|�__static_attributes__rCr+r)r3r33s��:���%�I��k�*�N�!�&�(��A�(�$�&���*!�'�"�8��?�@�@�3r+r3c�f�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrg)�BTreeTester�z2A simple unittest tester for the BundleTree class.c���[5nURSS5 URSS5 URSSS5 URSS	5 [US
5U4$)N�a�grandparent�b�grandparent/parent�c�grandparent/parent/file�Hello
�dzgrandparent/alt_parentr+)r3r�r�r)r?�mtrees  r)�make_tree_1�BTreeTester.make_tree_1�sX���
��
�
�
�d�M�*�
�
�
�d�0�1�
���t�6�
�C�
�
�
�d�4�5��%��%�u�,�,r+c�
�UR5SnURURS5S5 URURS5S5 URURS5S5 URURS5S5 URURS5S5 URURS5S5 URUR	S5S5 URUR	S5S5 URUR	S5S5 URUR	S5S	5 URUR	S
5S	5 URUR	S5S	5 UR
SS5 URURS5S	5 URURS5S	5 URURS5S	5 URURS5S5 URURS5S
5 URURS5S5 URUR	S5S5 URUR	S
5S5 URUR	S5S5 URUR	S5S	L5 URUR	S5S	L5 URUR	S5S	L5 UR
SS5 URURS5S5 URURS5S5 URURS5S
5 URUR	S5S5 URUR	S5S5 URUR	S
5S5 URUR	S
5S	L5 URUR	S5S	L5 UR
SS5 URURS5S5 URURS5S5 URURS5S5 URUR	S5S5 URUR	S5S5 URUR	S5S5 URUR	S
5S	L5 g	)z<Ensure that file renames have the proper effect on children.rr�r�r�r�r�r��grandparent2Nzgrandparent2/parentzgrandparent2/parent/filezgrandparent2/parent2zgrandparent2/parent2/filezgrandparent2/parent2/file2)r��assertEqual�old_pathr�ra�assertIs�note_rename�
assertTrue�r?�btrees  r)�test_renames�BTreeTester.test_renames�s4��� � �"�1�%��������
�6�
�F�������(<�=�?S�T�����N�N�4�5�7P�	
�	
������t�,�m�<�������t�,�.B�C�������t�,�.G�H�������}�5�t�<�������';�<�d�C�������'@�A�4�H��
�
�e�m�m�N�3�T�:��
�
�e�m�m�$9�:�D�A��
�
�e�m�m�$>�?��F�
���-��8��
�
�e�n�n�]�3�T�:��
�
�e�n�n�%9�:�D�A��
�
�e�n�n�%>�?��F�������t�,�n�=�������t�,�.C�D�������t�,�.H�I�������~�6��=�������'<�=�t�D�������'A�B�D�I�����
�
�m�4��<�=�����
�
�&:�;�t�C�D�����
�
�&?�@�D�H�I�
���.�0F�G�������t�,�n�=�������t�,�.D�E�������t�,�.I�J�������~�6��=�������'=�>��E�������'B�C�T�J�����
�
�&;�<��D�E�����
�
�&@�A�T�I�J�
���3�5Q�R�������t�,�n�=�������t�,�.D�E�������t�,�.J�K�������~�6��=�������'=�>��E�������'C�D�d�K�����
�
�&A�B�d�J�Kr+c��UR5SnURSS5 URURS5S5 URUR	S5S5 URUR	S5SL5 g)z:Ensure that file moves have the proper effect on children.rr��grandparent/alt_parent/filer�N)r�r�r�r�rar�r�s  r)�
test_moves�BTreeTester.test_moves�sv��� � �"�1�%��
���3�5R�S�������t�,�.K�L�������'D�E�t�L�����
�
�&?�@�D�H�Ir+c��[5n[R"SUSX#5 URSS5 UR	5$)N�old�newr)rr�
internal_diffr��read)r?r�r��outs    r)�unified_diff�BTreeTester.unified_diff�s6���i�����5�#�u�c�7�����A���x�x�z�r+c�
�UR5SnURSS5 UR[RUR
S5 UR
URS55 URSS5 U$)Nrr�r��e)	r�r��assertRaisesrr�r��assertFalse�is_versioned�note_idr�s  r)�make_tree_2�BTreeTester.make_tree_2so��� � �"�1�%��
���3�5R�S����&�/�/�5�=�=�$�?�����+�+�,E�F�G�
�
�
�d�5�6��r+c���UR5nUR/S/5nURSU5 URSSSS9 UR	SS5 URU5 g)	zFile/inventory adds.�
Extra cheese
r��f�grandparent/parent/symlinkrw�rr�venusN)r�r��
note_patchr��note_target�	adds_test)r?r��	add_patchs   r)�	test_adds�BTreeTester.test_addssg��� � �"���%�%�b�+<�*=�>�	�
���2�I�>�
�
�
�d�8�y�
�I�
���6��@����u�r+c�`�URURS5S5 URURS5S5 URS5nURUR	5S5 SSS5 URURS5S5 g!,(df   N0=f)Nr�r�r�r�r�)r�r�rar�r��get_symlink_target�r?r��fs   r)r��BTreeTester.adds_tests���������t�,�.G�H�������'@�A�4�H�
�^�^�5�
6�!����Q�V�V�X�'8�9�7�����$�$�%A�B�G�	
�7�
6�s�!B�
B-c��UR5upURSSS5 URSS5 URSS5 U$)Nr�zgrandparent/parent/topping�
Anchovies
r�r��grandparent/alt_parent/stopping)r�r�r�)r?r�r�s   r)�make_tree_3�BTreeTester.make_tree_3sP���'�'�)���
���t�9�>�J�
���3�5R�S�
���(�*K�	
��r+c�l�URURS55nURUR5S5 SSS5 URURS55nURUR5S5 SSS5 g!,(df   NX=f!,(df   g=f)Nr��Lemon
r�r�)r�r�r�r�r�s   r)�
get_file_test�BTreeTester.get_file_test#sy��
�^�^�E�M�M�$�/�
0�A����Q�V�V�X�z�2�1�
�^�^�E�M�M�$�/�
0�A����Q�V�V�X�z�2�1�
0�1�
0��
0�
0�s�!B�*!B%�
B"�%
B3c��UR5nURS/S/5nURSU5 URU5 g)zGet file contents.r�r�r�N)r�r�r�r�)r?r��	mod_patchs   r)�
test_get_file�BTreeTester.test_get_file)sF��� � �"���%�%�~�&6���E�	�
���:�I�F����5�!r+c��UR5SnURURS55nURUR	5S5 SSS5 URS5 UR
[RURS5 URURS55 g!,(df   Nk=f)zDeletion by bundle.rr�r�Nr�)r�r�r�r�r��
note_deletionr�rr�r�r�r�s   r)�test_delete�BTreeTester.test_delete0s���� � �"�1�%��
�^�^�E�M�M�$�/�
0�A����Q�V�V�X�z�2�1�
���5�6����&�/�/�5�=�=�$�?�����+�+�,E�F�G�	1�
0�s�!B:�:
Cc�8�[UR55nU$rB)�sortedrQ)r?�treer<s   r)�
sorted_ids�BTreeTester.sorted_ids9s���T�&�&�(�)���
r+c�b�UR5SnURURU5[RSSSS/5 URS5 UR
SSS	S
9 URSS5 URURU5[RSSSS/5 g)
z1Ensure that iteration through ids works properly.rr�r�r�r�r�r�zgrandparent/alt_parent/foolrqr��revisionidiguessN)r�r�rrr6rr��note_last_changedr�s  r)�test_iteration�BTreeTester.test_iteration=s���� � �"�1�%������O�O�E�"�Y�%6�%6��d�D�$�$O�	
�	���5�6�
�
�
�d�9��
�L�
��� =�?Q�R�����O�O�E�"�Y�%6�%6��d�D�$�$O�	
r+rCN)r�r�r�r��__doc__r�r�r�r�r�r�r�r�r�r�rrr
r�rCr+r)r�r��sJ��<�-�;L�zJ����
��3�"�H��
r+r�c�&�\rSrSrSrSrSrSrg)�
BundleTester1iKc	��[R"5n[R"5Ul[S5nUR
SUS9nUR[RURUR/0[55 g)N�0.8�.�r�)
r�BzrDirMetaFormat1r�RepositoryFormatKnit3�repository_formatr�make_branchr�r�IncompatibleBundleFormatr��
repositoryr�r?r��
serializer�bs    r)�test_mismatched_bundle�$BundleTester1.test_mismatched_bundleLsr���)�)�+��#+�#A�#A�#C�� �(��/�
����S���0������+�+����
�L�L����I�
	
r+c���[R"5n[R"5Ul[S5nUR
SUS9nURUR/0[55 g)z=Don't raise IncompatibleBundleFormat for knit2 and bundle0.9.�0.9rrN)
rrrrrrrr�rrrs    r)�test_matched_bundle�!BundleTester1.test_matched_bundleZsZ���)�)�+��#+�#A�#A�#C�� �(��/�
����S���0��������r�2�w�y�9r+c�*�[R"5n[R"5UlURSUS9nUR
SSS9 UR
SSS9 [5n[URRSSUS	S9 URS
5 [R"5n[R"5UlURSUS9nUR[R ["UR[%U55 g)
z)Try copying a bundle from knit2 to knit1.�sourcer�one�one-id��rev_id�twostwo-id�null:r"r�targetN)rrrrr�make_branch_and_tree�commitrr�branchrr��RepositoryFormatKnit1rr�r�IncompatibleRevisionrr)r?r�r&�textr-s     r)�test_mismatched_model�#BundleTester1.test_mismatched_modelbs����)�)�+��#+�#A�#A�#C�� ��*�*�8�F�*�C���
�
�e�I�
�.��
�
�e�I�
�.��y���V�]�]�-�-�y�(�D�QV�W��	�	�!���)�)�+��#+�#A�#A�#C�� ��!�!�(�6�!�:������'�'��������		
r+rCN)r�r�r�r�rr#r4r�rCr+r)rrKs��
�:�
r+rc�&�\rSrSrSrS,SjrS-SjrSrS,SjrSr	S	r
S
rSrS,Sjr
S,S
jrSrSrSrSrSrSrSrSrSr\S5rSrSrSrSrSrSrSr Sr!S r"S,S!jr#S"r$S#r%S$r&S%r'S&r(S'r)S(r*S)r+S*r,S+r-g).�BundleTesterixc�d�[R"5n[R"5UlU$rB�rrrr1r�r?r�s  r)�
bzrdir_format�BundleTester.bzrdir_formaty�&���)�)�+��#+�#A�#A�#C�� ��
r+Nc�h�UcUR5n[RRXU5$rB)r;r	�TestCaseWithTransportr.)r?rYr�s   r)r.�!BundleTester.make_branch_and_tree~s.���>��'�'�)�F��*�*�?�?��F�S�Sr+c�d�UcUR5n[RRXX#S9$)N)r�)r;r	r?r)r?rYr�r�s    r)r�BundleTester.make_branch�s1���>��'�'�)�F��*�*�6�6�t�6�6�U�Ur+c��[5n[URRX!X0RS9nURS5 UR
UR5SURRS5-5 UR
UR5S5 URRRU5 UR
UR5RS5S5 URS5 X44$)Nrr�# Bazaar revision bundle v%s
�ascii�#
zutf-8z# message:
)rr�b1rr�r�r��readline�encode�get_revision�decode�r?�base_rev_idr*�
bundle_txt�rev_idss     r)�create_bundle_text�BundleTester.create_bundle_text�s����Y�
���G�G����Z���
��	�����������!�-����0B�0B�7�0K�K�	
�	
����,�,�.��7������'�'��/�����,�,�.�5�5�g�>��O�������"�"r+c	�(�URX5upE[U5nURRnURH�nURUR5n	SH'n
UR[X�5[X�55 M) UR[U	R5[UR55 M� URXVRVs/sHo�RPM sn5 URXUS9 U$s snf�z�Create a bundle from base_rev_id -> rev_id in built-in branch.
Make sure that the text generated is valid, and that it
can be applied against the base, and generate the same information.

:return: The in-memory bundle
)	�inventory_sha1r0�
parent_ids�	timestamp�timezone�message�	committerrU�
properties��checkout_dir)rPrrGr�real_revisionsrJr0r��getattrr�rU�valid_apply_bundle�r?rMr*r\rNrO�bundler�
bundle_rev�
branch_rev�a�rs            r)�get_valid_bundle�BundleTester.get_valid_bundle�s���#�5�5�k�J��
��Z�(���W�W�'�'�
� �/�/�J�
$�0�0��1G�1G�H�J�
��� � ���!7���9O�P�
�
���S��!6�!6�7��Z�=R�=R�9S�T�%0�&	
����:O�:O�"P�:O�Q�=�=�:O�"P�Q�����,��O��
��#Qs�!D
c��URX5up4UR5RSS5n[U5n[	U5nURX5 U$)��Create a bundle from base_rev_id -> rev_id in built-in branch.
Munge the text so that it's invalid.

:return: The in-memory bundle
s
executable:nosexecutable:yes)rP�getvalue�replacerrr_)r?rMr*rNrO�new_textras       r)�get_invalid_bundle�BundleTester.get_invalid_bundle�s[��#�5�5�k�J��
��&�&�(�0�0�1A�CT�U���X�&�
��Z�(������4��
r+c�`�UR[R[[	S55 g)N�
#!/bin/sh
)r�r�
NotABundlerrrKs r)�test_non_bundle�BundleTester.test_non_bundle�s�����&�+�+�[�'�.�:Q�Rr+c�`�UR[R[[	S55 g)Ns# Bazaar revision bundle v)r�r�	BadBundlerrrKs r)�test_malformed�BundleTester.test_malformed�s#��������k�7�3P�+Q�	
r+c�b�[[S55 g![Ra gf=f)Ns# Bazaar revision bundle v0.8
)rrrrurKs r)�test_crlf_bundle�BundleTester.test_crlf_bundle�s/��	��� D�E�F�����	�
�		�s��.�.c
��UcI[R"SSS9n[RR	U[R
"55nO:[RR
U5(d[R"U5 URU5n[5n[URRUSX@RS9nURS5 URUR!5["5 [%UR&R[)U55 UGH&nURRR+U5nUR&RR+U5nUR-5 UR-5 UR/U5n	UR1U	R35SRU55 UR55HRn
UR7U
5nUR=UR?5UR7U
5R?55 MT SSS5 SSS5 GM) [@RB"U5(d�UR&REU5 URG5 UR/URRR+U55n	UR1U	R35S	RU	55 U$![8R:a GM.f=f!,(df   N�=f!,(df   GM=f)
z2Get a new tree, with the specified revision in it.Nztest-branch-r)�prefix�dirr,rrz!Revision {} not copied correctly.z"Working tree has modifications: {})$�tempfile�mkdtemprerY�relpath�getcwd�exists�mkdirr.rrrGrr�r��assertIsInstancerjryrr0r�
revision_treer-�changes_fromr��has_changedrUr�r�r�r�r��
_mod_revision�is_null�generate_revision_history�update)r?r*r\r�s�	ancestors�ancestorr�r��deltarY�old_files            r)�get_checkout�BundleTester.get_checkout�sR����#�+�+�>�s�K�L��7�7�?�?�<�����E�L��7�7�>�>�,�/�/�����&��(�(��6���I�� ��G�G�����!�K�K�
�	�	
���q�	����a�j�j�l�E�2��t�{�{�-�-�{�1�~�>�!�H��'�'�$�$�2�2�8�<�C��+�+�(�(�6�6�x�@�C�����#�-�-�/��(�(��-��� � ��%�%�'�7�>�>�x�H�� �3�3�5�D�!�#&�<�<��#5���$�$�X�]�]�_�c�l�l�4�6H�6M�6M�6O�P�6�#2���"�$�$�$�V�,�,��K�K�1�1�&�9��K�K�M��%�%�d�g�g�&8�&8�&F�&F�v�&N�O�E�����!�!�#�%I�%P�%P�QV�%W�
����*�4�4�!� �!��#2�/����sJ�
L/�AL�0L�AL�L/�L�L�L�L�
L,�(L/�/
L?	c��URXS9nUR5 URXU5 UR5 g!UR5 f=f)z_Get the base revision, apply the changes, and make
sure everything matches the builtin branch.
r[N)r��
lock_write�_valid_apply_bundle�unlock)r?rM�infor\�to_trees     r)r_�BundleTester.valid_apply_bundlesM���#�#�K�#�K������	��$�$�[��@��N�N���G�N�N��s�A�Ac��UR5nURRnUR5nURUR	U5S5 UR
HLnUR
UR	UR5(+SRUR55 MN [X#S[RSS5 UR
HGnUR
UR	UR5SRUR55 MI UR
URRR	UR55 URXBR/-UR55 UR
SnURRRUR5nURRRUR5n[!UR#55n[!UR#55n	UR[%U5[%U	55 ['X�5Hup�URX�5 M UH�up�p�[(R*"Xs5R-U5nURUR/U5UR/U55 URUR1U5UR1U55 M� g)NTz.Revision {{{}}} present before applying bundleFz-Missing revision {{{}}} after applying bundle���)�get_parent_idsr0rr��has_revisionr]r�r0r�rr�Merge3Mergerr-r�rGr��list�
list_filesr��ziprr��find_target_pathr�r�)r?rMr�r��original_parentsr�rev�	base_tree�
base_files�to_files�	base_file�to_filerY�_status�_kind�_entry�to_paths                 r)r�� BundleTester._valid_apply_bundles\��"�1�1�3���^�^�.�.�
�"�1�1�3���
�
�j�-�-�k�:�D�A��&�&�C��O�O��+�+�C�O�O�<�<�@�G�G��O�O��
�'�	�T�D�%�*<�*<�e�U�K��&�&�C��O�O��'�'����8�?�F�F�s���W�
�'�	
������1�1�>�>�t�{�{�K�L�	
���)�[�[�M�9�7�;Q�;Q�;S�T��!�!�"�%���G�G�&�&�4�4�S�_�_�E�	��.�.�+�+�9�9�#�/�/�J��
�)�.�.�0�1�
���*�*�,�-������Z��#�h�-�8�"%�j�";��I����Y�0�#<�-7�(�D�5��m�m�I�7�H�H��N�G�����'�'��-�w�/D�/D�W�/M�
�
����'�'��-�w�/D�/D�W�/M�
�
-7r+c�R
�URS5UlURRUlUR	S/5 URRSSS9 URR
S5 URRSSS	9 URS
S5 UR/SQ5 UR	SS
/5 URR5nURSURS/SS5 UR5 URRSSS9 URR/SQ5 URRSSS	9 URSS5 URS
S5 URR/SQ5 URR5nURS5nUR!SU5 UR5 URRSSS	9 URSS5 UR#[$R&[$R([$R*4UR,SS5 URS
S5 URR/SS5 URRSSS	9 URSS5 URS
S5 [1SS 5nUR3S!5 SSS5 [1S"S 5nUR3S#5 SSS5 [1S$S 5nUR3S%5 SSS5 URR/S&S'5 URRS(S)S	9 URSS)5 URR/S*S+5 URR/SS,5 URR/S+S5 URRS-S.SS/9 URS)S.5 UR5S)5n[7URRR8S)5n[7URR8S)5nUR;XV5 UR/S0S15 URS2S3S	9 URR=UR5 URRS4S5SS/9 URS.S55 g!,(df   GN=f!,(df   GN�=f!,(df   GN�=f)6NrG)�b1/one�one
r'r(�r<�root-id�add one�
a@cset-0-1r)r,)zb1/with space.txtzb1/dir/zb1/dir/filein subdir.czb1/dir/WithCaps.txtzb1/dir/ pre spacezb1/sub/zb1/sub/sub/zb1/sub/sub/nonempty.txt)zb1/sub/sub/emptyfile.txtr+)zb1/dir/nolastnewline.txtsbloop�
executablerpsexe-1Tzwith space.txtswithspace-id)	r}zdir/filein subdir.czdir/WithCaps.txtzdir/ pre spacezdir/nolastnewline.txt�sub�sub/sub�sub/sub/nonempty.txt�sub/sub/emptyfile.txtzadd whitespace�
a@cset-0-2)r�r�r�F�removed�
a@cset-0-3r}zsub/dirz
rename dirs
a@cset-0-4zb1/sub/dir/WithCaps.txt�abs
Adding some text
zb1/sub/dir/ pre spaces!
Adding some
DOS format lines
zb1/sub/dir/nolastnewline.txt�
zsub/dir/ pre spacezsub/ start spacezModified filess
a@cset-0-5zsub/dir/WithCaps.txt�tempzWithCaps.txtzswap filenamess
a@cset-0-6�r*�verbosezsub/dir/nolastnewline.txtzsub/nolastnewline.txtzrename filesa@cset-0-6b�Merges
a@cset-0-7)r.�tree1r0rG�build_tree_contents�add�set_root_idr/rf�
build_tree�	transform�new_filer>�apply�remove�trans_id_tree_path�set_executabilityr�r�TestamentMismatch�VersionedFileInvalidChecksumrurm�
rename_one�openr�r�r1r�assertEqualDiff�merge_from_branch)r?�tt�trans_idr��other�	tree1_inv�	tree2_invs       r)�test_bundle�BundleTester.test_bundleEs1���.�.�t�4��
��*�*�#�#���� � �"6�!7�8��
�
���u�)��,��
�
���z�*��
�
���)�M��:����h�
�6�	
���	
�	
�	
� � �
.�0V�W�	
��Z�Z�
!�
!�
#��
���L�"�'�'�N�+;�X�t�L�
���
�	
�
�
���'�_��=��
�
���

�	
�	
�
�
���*�=��A����m�]�;�	
���h�
�6�	
�
�
���V�W�
�Z�Z�
!�
!�
#���(�(��6��
���U�H�-�
���
��
�
���)�M��:����m�]�;�����(�(��3�3�� � �
�

�#�#���		
�	
���h�
�6�	
�
�
���e�Y�/��
�
���,�}��=����m�]�;����h�
�6��+�T�
2�a�
�G�G�+�,�3�
�)�4�
0�A�
�G�G�>�?�1�
�0�$�
7�1�
�G�G�E�N�8��
�
���2�4F�G��
�
���*�=��A����m�]�;��
�
���4�f�=��
�
���.��?��
�
���f�&6�7��
�
���*�=�%��P����m�]�;��!�!�-�0��&�t�z�z�'8�'8�'C�'C�]�S�	�&�u�|�|�'>�'>�
�N�	����Y�2�
���4�6M�N�
���]�>��:��
�
�$�$�U�\�\�2��
�
���'�-���G����m�]�;�/3�
2��
0�
0��
7�
7�s$�#S3�	T�/T�3
T�
T�
T&c�L�SnUR[R"UR55 UR	S5UlUR
RUlUR
R5nURXRX$5 UR5 UR
RSSS9 URSS5n[USS5bFURURR S5nUR#X'R%U55 UR
R5nUR'U5nUR)SURU5 UR+U5 UR-X85 UR5 UR
RS	S
S9 URSS
5n[USS5bFURURR S
5nUR#X7R%S55 UR
R5nUR'S5nUR+U5 UR-SU5 UR5 UR
RSS
S9 URS
S
5nUR
R5nUR'S5nUR+U5 UR5 UR
RSSS9 URS
S5ng)Nslink-1rGzadd symlinks
l@cset-0-1r)r,r��link2zrename and change symlinks
l@cset-0-2�jupiterzjust change symlink targets
l@cset-0-3zDelete symlinks
l@cset-0-4)�requireFeaturer
�SymlinkFeature�test_dirr.r�r0rGr��new_symlinkr>r�r/rfr^r�rr�r�r��adjust_path�delete_contents�create_symlink)	r?�	link_name�link_target�new_link_target�link_idr�ra�	bund_treer�s	         r)�_test_symlink_bundle�!BundleTester._test_symlink_bundle�s��������H�3�3�D�M�M�B�C��.�.�t�4��
��*�*�#�#���
�Z�Z�
!�
!�
#��
���y�'�'�;�@�
���
��
�
���-�
��>��&�&�x��?���6�?�D�1�=��,�,�T�W�W�-?�-?��O�I����[�*F�*F�y�*Q�R�
�Z�Z�
!�
!�
#���(�(��3��
���w�����2�
���8�$�
���/�4�
���
��
�
���5�m��L��&�&�}�m�D���6�?�D�1�=��,�,�T�W�W�-?�-?��O�I����_�.J�.J�7�.S�T�
�Z�Z�
!�
!�
#���(�(��1��
���8�$�
���)�X�.�
���
��
�
���6�}��M��&�&�}�m�D��
�Z�Z�
!�
!�
#���(�(��1��
���8�$�
���
��
�
���*�=��A��&�&�}�m�D�r+c�*�URSSS5 g)N�linkzbar/foo�mars)r�rKs r)�test_symlink_bundle� BundleTester.test_symlink_bundle�s���!�!�&�)�V�<r+c�h�UR[R5 URSSS5 g)Nu€linku
bar/€fooumars€)r�r
�UnicodeFilenameFeaturer�rKs r)�test_unicode_symlink_bundle�(BundleTester.test_unicode_symlink_bundle�s-�����H�;�;�<��!�!��!7�9L�	
r+c��URS5UlURRUlURR	5nURSURS/S5 URSURS/S5 UR5 URRSS	S
9 URSS	5 URR	5nURS5nURU5 UR5 URRSS
S
9 URS	S
5 URR	5nURS5nURSURU5 URU5 URS/U5 UR5 URRSSS
9 URS
S5 URR	5nURS5nURU5 URS/U5 UR5 URRSSS
9 URSS5 URSS5 g)NrGrps	



�sbinary-1�file2s	



�sbinary-2z
add binarys
b@cset-0-1r)r,z
delete binarys
b@cset-0-2�file3sfile
contents
zrename and modify binarys
b@cset-0-3sfile
contentszjust modify binarys
b@cset-0-4)r.r�r0rGr�r�r>r�r/rfr�r�r��create_file)r?r�r�s   r)�test_binary_bundle�BundleTester.test_binary_bundle�s���.�.�t�4��
��*�*�#�#���
�Z�Z�
!�
!�
#��	���F�B�G�G�&E�%F��T�
���G�R�W�W�'F�&G��U�
���
��
�
���,�}��=����h�
�6��Z�Z�
!�
!�
#���(�(��0��
���8�$�
���
��
�
���/�-��@����m�]�;��Z�Z�
!�
!�
#���(�(��1��
���w�����2�
���8�$�
���3�4�h�?�
���
��
�
���4�]��K����m�]�;��Z�Z�
!�
!�
#���(�(��1��
���8�$�
���-�.��9�
���
��
�
���.�}��E����m�]�;�	
���h�
�6r+c���URS5UlURRUlURR	5nURSURS/S5 UR5 URRSSS9 URR	5nURS5nURU5 URS/U5 UR5 URRSS	S9 URS5nUR	5nURS
5nURU5 URS/U5 UR5 URSSS9 URRUR5 URRS
SSS9 URRS
SS9 URS	S5 g)NrGrpsfilezcreate files
a@lmod-0-1r)sfile2zmodify textsa@lmod-0-2ar�zmodify text in another treesa@lmod-0-2br�s
a@lmod-0-3Fr�s
a@lmod-0-4)r.r�r0rGr�r�r>r�r/r�r�r�r�r�rf)r?r�r�r�s    r)�test_last_modified�BundleTester.test_last_modifieds����.�.�t�4��
��*�*�#�#���
�Z�Z�
!�
!�
#��
���F�B�G�G�g�Y��8�
���
��
�
���-�
��>�
�Z�Z�
!�
!�
#���(�(��0��
���8�$�
����z�8�,�
���
��
�
���-���?��!�!�-�0��
�_�_�
���(�(��1��
���8�$�
����z�8�,�
���
�
���2�>��J��
�
�$�$�U�\�\�2��
�
���'�-���G��
�
���'�-��8����n�m�<r+c���URS5UlURRUl[	SS5nURS5 SSS5 URR
S5 URRSSS9 [	SS5nURS	5 SSS5 URRS
SS9 [	SS5nURS5 SSS5 URRS
S
S9 [5n[URRRS
SUURS9 URUR5S5 URURU5S5 URURU5S5 g!,(df   GNf=f!,(df   GN=f!,(df   N�=f)NrGr��wbr�r'�add filer�r)stwo
�modifyr�sthree
r�rstwosonesthree)r.r�r0rGr�r�r�r/rrrr��assertNotContainsRerj�assertContainsRe�get_raw)r?r��bundle_files   r)�test_hide_history�BundleTester.test_hide_history.sk���.�.�t�4��
��*�*�#�#���
�(�D�
!�Q�
�G�G�H��"��
�
���u���
�
���*�]��;�
�(�D�
!�Q�
�G�G�H��"��
�
���(�=��9�
�(�D�
!�Q�
�G�G�J��"��
�
���(�=��9��i����J�J���(�(�����;�;�	
�	
� � ��!5�!5�!7��D����d�l�l�;�7��@����d�l�l�;�7��B�)"�
!��"�
!��"�
!�s#�F/�G�G�/
F>�
G�
G!c���URS5UlURRSSS9 [5n[	URR
RSSU5 g)z<Ensure using the basis as the target doesn't cause an error.rGrr�r)N)r.r�r/rrr0r)r?rs  r)�test_bundle_same_basis�#BundleTester.test_bundle_same_basisHsS���.�.�t�4��
��
�
���*�]��;��i����J�J���(�(�-���	
r+c�"�UR5$rB)rj)rs r)r�BundleTester.get_rawQs���#�#�%�%r+c���UR[R5 [R"S5 [SS5nUR
S5UlURRUl	URSR55 UR5 URRS/S/S9 URRSS	S
S9 URSS	5 [SS5nURS
R55 UR5 URRSSS9 URS	S5 URR!SS5 URRSSSS9 URSS5 URR#S/5 URRSSS9 URSS5 URSS5 g)NrGub1/with Dod€ru7A file
With international man of mystery
William Dodé
uwith Dod€s
withdod-idr�ui18n commit from William Dodési18n-1u
William Dodé)r*rYr,uModified µ
�modifiedsi18n-2r)u	B€gforszrenamed, the new i18n mansi18n-3u
Erik Bågforsr�si18n-4)r�r
r�rer�r�r.r�r0rGr�rI�closer�r/rfr�r��r?r�s  r)�test_unicode_bundle� BundleTester.test_unicode_bundleUs������H�;�;�<�
������+�T�2���.�.�t�4��
��*�*�#�#���	���
K�S�S�U�	
�	
���	��
�
���/�0�}�o��F��
�
���.��'�	�	
�	
���h�	�2�
�+�T�2��	���!�(�(�*�+�	���	��
�
���*�Y��7����i��3�	
�
�
���5�7L�M��
�
���'�	�EV�	�	
�	
���i��3�	
�
�
���0�1�2��
�
���)�I��6����i��3�	
���h�	�2r+c�x�[RS;a[R"S5eUR	S5UlUR
RUlURS/5 UR
RS/5 UR
RSSS9 URS	S5 [SS
5nURS5 SSS5 UR
RSS
S9 URSS
5 UR
RSS5 UR
RSSS9 URS
S5 UR
RS/5 UR
RSSS9 URSS5 URS	S5 g!,(df   N�=f)N)�win32�cygwinz>Windows doesn't support filenames with tabs or trailing spacesrGzb1/trailing space ztrailing space zfunky whitespaceswhite-1r)r,r�sadd some text
zadd textswhite-2z start and end space �renameswhite-3r�swhite-4)�sys�platformr	�TestSkippedr.r�r0rGr�r�r/rfr�r�r�r�rs  r)�test_whitespace_bundle�#BundleTester.test_whitespace_bundle�sy���<�<�.�.��#�#�P��
��.�.�t�4��
��*�*�#�#������-�.�/��
�
���)�*�+�
	
�
�
���,�Z��@����h�
�3��&��
-��
�G�G�&�'�.��
�
���*�Z��8����j�*�5�	
�
�
���/�1H�I��
�
���(�:��6����j�*�5�	
�
�
���2�3�4��
�
���)�J��7����j�*�5�	
���h�
�3�'.�
-�s�F+�+
F9c��URS5UlURRUl[R
"5nURR
5 URUR5 URS/5 UR5 URRSSSSS9 URSS5nURS	nURS
UR5 URSUR5 URSUR 5 URR#5 g)NrG�newfileznon-hour offset timezonestz-1iXMg��,�A)r*rWrVr,rz'Mon 2006-07-10 20:51:26.000000000 +0530)�make_branch_and_memory_treer�r0rGr
�TreeBuilderr��
start_tree�build�finish_treer/rf�	revisionsr��daterWrVr�)r?�builderrar�s    r)�test_alt_timezone_bundle�%BundleTester.test_alt_timezone_bundle�s���5�5�d�;��
��*�*�#�#����)�)�+���
�
�������4�:�:�&��
�
�y�k�"�����	
�
�
���&���"�		�	
��&�&�x��9�����q�!�����B�C�H�H�M��������-�����s�}�}�5��
�
���r+c�(�URS5UlURRUlURR	SSS9 URSS5nUR
US5nURS5nURSU5 g)NrGrX�revid1r)r,r8)	r.r�r0rGr/rf�get_bundle_treer�r�)r?rar�
root_revisions    r)�test_bundle_root_id� BundleTester.test_bundle_root_id�s����.�.�t�4��
��*�*�#�#����
�
���)�I��6��&�&�x��;���#�#�F�I�6���.�.�r�2�
�����M�2r+c���URS5UlURRUlURR	SSS9 URSS5nUR
S5nURURRS55 URUR5nURURRS55 URSU5 g)NrGrXsrev2ar)r,�b2)
r.r�r0rGr/rfrr�rr��install_revisionsr�r�)r?ra�branch2�target_revisions    r)�test_install_revisions�#BundleTester.test_install_revisions�s����.�.�t�4��
��*�*�#�#����
�
���)�H��5��&�&�x��:���"�"�4�(������+�+�8�8��B�C� �2�2�7�3E�3E�F������*�*�7�7��A�B�����?�3r+c���URS5nUR5 URUR5 UR	S/S/S9 URSSSS.SS	9 URUlURS
S5up#[U5nURSnURSUR5 UR5nURSSSS.UR5 g
)�9Test serializing revision properties with an empty value.rr8�	TREE_ROOTr��Oner+�r'�empty�rev1��revpropsr*r,r��branch-nickr;r'N�rr��
addCleanupr�r�r/r0rGrPrr$r�r0�as_revisionrZ�r?r�
bundle_sio�revision_idsra�
revision_infor�s       r)�test_bundle_empty_property�'BundleTester.test_bundle_empty_property�s����/�/��7������������$����"��L�>��*����E�E�B�$?���P��+�+���#'�#:�#:�8�W�#M� �
��Z�(���(�(��+�
�����-�";�";�<��'�'�)�����"�R��>����	
r+c	���URS5nUR5 URUR5 UR	S/S/S9 URSSSSS	S
S.S9 URUlURS
S5up#[U5nURSnURSUR5 UR5nURSSSS	S
S.UR5 g)�AFor stability the writer should write properties in sorted order.rr8r8r�r9r<�4�3�2�1�rdr�c�d�r*r>r,r�r@rdrrQrRNrArDs       r)�test_bundle_sorted_properties�*BundleTester.test_bundle_sorted_properties�s����/�/��7������������$����"��L�>��*�����'�#�C�c�PS�,T�	�	
��+�+���#'�#:�#:�8�W�#M� �
��Z�(���(�(��+�
�����-�";�";�<��'�'�)�����"��3�S�s�K��N�N�	
r+c���URS5nUR5 URUR5 UR	S/S/S9 URSSSSS	.S
9 URUlURSS5up#[U5nURSnURSUR5 UR5nURSSSS
.UR5 g)�5We should be able to round trip a non-ascii property.rr8r8r�r9r<���omega�alpharSr,r�r@r\r]NrArDs       r)�test_bundle_unicode_properties�+BundleTester.test_bundle_unicode_propertiess����/�/��7������������$����"��L�>��*�	
����'�h��,R�	�	
��+�+���#'�#:�#:�8�W�#M� �
��Z�(���(�(��+�
�����-�";�";�<��'�'�)�����"�X��I��N�N�	
r+c�<�URS5nURUlURS/5 UR	S/5 URS5 URS/5 UR
S5 URSSS	9 URS
S5 g)Nr)�	tree/filescontent1rp�rev1)rbscontent2sghost�rev2�rev2r)r,)r.r0rGr�r�r/�add_parent_tree_idrf)r?rs  r)�test_bundle_with_ghosts�$BundleTester.test_bundle_with_ghostss����(�(��0���+�+���� � �"<�!=�>����&������F��� � �"<�!=�>�����)����F�7��+����h��0r+c��URSUS9nURUlURS/5 UR	S5 U$)NrGrzb1/filerp)r.r0rGr�r�)r?r�rs   r)�make_simple_tree�BundleTester.make_simple_tree'sA���(�(��f�(�=���+�+��������$�������r+c�l�URS5nURSSS9 URSSS9 [URSS5S5nUR	SS	S
9nURU5 SR
URS55nURUS5 URUS
5 g)N�knit�hellor<r)rer,rr/�dirstate-with-subtreerr+s
format="5"s
format="7")
rjr/rrP�make_repositoryr1�join�_get_inventory_xmlrr)r?rrar/�inv_texts     r)�test_across_serializers�$BundleTester.test_across_serializers.s����$�$�V�,�����G�G��,����G�G��,��T�4�4�X�w�G��J�K���#�#�F�3J�#�K��� � ��&��8�8�D�3�3�G�<�=��� � ��=�9����h�
�6r+c���URS5nURSSS9 URSSS9 [URSS5S5nUR	SS	S
9nURU5 U$)Nrmrnr<r)rer,rr/ror)rjr/rrPrpr1)r?rrar/s    r)�"make_repo_with_installed_revisions�/BundleTester.make_repo_with_installed_revisions9sw���$�$�V�,�����G�G��,����G�G��,��T�4�4�X�w�G��J�K���#�#�F�3J�#�K��� � ��&��r+c��UR5nURS5nURSURR5 URR
nUR
5 URUR5 URUS4SUS4US440URRUS4US4/55 g)Nrer<rC)rw�
get_inventoryr�r>rrJr-rBr��texts�get_parent_map)r?r/�inv�root_ids    r)�test_across_models�BundleTester.test_across_modelsBs����6�6�8��� � ��)������#�(�(�"3�"3�4��(�(�"�"������������$�����w�
��g�w�%7�7�G�:L�9N�O��J�J�%�%���'9�G�W�;M�&N�O�	
r+c���UR5nURS5RnSRUR	S55nUR[R"U5U5 g)Nrer+)rwrJrTrqrrr�r�
sha_string)r?r/�recorded_inv_sha1�xmls    r)� test_inv_hash_across_serializers�-BundleTester.test_inv_hash_across_serializersNs\���6�6�8�� �-�-�g�6�E�E���h�h�t�.�.�w�7�8������+�+�C�0�2C�Dr+c���URS5nURSSS9 URSSS9 [URSS5S5nURS	S
S9nURU5 [URSS5S5nUR[RURU5 g![R
an[R"S5UeSnAff=f)Nrornr<r)rer,r�"Format 0.8 doesn't work with knit3r/rmr)rjr/rrPrrr	rrpr1r�r2)r?rrar�r/s     r)�test_across_models_incompatible�,BundleTester.test_across_models_incompatibleTs����$�$�%<�=�����G�G��,����G�G��,�	Q� ��!8�!8��7�!K�A�!N�O�F��#�#�F�6�#�:��� � ��&��T�4�4�X�w�G��J�K�����&�5�5�v�7O�7O�QU�V��
�.�.�	Q��#�#�$H�I�q�P��	Q�s�B<�<C,�C'�'C,c��UR5nURSSS9 URSSS9 [URSS5S5nUR	UR
R5nURSU5 g)Nrnr<r)rer,r)Nr<�inapplicable)rjr/rrP�get_merge_requestr0rr�)r?rrar�s    r)�test_get_merge_request�#BundleTester.test_get_merge_requestbsw���$�$�&�����G�G��,����G�G��,��T�4�4�X�w�G��J�K���)�)�$�+�+�*@�*@�A�����8�&�Ar+c�n�URSSS9nURUlURSSS9 URS5 UR	SSS9 [UR
S	S5S
5n[U[R5(a[R"S5eURS
SS9nUR[R UR"U5 URSSS9nUR#U5 g![Ran[R"S5UeSnAff=f)Nrrorztree/subtree�subtreernr<r)r,rr�z%Format 0.9 doesn't work with subtreesr/rm�repo2)r.r0rGr�r/rrPrrr	rrxr�BundleInfo09rpr�r2r1)r?rrar�r/r�s      r)�test_with_subtree�BundleTester.test_with_subtreejs"���(�(��8O�(�P���+�+����!�!�.�9P�!�Q���������G�G��,�	Q� ��!8�!8��7�!K�A�!N�O�F��f�c�.�.�/�/��#�#�$K�L�L��#�#�F�6�#�:�����&�5�5�v�7O�7O�QU�V��$�$�W�5L�$�M��� � ��'���.�.�	Q��#�#�$H�I�q�P��	Q�s�D�D4�D/�/D4c��URS5UlURRUlURR	SSS9 URSS5 g![
an[R"S5UeSnAff=f)NrzRevision/id/with/slashessrev/idr)z4Repository doesn't support revision ids with slashesr,)	r.r�r0rGr/�
ValueErrorr	rrf)r?r�s  r)�test_revision_id_with_slash�(BundleTester.test_revision_id_with_slash{s���.�.�v�6��
��*�*�#�#���	��J�J���8���K�
	
���h�	�2��	�	��#�#�F���
��	�s�A � 
B�*B�Bc��URS5UlURRUlUR	S/5 URRSSS9 URR
SSS9 UR	S	/5 URRS
SS9 URR
S5nURRRS
5R5nUR	S/5 URR
SSS9 URSS5n[USS5c[R"S5eUR5R5VVVVVs1sHupEpgnUcMX�4iM n	nnnnnUR!SSU41U	5 UR#URR$5 gs snnnnnf)zAMake sure we don't accidentally write to the wrong versionedfile.r)�
tree/file2s	contents1r��file2-idr�rcsrevar))z
tree/file3s	contents2r�sfile3-idrdr-)r�s	contents3�rev3�rev3�get_bundle_readerNz#Bundle format cannot provide reader)r�r�)r.r�r0rGr�r�r/�
controldir�sprout�open_workingtreerfr^r	rr��iter_recordsr�r1r)
r?rdr-rar�m�krer��file_idss
          r)�test_skip_file�BundleTester.test_skip_file�s����.�.�v�6��
��*�*�#�#���� � �">�!?�@��
�
���w�K��0��
�
���&���1�� � �">�!?�@�	
�
�
���w�K��0��z�z� � ��(�����&�&�-�-�h�7�H�H�J��� � �">�!?�@��
�
���&���1��&�&�w��8���6�.��5�=��#�#�$I�J�J�"(�!9�!9�!;�!H�!H�!J�
�!J�
��a�A��
�Q�F�!J�	�
�
	
���0�;��2E�F��Q�� � ����!9�!9�:��

s�8G�G)rGr�rBr�).r�r�r�r�r;r.rrPrfrmrrrvryr�r_r�r�r�r�r�r�r�rr
�staticmethodrrrr'r-r4rHrUr_rgrjrtrwrr�r�r�r�r�r�r�rCr+r)r7r7xs����
T�
V�
#�""�H�S�
�
�)�V	�.�hl<�\+E�Z=�
�(7�T=�6C�4
��&��&�/3�b&4�P�43�	4�
�"
�*
�4	1��	7��

�E�W�B�(�"	3�;r+r7c�6�\rSrSrSrSrSrSrSrSr	Sr
g	)
�V08BundleTesteri�rc��URS5nUR5 URUR5 UR	S/S/S9 URSSSS.SS	9 URUlURS
S5up#URUR5S5 [U5nURSnURSUR5 UR5nURSSSS
.UR 5 g)r7rr8r8r�r9r+r:r<r=r,s=# properties:
#   branch-nick: tree
#   empty: 
#   one: two
rr?N�rr�rBr�r�r/r0rGrPrrjrr$r�r0rCrZrDs       r)rH�*V08BundleTester.test_bundle_empty_property�s����/�/��7������������$����"��L�>��*����E�E�B�$?���P��+�+���#'�#:�#:�8�W�#M� �
�������!�P�	
��Z�(���(�(��+�
�����-�";�";�<��'�'�)�����"�R��>����	
r+c�H�URS5nURUS5$)Nr/r*)rpr��r?rar0rs    r)r+�V08BundleTester.get_bundle_tree�s%���)�)�&�1�
��#�#�J�	�:�:r+c��URS5nUR5 URUR5 UR	S/S/S9 URSSSS.SS	9 URUlURS
S5up#UR5nURS5[S5-n[US
UXES-S
-5nURUR5S5 [U5nURSnUR!SUR"5 UR%5nUR!SSSS.UR&5 g
)aTest serializing revision properties with an empty value.

Older readers had a bug when reading an empty property.
They assumed that all keys ended in ': \n'. However they would write an
empty value as ':\n'. This tests make sure that all newer bzr versions
can handle th second form.
rr8r8r�r9r+r:r<r=r,s#   empty: s
#   empty:N�s<# properties:
#   branch-nick: tree
#   empty:
#   one: two
rr?)rr�rBr�r�r/r0rGrPrj�findr�rrrr$r�r0rCrZ)	r?rrErF�txt�locrarGr�s	         r)�test_bundle_empty_property_alt�.V08BundleTester.test_bundle_empty_property_alt�s7���/�/��7������������$����"��L�>��*����E�E�B�$?���P��+�+���#'�#:�#:�8�W�#M� �
��!�!�#���h�h�~�&��]�);�;���S��#�Y��1�W�Y��7�8�
�������!�O�	
��Z�(���(�(��+�
�����-�";�";�<��'�'�)�����"�R��>����	
r+c	�&�URS5nUR5 URUR5 UR	S/S/S9 URSSSSS	S
S.S9 URUlURS
S5up#URUR5S5 [U5nURSnURSUR5 UR5nURSSSS	S
S.UR 5 g)rKrr8r8r�r9r<rLrMrNrOrPrSr,sH# properties:
#   a: 4
#   b: 3
#   branch-nick: tree
#   c: 2
#   d: 1
rrTNr�rDs       r)rU�-V08BundleTester.test_bundle_sorted_properties�s���/�/��7������������$����"��L�>��*�����'�#�C�c�PS�,T�	�	
��+�+���#'�#:�#:�8�W�#M� �
�������!�
�	
��Z�(���(�(��+�
�����-�";�";�<��'�'�)�����"��3�S�s�K��N�N�	
r+c��URS5nUR5 URUR5 UR	S/S/S9 URSSSSS	.S
9 URUlURSS5up#URUR5S5 [U5nURS
nURSUR5 UR5nURSSSS.UR 5 g)rXrr8r8r�r9r<rYrZr[rSr,s@# properties:
#   alpha: α
#   branch-nick: tree
#   omega: Ω
rr^Nr�rDs       r)r_�.V08BundleTester.test_bundle_unicode_properties�s����/�/��7������������$����"��L�>��*�	
����'�h��,R�	�	
��+�+���#'�#:�#:�8�W�#M� �
�������!�
%�	
��Z�(���(�(��+�
�����-�";�";�<��'�'�)�����"�X��I��N�N�	
r+�rGN)r�r�r�r�r�rHr+r�rUr_r�rCr+r)r�r��s!��
�F�
�*;�
�@
�<
r+r�c��\rSrSrSrSrSrg)�V09BundleKnit2Testerir"c�d�[R"5n[R"5UlU$rB)rrrrrr:s  r)r;�"V09BundleKnit2Tester.bzrdir_format"r=r+rCN�r�r�r�r�r�r;r�rCr+r)r�r����
�F�r+r�c��\rSrSrSrSrSrg)�V09BundleKnit1Testeri(r"c�d�[R"5n[R"5UlU$rBr9r:s  r)r;�"V09BundleKnit1Tester.bzrdir_format+r=r+rCNr�rCr+r)r�r�(r�r+r�c�P�\rSrSrSrSSjrSrSrSrSr	\
S	5rS
rSr
g)
�V4BundleTesteri1rLNc	�<�URX5upE[U5nURRnURH�nURUR5n	SH'n
UR[X�5[X�55 M) UR[U	R5[UR55 M� UR[U5URVs1sHo�RiM sn5 URXUS9 U$s snfrS)
rPrrGrr]rJr0r�r^r�rUrOr_r`s            r)rf�V4BundleTester.get_valid_bundle4s���#�5�5�k�J��
��Z�(���W�W�'�'�
� �/�/�J�
$�0�0��1G�1G�H�J�
��� � ���!7���9O�P�
�
���S��!6�!6�7��Z�=R�=R�9S�T�%0�&	
����W��v�?T�?T�'U�?T�!�
�
�?T�'U�V�����,��O��
��(Vs�+D
c���SSKJn URX5upEUR[	SRU555nUR
SS5nUR
SS5n[	5nURURS55 URS	5 UR[R"U55 URS
5 [U5nURX5 U$)rir�rr+�<file file_id="exe-1"�$<file executable="y" file_id="exe-1"sB260sB275rLr�r)rarrPrrrqrkr��_get_bundle_header�bz2�compressr�rr_�r?rMr*rrNrOrlras        r)rm�!V4BundleTester.get_invalid_bundleXs���	(�"�5�5�k�J��
��<�<������(<� =�>���#�#�$�&M�
���#�#�G�W�5���Y�
�����6�6�s�;�<������������h�/�0�������Z�(������4��
r+c��[5n[URRX!X0RS9nURS5 UR
UR5SURRS5-5 UR
UR5S5 URRRU5 URS5 X44$)NrrrDrErF)
rrrGrr�r�r�rHrIrJrLs     r)rP�!V4BundleTester.create_bundle_textos����Y�
���G�G����Z���
��	�����������!�-����0B�0B�7�0K�K�	
�	
����,�,�.��7������'�'��/�������"�"r+c�h�URS5nURU5 URU5$)Nr/)rpr1r�r�s    r)r+�V4BundleTester.get_bundle_tree~s1���)�)�&�1�
�� � ��,��'�'��4�4r+c��URS5nURS/5 URSSS9 URSSS9 URS	/5 URS
SS9 [	5n[S5nUR
5 URURRSS
U5 SSS5 URS5 URS5nURRn[XSRU55 UR
5 URUR5 URSS/5VVs0sHupgUSR!U5_M nnnUR#SSS.U5 UR%S5 UR&n	UR)U	R+S/5S/SS/5 UR#S
UR-S5R.5 g!,(df   GNI=fs snnf)Nr)rb�contents1
static
rp�fileid-2r�z
added filer<r))rb�contents2
static
zchanged filerez1.0r,rr-)r�r<rO)r�rerNr+r�r�)rOrN)re))r<)r.r�r�r/rrr-rr0rr�rr�rBr��iter_files_bytesrqr�r�r.�assertSubsetr|rJrX)
r?rr�r�tree2�target_repo�i�content�
repo_texts�inventory_vfs
          r)�
test_creation�V4BundleTester.test_creation�s����(�(��0��� � �"G�!H�I�����[��)����L���1�� � �"G�!H�I����N�7��3��I��'��.�
�
�^�^�
��#�#�D�K�K�$:�$:�G�X�q�Q��	���q�	��)�)�(�3���l�l�-�-���{�O�O�A�$6�7���������*�*�+�*�:�:�,�.I�J��
��
��
�s�x�x�� � ��	�
�	
���(�/E�F�
�	
�	�!�!�'�*�"�.�.�����
�
(�
(�*��
6�z�
B�C�
�=�!�	
�	
�����)A�)A�'�)J�)R�)R�S�3�
��
s�)G6�H�6
Hc���URS5 UR5 UR5 UR5n[R"SRU55$)Nrr+)r�rH�	readlinesr��
decompressrq)r�liness  r)r�V4BundleTester.get_raw�sM����������������%�%�'���~�~�c�h�h�u�o�.�.r+c��^�URS5nSSKJn SSKmTRR
nURnURnURSSSS9 URURRS55 TRRTRl[R"5nURUS9RSSSUS	9 U4S
jnURURS55 UTRlURS5nURRn	[5n
[!S5nUR#5 UR%URRSS
U
5 SSS5 U
R'S5 [)X�R+U
55 URU	RS55 UR-U	R/S5UR/S55 U
R'S5 [)X�R+U
55 g!UTRlf=f!,(df   N�=f)N�tree_ar�baseT�A)�allow_pointlessr*)�config_stack�B)rXr�r*�working_treec�X>�TRRS5RU5$rB)�gpg�LoopbackGPGStrategy�sign)r3�breezys �r)r��1V4BundleTester.test_copy_signatures.<locals>.sign�s#����z�z�5�5�d�;�@�@��F�Fr+�tree_brLr,)r.�
breezy.commitr/�
breezy.gpgr��GPGStrategyr0rr��has_signature_for_revision_idr�r�MustSignConfig�Commitr�rrr-rr�rr�r��get_signature_text)
r?r�r/�oldstrategyr0�repo_a�
new_configr�r��repo_br�rr�s
            @r)�test_copy_signatures�#V4BundleTester.test_copy_signatures�s�����*�*�8�4��&���j�j�,�,�������"�"���
�
�f�d�4�
�@�����*�*�H�H��N�O�
	1�%+�Z�Z�%C�%C�F�J�J�"�$�3�3�5�J��M�M�z�M�2�9�9���T�PV�
:�
�
G�
�O�O�F�@�@��F�G�%0�F�J�J�"��*�*�8�4�����)�)���I��'��,�
�
�
�
�
��#�#�F�M�M�$<�$<�d�H�a�P� �	���q�	��v���q�1�2�����<�<�T�B�C�����%�%�d�+�V�-F�-F�t�-L�	
�	
���q�	��v���q�1�2��&1�F�J�J�"��
 �
�s�A?H;�#)I�;I�
IrCrB)r�r�r�r�r�rfrmrPr+r�r�rrr�rCr+r)r�r�1s<��
�F�"�H�.
#�5�
"T�H�/��/�&3r+r�c�D�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rg)�V4_2aBundleTesteri�c��g)N�2arCrKs r)r;�V4_2aBundleTester.bzrdir_format�s��r+c��SSKJn URX5upEUR[	SRU555nUR
US5 URSS5nURSS5n[	5nURURS	55 URS
5 UR[R"U55 URS5 [U5nURX5 U$)rirr�r+s(?m)B244

i 1
<inventoryr�r�sB244sB259rLr�r)rarrPrrrqrrkr�r�r�r�r�rr_r�s        r)rm�$V4_2aBundleTester.get_invalid_bundle�s���	(�"�5�5�k�J��
��<�<������(<� =�>��	
���h�(F�G��#�#�$�&M�
���#�#�G�W�5���Y�
�����6�6�s�;�<������������h�/�0�������Z�(������4��
r+c��URS5nUR5 URSSS/SS9 URS/S/SS9 URS/S/S	S9 URSS	/S/S
S9 UR5 UR	5UlUR
R
5 URUR
R5 g)Nr&)r�)r8r�rqN)r�)rpsfile-idrpsoriginal content
r��r0)r)rpsnew-content
�a@cset-0-2a)r�)z
other-filer�rpsfile2-content
�a@cset-0-2br�)	�make_branch_builder�start_series�build_snapshot�
finish_series�
get_branchrGr-rBr�)r?r&s  r)�make_merged_branch�$V4_2aBundleTester.make_merged_branch�s����*�*�8�4����������<�L�
�&�
	�	
�	���
�O�6�
�'�	�	
�	���
�O�P�
�'�	�	
�	���
�^�,�P�
�&�	�	
�	�����$�$�&�����������������'r+c��[5n[R"XURRU5nUR
R
5 URU5 UR
R5 URS5 U$r�)
rr�BundleWriteOperationrGrra�begin�&_add_inventory_mpdiffs_from_serializer�endr�)r?�base_revision_id�target_revision_idrF�sio�writers      r)�make_bundle_just_inventories�.V4_2aBundleTester.make_bundle_just_inventoriessl���i���(�(��$�'�'�2D�2D�c�
��	�
�
�����5�5�l�C��
�
����������
r+c��UR5 URSSS/5n[R"USS9n[	UR55nUR
S[U55 USupEpgnURSU5 UR
SU5 UR
SU5 UR
SS	/S
SS.U5 URS
U5 g)Nr�r�F��stream_inputr�rrrr�(09c53b0c4de0895e11a2aacc34fef60a6e70865c�mpdiff��parentsssha1�storage_kind�Ji 1
<inventory format="10" revision_id="a@cset-0-3">

c 0 1 1 2
c 1 3 3 2
�
rr#r�BundleReaderr�r�r�r�r�r��	r?r!�reader�recordsry�metadata�	repo_kindr0rJs	         r)�-test_single_inventory_multiple_parents_as_xml�?V4_2aBundleTester.test_single_inventory_multiple_parents_as_xml(s������!��/�/��=�=�/�
������5�9���v�*�*�,�-������C��L�)�=D�Q�Z�:��)�'��
�
�d�G�$������4�����i�0����+�^�<�D�!*�
�

�
	
�	
���
�

�
	
r+c��UR5 URSSS/5n[R"USS9n[	UR55nUR
S[U55 USupEpgnURSU5 UR
SU5 UR
SU5 UR
/SS	S
.U5 URSU5 g)Nr,r�Fr&r�rrs(a13f42b142d544aac9b085c42595d304150e31a2r)r*si 4
<inventory format="10" revision_id="a@cset-0-1">
<directory file_id="root-id" name="" revision="a@cset-0-1" />
<file file_id="file-id" name="file" parent_id="root-id" revision="a@cset-0-1" text_sha1="09c2f8647e14e49e922b955c194102070597c2d1" text_size="17" />
</inventory>

r.r0s	         r)�!test_single_inv_no_parents_as_xml�3V4_2aBundleTester.test_single_inv_no_parents_as_xmlFs������!��/�/��m�m�_�
������5�9���v�*�*�,�-������C��L�)�=D�Q�Z�:��)�'��
�
�d�G�$������4�����i�0�����D�!*�
�

�
	
�	
���	
�
�	
r+c��UR5 URSS/SQ5n[R"USS9n[	UR55nUR
S[U55 UVVVVVs/sHupEpgo�PM
 n	nnnnnUR
/SQU	5 USSn
UR
S/S	S
S.U
5 USSnUR
S/SS
S.U5 US
SnUR
SS/SS
S.U5 USSn
URSU
5 USSnURSU5 US
SnURSU5 gs snnnnnf)Nr�r�)rrr�Fr&rrr�s(1e105886d62d510763e22885eec733b66f5f09bfr)r*s(f03f12574bdb5ed2204c28636c98a8547544ccd8rrrr(s�i 1
<inventory format="10" revision_id="a@cset-0-2a">

c 0 1 1 1
i 1
<file file_id="file-id" name="file" parent_id="root-id" revision="a@cset-0-2a" text_sha1="50f545ff40e57b6924b1f3174b267ffc4576e9a9" text_size="12" />

c 0 3 3 1
s�i 1
<inventory format="10" revision_id="a@cset-0-2b">

c 0 1 1 2
i 1
<file file_id="file2-id" name="other-file" parent_id="root-id" revision="a@cset-0-2b" text_sha1="b46c0c8ea1e5ef8e46fc8894bfd4752a88ec939e" text_size="14" />

c 0 3 4 1
r-)	rr#rr/r�r�r�r�r�)r?r!r1r2rr�r�r*r�rF�metadata_2a�metadata_2b�
metadata_3�bytes_2a�bytes_2b�bytes_3s                r)� test_multiple_inventories_as_xml�2V4_2aBundleTester.test_multiple_inventories_as_xmlis������!��/�/���;�
��
����5�9���v�*�*�,�-������C��L�)�9@�A��#5�1��A����A����H�,�W��a�j��m�����*�O�D�!*�
�

�
	
��a�j��m�����*�O�D�!*�
�

�
	
��Q�Z��]�
����+�^�<�D�!*�
�

�
	
��1�:�a�=�����

�
�
	
��1�:�a�=�����

�
�
	
��!�*�Q�-�����
�

�
	
��yBs�7E
c��UR5 URRRSSS9R	5nURSS5up#UR
SS1[U55 [U5nUR5 URUR5 [URU5 [URRRR!S/SS55R#S	5n[URRR!S/SS55R#S	5nUR%XV5 g)
Nr-rrr�r)r�r Tr!)rrGr�r��open_branchrPr�rOrr�rBr�rrr#r.r"r$r�)r?r-rNrOra�inv1�inv2s       r)�(test_creating_bundle_preserves_chk_pages�:V4_2aBundleTester.test_creating_bundle_preserves_chk_pages�s2�����!����#�#�*�*��.�+�
�
�+�-�	�#�5�5�n�m�T��
����.�-�8�#�g�,�G��Z�(����������
�
�&��v�(�(�&�1���G�G���*�*�<�<�!�"�K��
�
��,�z�
"�		
�
����)�)�;�;�!�"�K��
�
��,�z�
"�		
�
	
���T�(r+r�N)
r�r�r�r�r;rmrr#r5r8rArGr�rCr+r)r	r	�s.����4#(�J�
�<!
�FM
�^)r+r	c�,�\rSrSrSrSrSrSrSrg)�MungedBundleTesteri�c���URS5nURS/5 URS5 URSSS9 URS/5 URS5 URS	S
SS0S
9 [	5n[URRS
SX R5nURS
1[U55 URSS5 U$)NrGr�r'r�r�r)zb1/twor+zadd twor�r@�testrSr)r.r�r�r/rrr0rr�r�rOr�)r?�wtrNrOs    r)�build_test_bundle�$MungedBundleTester.build_test_bundle�s���
�
&�
&�t�
,������
�#�
���u�
�
�	�	�)�M�	�2�����
�#�
���u�
�
�	�	�)�M�]�F�<S�	�T��Y�
���I�I� � �-��
�K�K�
��	
���-��#�g�,�7�����1���r+c�|�URS/URVs/sHo"RPM sn5 gs snf)z=Check that after whatever munging, the final object is valid.r�N)r�r]r0)r?rares   r)�check_valid�MungedBundleTester.check_valid�s3�����
�O�V�5J�5J�K�5J��m�m�5J�K�	
��Ks�9
c���UR5nURSS5 URS5 URS5 [U5nUR	U5 g)Nrrr��rNr�r�rrQ�r?rNras   r)�test_extra_whitespace�(MungedBundleTester.test_extra_whitespace�sR���+�+�-�
�
	����1�������������Z�(������ r+c���UR5nURSS5 URS5 URS5 [U5nUR	U5 g)Nrr�

rTrUs   r)�test_extra_whitespace_2�*MungedBundleTester.test_extra_whitespace_2�sR���+�+�-�
�
	����1������!�������Z�(������ r+rCN)	r�r�r�r�rNrQrVrZr�rCr+r)rJrJ�s���$
�!�!r+rJc�*�\rSrSrSrSrSrSrSrg)�MungedBundleTesterV09ir"c���UR5nUR5nURSUSS5 [USS5n[	U5nURU5 g)NrY���r�)rNrjr�rrrQ)r?rN�rawras    r)� test_missing_trailing_whitespace�6MungedBundleTesterV09.test_missing_trailing_whitespaces`���+�+�-�
��!�!�#��
	
����#�b�c�(�+��S��"�X�&�
��Z�(������ r+c��UR5n[SUR5-5n[U5nUR	U5 g)NsSome random
email comments
�rNrrjrrQrUs   r)�test_opening_text�'MungedBundleTesterV09.test_opening_textsA���+�+�-�
��=�
�@S�@S�@U�U�V�
��Z�(������ r+c��UR5n[UR5S-5n[U5nUR	U5 g)NsSome trailing
random
text
rdrUs   r)�test_trailing_text�(MungedBundleTesterV09.test_trailing_textsA���+�+�-�
��Z�0�0�2�5U�U�V�
��Z�(������ r+rCN)	r�r�r�r�r�rarerhr�rCr+r)r]r]s��
�F�
!�!�!r+r]c��\rSrSrSrSrg)�MungedBundleTesterV4i'rLrCN)r�r�r�r�r�r�rCr+r)rkrk's��
�Fr+rkc�2�\rSrSrSrSrSrSrSrSr	g)	�TestBundleWriterReaderi+c���[5n[R"U5nUR5 UR	SS05 URSSS/SS.SS	S
5 UR
5 URS5 [R"USS
9nUR5n[U5nURSSSS.SSS4U5 [U5nURSSSS/S.SS	S
4U5 g)N�foo�bar�Record body�1�3�fulltext�r+r,rp�revid�fileidrTr&�header�ror,r��r,r+�rr�BundleWriterr�add_info_record�_add_recordrr�r/r�r#r��r?�fileobjr"r1�record_iterr(s      r)�test_roundtrip_record�,TestBundleWriterReader.test_roundtrip_record,s����)������)�����������/�0���������D����	
�	�
�
�����Q������t�<���)�)�+���k�"�����
�F�Y�?���t�T��	
��k�"������"-�D�$�<�H����
�
�		
r+c���[5n[R"U5nUR5 UR	SS05 URSSS/SS.SS	S
5 UR
5 URS5 [R"USS
9nUR5n[U5nURSSSS.SSS4U5 [U5nURSSSS/S.SS	S
4U5 g)NrorprqrrrsrtrurprvrwrFr&rxryr�rzr{rs      r)�#test_roundtrip_record_memory_hungry�:TestBundleWriterReader.test_roundtrip_record_memory_hungryMs����)������)�����������/�0���������D����	
�	�
�
�����Q������u�=���)�)�+���k�"�����
�F�Y�?���t�T��	
��k�"������"-�D�$�<�H����
�
�		
r+c�(�URS[RRSS55 URS[RRSSS55 URS[RRS	SS55 g)
N�
revision/rev1rr<�file/rev//1/file-id-1rp�rev/1�	file-id-1�infor�)r�rr|�encode_namerKs r)�test_encode_name�'TestBundleWriterReader.test_encode_namenst������b�o�o�9�9�*�g�N�	
�	
���$��O�O�'�'���,�G�	
�	
����"�/�/�"=�"=�f�d�D�"Q�Rr+c��URS[RRS55 URS[RRS55 URS[RRS55 g)N)rr<Nr�)rpr�r�r�)r�NNr�)r�rr/�decode_namerKs r)�test_decode_name�'TestBundleWriterReader.test_decode_namexsm�����'����)D�)D�EU�)V�	
�	
���,��O�O�'�'�(@�A�	
�	
���-�r���/J�/J�7�/S�Tr+c��[5n[R"U5nUR5 UR	SS05 UR
R
S/[S5SS/5 UR5 URS5 [R"U5R5n[U5nURSSSS.S	SS4U5 UR[R [U5 g)
Nrorpsblah)stwo)snamesrrxryr�)rrr|rr}�
_container�add_bytes_recordr�rr�r/r�r#r�r�rru)r?r�r"r�r(s     r)�test_too_many_names�*TestBundleWriterReader.test_too_many_names�s����)������)�����������/�0����*�*�
�I�s�7�|�i��%=�	
�	�
�
�����Q���o�o�g�.�;�;�=���k�"�����
�F�Y�?���t�T��	
�	
���&�*�*�D�+�>r+rCN)
r�r�r�r�r�r�r�r�r�r�rCr+r)rmrm+s��
�B
�BS�U�?r+rm);r�rerr~�iorr8rrrrr	r
rr�rr�r
rrrrrr�bundle.apply_bundlerr�bundle.bundle_datar�bundle.serializerrrrr�bundle.serializer.v08r�bundle.serializer.v09r�bundle.serializer.v4r�
inventorytreerr*r1r3�TestCaser�r?rr7r�r�r�r�r	rJr]rkrmrCr+r)�<module>r�s/��"�	�
���@�@�)�+�*��*�*�>�+�B�B�7�7�5�)�+�:�t3�}�t3�n^
�%�.�.�^
�B*
�E�/�/�*
�Zh;�h;�Vy
�l�E�$?�$?�y
�x�?���?��d3�\�5�#>�#>�d3�Nu)��u)�p1!�1!�h !�E�7�7�9K� !�F�5�6�6�8J��g?�U�^�^�g?r+

Youez - 2016 - github.com/yon3zu
LinuXploit