403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.114
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u119869361 ( 9600978)
PHP Version : 8.4.28
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_bzrdir.cpython-313.pyc
�

p��ga
���SrSSKrSSKrSSKrSSKrSSKrSSKJrJ	r	J
r
JrJrJ
r
JrJrJrJr SSKJr SSKJr SSKJrJrJr SSKJrJrJrJrJr SS	KJrJ r  SS
K!J"r" SSK#J$r$ SSK%J&r& S
SKJ'r'J(r(J)r)J*r*J+r+J,r, S
SK-J.r. "SS\5r/"SS\'R`5r1"SS\5r2"SS\RRf5r4"SS\R Rj5r6"SS\'Rn5r8"SS\'R`5r9"SS\'Rt5r;"S S!\'Rt5r<"S"S#\5r="S$S%\5r>"S&S'\5r?"S(S)\5r@"S*S+\5rA"S,S-\5rB"S.S/5rC"S0S1\C\R�5rE"S2S3\C\R�5rF"S4S5\C\R�5rG"S6S7\5rH"S8S9\'Rt5rI"S:S;\'R�5rK"S<S=\RR�5rM"S>S?\RRf5rN"S@SA\5rO"SBSC\5rP"SDSE\5rQ"SFSG\5rR"SHSI\'R�5rT"SJSK\5rUg)LzsTests for the BzrDir facility and any format specific tests.

For interface contract tests, see tests/per_bzr_dir.
�N�)
�branch�bzr�config�
controldir�errors�help_topics�lock�osutils�
repository�urlutils)�revision��	transport)�NotBranchError�UnknownFormatError�UnsupportedFormatError)�TestCase�TestCaseWithMemoryTransport�TestCaseWithTransport�http_server�
http_utils)�memory�
pathfilter)�
HttpTransport)�NoSmartTransportDecorator)�ReadonlyTransportDecorator�)�bzrdir�
knitpack_repo�knitrepo�remote�
workingtree_3�
workingtree_4)�BzrBranchFormat5c��\rSrSrSrSrg)�TestDefaultFormat�;c���[RR5nURU[R5 [
RR5Sn[
RRS[SS9 UR[
RRS5 [
RRSS5 [RRS5nURU[5 [
RRSU5 UR!U[RR55 g![
RRSU5 f=f)Nr�sample�Sample)�helpz
memory:///)r�BzrDirFormat�get_default_format�assertIsInstance�BzrDirMetaFormat1r�format_registry�aliases�register�SampleBzrDirFormat�
addCleanup�remove�register_alias�BzrDir�create�SampleBzrDir�assertEqual)�self�
old_format�current_default�results    �>/usr/lib/python3/dist-packages/breezy/bzr/tests/test_bzrdir.py�test_get_set_default_format�-TestDefaultFormat.test_get_set_default_format<s
���(�(�;�;�=�
����j�&�*B�*B�C�$�4�4�<�<�>�u�E���"�"�+�+�H�6H�x�+�X����
�2�2�9�9�8�D��"�"�1�1�%��B�	N��]�]�)�)�,�7�F��!�!�&�,�7��&�&�5�5�e�_�M�����V�%8�%8�%K�%K�%M�N��
�&�&�5�5�e�_�M�s�5E�"E4�N)�__name__�
__module__�__qualname__�__firstlineno__rA�__static_attributes__rC�r@r'r';s��OrIr'c��\rSrSrSrSrg)�DeprecatedBzrDirFormat�MzA deprecated bzr dir format.rCN�rDrErFrG�__doc__rHrCrIr@rKrKMs��&rIrKc�8�\rSrSrSrSrSrSrSrSr	Sr
g	)
�TestFormatRegistry�Qc	��[R"5nURS[SSS9 UR	S[
SSSS9 [R"USS	S
5 URS5 [R"USSS
SSS9 [R"USSS
SSS9 URS[SSS9 UR	S[
SSSSS9 U$)N�
deprecated�2Some format.  Slower and unawesome and deprecated.T�rS�lazyrK�Format registered lazily�knitz)breezy.bzr.knitrepo.RepositoryFormatKnit1�Format using knits�branch6z)breezy.bzr.knitrepo.RepositoryFormatKnit3z6Experimental successor to knit.  Use at your own risk.z"breezy.bzr.branch.BzrBranchFormat6)�
branch_format�experimentalz
hidden format)r[�hidden�hiddendeprecatedz1Old format.  Slower and does not support things. )r]�
hiddenlazy)rSr])	r�ControlDirFormatRegistryr3rK�
register_lazyrDr�register_metadir�set_default�r<�my_format_registrys  r@�make_format_registry�'TestFormatRegistry.make_format_registryRs��'�@�@�B���#�#��"�@��		$�	
�	�(�(���$�&��	)�	
�	�����7� �		
�	�&�&�v�.������7�D�>��
	
�	�����7�D�>��
	
�	�#�#��"�?��		$�	
�	�(�(���$�&���
	)�	
�"�!rIc�R�UR5nURS5nURU[5 URS5nURU[5 URS5nURUR[
R5 URS5nURUR[
R5 URS5nURUR5[RRR5 g)NrVrS�defaultrXrZ)rf�make_controldirr/rK�repository_formatr!�RepositoryFormatKnit1�get_branch_format�breezyrr�BzrBranchFormat6)r<re�	my_bzrdirs   r@�test_format_registry�'TestFormatRegistry.test_format_registry�s���!�6�6�8��&�6�6�v�>�	����i�)?�@�&�6�6�|�D�	����i�)?�@�&�6�6�y�A�	�����'�'��)G�)G�	
�'�6�6�v�>�	�����'�'��)G�)G�	
�'�6�6�y�A�	�����'�'�)�6�:�:�+<�+<�+M�+M�	
rIc�,�UR5nURSURS55 URSURS55 URSURS55 URSURS55 g)NrWrVrYrXrirTrS)rfr;�get_helprds  r@�
test_get_help� TestFormatRegistry.test_get_help�s���!�6�6�8�����&�(:�(C�(C�F�(K�	
�	
���-�/A�/J�/J�6�/R�S����-�/A�/J�/J�9�/U�V����@��'�'��5�	
rIc���[R"5nUR5nURSURS5 URSURS5 URS5nURS5nUR
S5upVURUS5 URUS5 URUS5 URUS	5 URUS
5 g)Nzcurrent-formatszCurrent formatsz
other-formatsz
Other formatszDeprecated formatszformats-helpz5:knit:
    \(native\) \(default\) Format using knits
z7:branch6:
    \(native\) Experimental successor to knitz/:lazy:
    \(native\) Format registered lazily
r])	r	�HelpTopicRegistryrfr3�
help_topic�
get_detail�split�assertContainsRe�assertNotContainsRe)r<�topics�registry�new�restr\rSs       r@�test_help_topic�"TestFormatRegistry.test_help_topic�s����.�.�0���,�,�.�����)�8�+>�+>�@Q�R������)<�)<�o�N���� 1�2��� � ��1��#'�:�:�.B�#C� �����c�>�2�����N�	
�	
����V�	
�	
����M�	
�	
� � ��h�/rIc���[RRS5n[RR5VVs/sHup#X1:XdMUS:wdMUPM snnSn[RR	S5 UR[RRS5[RRS55 UR[RR5R[R5 [RR	U5 gs snnf![RR	U5 f=f)Nrir�dirstate-with-subtree)rr1�get�	iteritems�set_default_repository�assertIsr�get_default�	__class__r!�RepositoryFormatKnit3)r<�default_factory�k�v�old_defaults     r@�test_set_default_repository�.TestFormatRegistry.test_set_default_repository�s��$�4�4�8�8��C��#�2�2�<�<�>�
�>����#�
�()�Y��
�>�
��	
��
	�"�"�9�9�:Q�R�
	K��M�M��*�*�.�.�/F�G��*�*�.�.�y�9�
�
�M�M��*�*�6�6�8�B�B��.�.�
�

�&�&�=�=�k�J��!
�� 
�&�&�=�=�k�J�s�D7�D7�D7�BD=�=!Ec���[R"5nURS[SSS9 UR	SS5 URSS0UR
55 g)NrSz.Old format.  Slower and does not support stuffTrU�deprecatedalias)rr`r3rKr7r;r2)r<�
a_registrys  r@�test_aliases�TestFormatRegistry.test_aliases�sa���8�8�:�
�����"�<��		�	
�	�!�!�"3�\�B����+�\�:�J�<N�<N�<P�QrIrCN)rDrErFrGrfrqrur�r�r�rHrCrIr@rPrPQs#��4"�l
�&

�0�(K�(	RrIrPc��\rSrSrSrSrSrg)�SampleBranch��z)A dummy branch for guess what, dummy use.c��Xlg�N�r�r<�dirs  r@�__init__�SampleBranch.__init__�����rIr�N�rDrErFrGrNr�rHrCrIr@r�r��s
��3�rIr�c��\rSrSrSrSrSrg)�SampleRepository��z
A dummy repo.c��Xlgr�r�r�s  r@r��SampleRepository.__init__�r�rIr�Nr�rCrIr@r�r��s
���rIr�c�8�\rSrSrSrS	SjrSrS
SjrSrSr	g)r:��z?A sample BzrDir implementation to allow testing static methods.c��g)z!See ControlDir.create_repository.zA repositoryrC)r<�shareds  r@�create_repository�SampleBzrDir.create_repository�s��rIc��[U5$)zSee ControlDir.open_repository.)r��r<s r@�open_repository�SampleBzrDir.open_repository�s
����%�%rINc�J�Ub[R"U5e[U5$)zSee ControlDir.create_branch.)r�NoColocatedBranchSupportr�)r<�names  r@�
create_branch�SampleBzrDir.create_branch�s$�����5�5�d�;�;��D�!�!rIc��g)z"See ControlDir.create_workingtree.�A treerCr�s r@�create_workingtree�SampleBzrDir.create_workingtree�s��rIrC�Fr�)
rDrErFrGrNr�r�r�r�rHrCrIr@r:r:�s��I��&�"�rIr:c�D�\rSrSrSrSrSrSrS
Sjr\	S5r
S	rg)r4�ztA sample format.

this format is initializable, unsupported to aid in testing the
open and open_downlevel routines.
c��g)z%See BzrDirFormat.get_format_string().sSample .bzr dir format.rCr�s r@�get_format_string�$SampleBzrDirFormat.get_format_strings��)rIc�z�URS5 URSUR55 [X5$)zCreate a bzr dir.�.bzr�.bzr/branch-format)�mkdir�	put_bytesr�r:�r<�ts  r@�initialize_on_transport�*SampleBzrDirFormat.initialize_on_transport
s0��	�����	���(�$�*@�*@�*B�C��A�$�$rIc��g)NFrCr�s r@�is_supported�SampleBzrDirFormat.is_supporteds��rINc��g)Nzopened branch.rC)r<r�_founds   r@�open�SampleBzrDirFormat.opens��rIc��U"5$r�rC)�cls�
format_strings  r@�from_string�SampleBzrDirFormat.from_strings	���u�rIrCr�)rDrErFrGrNr�r�r�r��classmethodr�rHrCrIr@r4r4�s/���*�%�� ����rIr4c�$�\rSrSr\S5rSrg)�BzrDirFormatTest1ic��g)Ns
Test format 1rCrCrIr@r��#BzrDirFormatTest1.get_format_string���rIrCN�rDrErFrG�staticmethodr�rHrCrIr@r�r����� �� rIr�c�$�\rSrSr\S5rSrg)�BzrDirFormatTest2i!c��g)Ns
Test format 2rCrCrIr@r��#BzrDirFormatTest2.get_format_string"r�rIrCNr�rCrIr@r�r�!r�rIr�c��\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrSrSrSrg)�TestBzrDirFormati'z$Tests for the BzrDirFormat facility.c��^�[RRR[R5[	55 TR
[RRR[R55 [RRR[R5[55 TR
[RRR[R55 TR5nTRSS/US9 U4SjnU"[	5S5 U"[5S5 g)Nzfoo/zbar/rc��>�URU5 [R"U5n[RRU5nTR
X0R5 gr�)�
initialize�_mod_transport�get_transport_from_pathrr-�find_formatr/r�)�format�urlr��found_formatr<s    �r@�check_format�7TestBzrDirFormat.test_find_format.<locals>.check_format<sK������c�"��6�6�s�;�A�!�.�.�:�:�1�=�L��!�!�,�0@�0@�ArI�foo�bar)r�	BzrProber�formatsr3r�r�r5r6r��
get_transport�
build_tree)r<r�r�s`  r@�test_find_format�!TestBzrDirFormat.test_find_format*s����	�
�
���&�&��/�/�1�3D�3F�	
�	
����M�M�!�!�(�(�*;�*M�*M�*O�	
�	�
�
���&�&��/�/�1�3D�3F�	
�	
����M�M�!�!�(�(�*;�*M�*M�*O�	
�
��� �������(�A��6�	B�	�&�(�%�0��&�(�%�0rIc��UR[[RR[
R"S55 g)N�.)�assertRaisesrrr-r�r�r�r�s r@�test_find_format_nothing_there�/TestBzrDirFormat.test_find_format_nothing_thereEs0���������+�+��2�2�3�7�	
rIc���UR5nURS5 URSS5 UR[[
RR[R"S55 g)Nr�r�rIr�)
r�r�r�r�rrr-r�r�r�r�s  r@�test_find_format_unknown_format�0TestBzrDirFormat.test_find_format_unknown_formatLsX����� ��	�����	���(�#�.��������+�+��2�2�3�7�	
rIc��UR5nURS5 URSS5 UR[R
[RR[R"S55 g)Nr�r�sCorrupt line endings
r�)r�r�r�r�r�LineEndingErrorrr-r�r�r�r�s  r@�test_find_format_line_endings�.TestBzrDirFormat.test_find_format_line_endingsVs_����� ��	�����	���(�*E�F����������+�+��2�2�3�7�	
rIc���UR5nURS5 URSS5 UR[[
RR[R"S55 g)Nr�r�sm<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">r�)
r�r�r�r�rrr-r�r�r�r�s  r@�test_find_format_html�&TestBzrDirFormat.test_find_format_html`s]����� ��	�����	��� �|�	
�	
�������+�+��2�2�3�7�	
rIc��[5nUR5nURU5 [RR
R
UR5U5 UR[[RRU5 UR[[RRU5 [R"U5nUR!URU5[RR#U55 [RR
R%UR55 UR[&[RR"U5 gr�)r4�get_urlr�rr�r�r3r�r�rrr8r��open_containingr��get_transport_from_urlr;�open_unsupportedr6r)r<r�r�r�s    r@�test_register_unregister_format�0TestBzrDirFormat.test_register_unregister_formatms���#�%���l�l�n�����#���
�
���&�&�v�'?�'?�'A�6�J����0�&�-�-�2D�2D�c�J����0�&�-�-�2O�2O�QT�U��1�1�#�6��������Q�����)G�)G��)L�M��
�
���$�$�V�%=�%=�%?�@����,�f�m�m�.L�.L�c�RrIc��[5n[RRUR	5US9nUR[
U[55 g)N�r�)r4rr8�create_branch_and_repor	�
assertTrue�
isinstancer��r<r�rs   r@�(test_create_branch_and_repo_uses_default�9TestBzrDirFormat.test_create_branch_and_repo_uses_default�s<��#�%�����5�5�d�l�l�n�V�5�T�����
�6�<�8�9rIc�&�[RRS5nURSSUS9 [R
R
URS5US9nUR[RURR5 g�NrXr�T�r�r��childr)rr1rj�make_repositoryrr8rr	r�r�NoRepositoryPresentr�rs   r@�(test_create_branch_and_repo_under_shared�9TestBzrDirFormat.test_create_branch_and_repo_under_shared�sz���+�+�;�;�F�C�����S��f��=����5�5��L�L��!�&�6�
��	
���&�4�4�f�6G�6G�6W�6W�XrIc���[RRS5nURSSUS9 [R
R
URS5SUS9nURR5 g�NrXr�Trr)�force_new_repor�)	rr1rjrrr8rr	r�rs   r@�2test_create_branch_and_repo_under_shared_force_new�CTestBzrDirFormat.test_create_branch_and_repo_under_shared_force_new�sl���+�+�;�;�F�C�����S��f��=����5�5��L�L��!�$�v�6�
��	���)�)�+rIc��[5nUR[R[R
RUR5US9 [R
R
SUS9nURSU5 g)Nrr�r�)	r4r�r�NotLocalUrlrr8�create_standalone_workingtree�get_readonly_urlr;�r<r��trees   r@�#test_create_standalone_working_tree�4TestBzrDirFormat.test_create_standalone_working_tree�so��#�%��	
�������M�M�7�7��!�!�#��		�	
��}�}�:�:�3�v�:�N������4�(rIc�b�[RRS5nURSSUS9 UR	[
R[RRURS5US9 [RRSUS9nURR5 gr)rr1rjrr�rr%rr8r&r'r�r(s   r@�5test_create_standalone_working_tree_under_shared_repo�FTestBzrDirFormat.test_create_standalone_working_tree_under_shared_repo�s����+�+�;�;�F�C�����S��f��=�	
�������M�M�7�7��!�!�'�*��		�	
��}�}�:�:�7�6�:�R�����'�'�)rIc���[RRS5n[RRSUS9nURR
5 URR5 g)NrXr�r)rr1rjrr8�create_branch_convenience�open_workingtreer�rs   r@�test_create_branch_convenience�/TestBzrDirFormat.test_create_branch_convenience�sU���+�+�;�;�F�C�����8�8��V�8�L�����*�*�,����)�)�+rIc��[RRS5nUR5n[R
R
SX/S9nURR5 URR5 g)z<Check that the optional 'possible_transports' is recognized.rXr�)r��possible_transportsN)	rr1rjr�rr8r0r1r�)r<r�r�rs    r@�2test_create_branch_convenience_possible_transports�CTestBzrDirFormat.test_create_branch_convenience_possible_transports�sl���+�+�;�;�F�C����� �����8�8���C�9�
��	���*�*�,����)�)�+rIc�`�[RUl[RRS5n[RRUR5US9nUR[RURR5 URR5 g)z2Creating a branch at the root of a fs should work.rXrN)r�MemoryServer�vfs_transport_factoryrr1rjrr8r0r	r�r�
NoWorkingTreer1r�rs   r@�#test_create_branch_convenience_root�4TestBzrDirFormat.test_create_branch_convenience_root�sz��%+�%8�%8��"��+�+�;�;�F�C�����8�8�����PV�8�W�����&�.�.��0A�0A�0R�0R�S����)�)�+rIc�<�[RRS5nURSSUS9 [R
R
SUS9nURR5 UR[RURR5 gr)rr1rjrrr8r0r1r�rrr�rs   r@�0test_create_branch_convenience_under_shared_repo�ATestBzrDirFormat.test_create_branch_convenience_under_shared_repo�s|���+�+�;�;�F�C�����S��f��=����8�8���8�P�����*�*�,����&�4�4�f�6G�6G�6W�6W�XrIc�r�[RRS5nURSSUS9 [R
R
SSUS9nUR[RURR5 UR[RURR5 g)NrXr�TrrF��force_new_treer�)
rr1rjrrr8r0r�rr;r1rr�rs   r@�>test_create_branch_convenience_under_shared_repo_force_no_tree�OTestBzrDirFormat.test_create_branch_convenience_under_shared_repo_force_no_tree�s����+�+�;�;�F�C�����S��f��=����8�8��E�&�9�
��	
���&�.�.��0A�0A�0R�0R�S����&�4�4�f�6G�6G�6W�6W�XrIc��[RRS5nURSSUS9nUR	S5 [
RRSUS9nUR[RURR5 UR[RURR5 g)NrXr�TrFrr)rr1rjr�set_make_working_treesrr8r0r�rr;r1rr��r<r��repors    r@�?test_create_branch_convenience_under_shared_repo_no_tree_policy�PTestBzrDirFormat.test_create_branch_convenience_under_shared_repo_no_tree_policy�s����+�+�;�;�F�C���#�#�C��V�#�D���#�#�E�*����8�8���8�P�����&�.�.��0A�0A�0R�0R�S����&�4�4�f�6G�6G�6W�6W�XrIc�`�[RRS5nURSSUS9nUR	S5 [
RRSSUS9nURR5 UR[RURR5 g)NrXr�TrFrrB)
rr1rjrrGrr8r0r1r�rrr�rHs    r@�Jtest_create_branch_convenience_under_shared_repo_no_tree_policy_force_tree�[TestBzrDirFormat.test_create_branch_convenience_under_shared_repo_no_tree_policy_force_tree�s���
�+�+�;�;�F�C���#�#�C��V�#�D���#�#�E�*����8�8��D��9�
��	���*�*�,����&�4�4�f�6G�6G�6W�6W�XrIc�
�[RRS5nURSSUS9 [R
R
SSUS9nURR5 URR5 gr )	rr1rjrrr8r0r�r1rs   r@�?test_create_branch_convenience_under_shared_repo_force_new_repo�PTestBzrDirFormat.test_create_branch_convenience_under_shared_repo_force_new_repo�su���+�+�;�;�F�C�����S��f��=����8�8��D��9�
��	���)�)�+����*�*�,rI�r:N)rDrErFrGrNr�r�r�rrr
rrr"r*r-r2r6r<r?rDrJrMrPrHrCrIr@r�r�'sj��.�1�6
�
�
�
�S�&:�
Y�,�)�
*�,�,�,�Y�	Y�Y�Y�	-rIr�c�~�\rSrSrSrSrSrSSjrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrg)�TestRepositoryAcquisitionPolicyic�0�URS5nUR5nUR5up4URURR
RUR
R5 URUR55 g)zAThe default acquisition policy should create a standalone branch.r�N)	rj�determine_repository_policy�acquire_repositoryr;r�root_transport�base�assertFalse�	is_shared)r<rp�repo_policyrI�is_news     r@�"test_acquire_repository_standalone�BTestRepositoryAcquisitionPolicy.test_acquire_repository_standalonesv���(�(��-�	��;�;�=��"�5�5�7�������O�O�*�*�/�/��1I�1I�1N�1N�	
�	
������)�*rIc���URS5nURS5nUR5RS5 UR5nUR	SUR
5 g)Nr�rzhttp://example.org)rj�
get_config�set_default_stack_onrVr;�	_stack_on�r<�
parent_bzrdir�child_bzrdirr\s    r@�test_determine_stacking_policy�>TestRepositoryAcquisitionPolicy.test_determine_stacking_policys_���,�,�S�1�
��+�+�G�4��� � �"�7�7�8L�M�"�>�>�@�����-�{�/D�/D�ErIc�>�URS5nURS5nUR5RS5 UR5nUR	SUR
5 UR	URRUR5 g)Nr�r�child2)	rjrarbrVr;rcrXrY�
_stack_on_pwdrds    r@�'test_determine_stacking_policy_relative�GTestRepositoryAcquisitionPolicy.test_determine_stacking_policy_relatives���,�,�S�1�
��+�+�G�4��� � �"�7�7��A�"�>�>�@������;�#8�#8�9�����5�5�:�:�K�<U�<U�VrIc���URS5nURSUS9nUR5RUR5 UR
R
S5nX44$)Nr�rrrj)rj�make_branchrarbrYr�clone)r<�child_formatre�child_branch�new_child_transports     r@�prepare_default_stacking�8TestRepositoryAcquisitionPolicy.prepare_default_stacking!sd���,�,�S�1�
��'�'���'�E��� � �"�7�7��8I�8I�J�+�5�5�;�;�H�E���0�0rIc���UR5upURRU5nURURUR5R
55 gr�)rtr�clone_on_transportr;rY�open_branch�get_stacked_on_url�r<rrrs�	new_childs    r@�-test_clone_on_transport_obeys_stacking_policy�MTestRepositoryAcquisitionPolicy.test_clone_on_transport_obeys_stacking_policy(sU��,0�,I�,I�,K�)�� �+�+�>�>�?R�S�	�������y�4�4�6�I�I�K�	
rIc��URS5n[R"5RU5 [R
RR5RU5 URS5nURSSS9nUR5RUR5 URURS55 g)N�source�parentzparent/stacked-on�	pack-0.92rz
parent/target)rjr �RepositoryFormatKnitPack1r�rnrr�BzrBranchFormat7rorarbrYrpr	)r<�
source_bzrdirre�
stacked_ons    r@�<test_default_stacking_with_stackable_branch_unstackable_repo�\TestRepositoryAcquisitionPolicy.test_default_stacking_with_stackable_branch_unstackable_repo/s����,�,�X�6�
��/�/�1�<�<�]�K��
�
���*�*�,�7�7�
�F��,�,�X�6�
��%�%�&9�+�%�N�
�� � �"�7�7�
���H����D�L�L��9�:rIc���URSSS9 URS5n[RR	S5nUR
R
5nURUUSURS9upEpgUb;URUR55 URUR5 OUR5nURU[R 5 [R R#UR5n[%U[&R(5(dzUR+UR,R
5UR
55 UR+UR,R
5UR,R
55 UR+UR.UR.5 UR1SUR25 g)	N�trunkz1.9r�stackedr�z../trunk)�repo_format_namer��stack_on_pwd�)ror�rr1rjrk�network_name�initialize_on_transport_exrYr�is_write_lockedr5�unlockr�r/rr8r�rr"�RemoteBzrDirFormatr;�_formatr��assertLength�_fallback_repositories)	r<r��old_fmt�	repo_namerI�control�require_stackingr\�openeds	         r@�1test_format_initialize_on_transport_ex_stacked_on�QTestRepositoryAcquisitionPolicy.test_format_initialize_on_transport_ex_stacked_on;s���	
������/����y�)���,�,�<�<�[�I���-�-�:�:�<�	�
�.�.��!*�%��V�V�	
/�
�	5��'����O�O�D�0�0�2�3��O�O�D�K�K�(��*�*�,�D����g�v�}�}�5����#�#�A�F�F�+���'�6�#<�#<�=�=����W�_�_�9�9�;�W�=Q�=Q�=S�T�������,�,�.����0K�0K�0M�
�	
����*�*�F�,<�,<�=����!�T�8�8�9rIc���UR5upURRUR5nUR	URUR5R
55 gr�)rtr�sproutrYr;rxryrzs    r@�!test_sprout_obeys_stacking_policy�ATestRepositoryAcquisitionPolicy.test_sprout_obeys_stacking_policy\s[��,0�,I�,I�,K�)�� �+�+�2�2�3F�3K�3K�L�	�������y�4�4�6�I�I�K�	
rIc���URSS9upURRU5nUR[R
UR
5R5 g�Nr��rq)rtrrwr�r�UnstackableBranchFormatrxryrzs    r@�1test_clone_ignores_policy_for_unsupported_formats�QTestRepositoryAcquisitionPolicy.test_clone_ignores_policy_for_unsupported_formatscs_��,0�,I�,I�$�-J�-
�)��!�+�+�>�>�?R�S�	�����*�*�I�,A�,A�,C�,V�,V�	
rIc���URSS9upURRUR5nUR	[
RUR5R5 gr�)	rtrr�rYr�rr�rxryrzs    r@�2test_sprout_ignores_policy_for_unsupported_formats�RTestRepositoryAcquisitionPolicy.test_sprout_ignores_policy_for_unsupported_formatslse��,0�,I�,I�$�-J�-
�)��!�+�+�2�2�3F�3K�3K�L�	�����*�*�I�,A�,A�,C�,V�,V�	
rIc��URSS9upURRURSS9nUR	URR
RUR
5R55 UR5nURURR5 URUR55 g)Nr�r�T�r�)rtrr�rYr;rXrxryr�rr��supports_external_lookupsrZ�supports_rich_root�r<rrrsr{rIs     r@�0test_sprout_upgrades_format_if_stacked_specified�PTestRepositoryAcquisitionPolicy.test_sprout_upgrades_format_if_stacked_specifiedus���,0�,I�,I�$�-J�-
�)��!�+�+�2�2��$�$�d�3�
�	�	
����#�#�2�2�7�7��!�!�#�6�6�8�	
��(�(�*��������>�>�?�����0�0�2�3rIc���URSS9upURRX!RRRS9nURURRRUR
5R55 UR5nURURR5 URUR55 g)Nr�r�)r�)rtrrwrXrYr;rxryr�rr�r�rZr�r�s     r@�?test_clone_on_transport_upgrades_format_if_stacked_on_specified�_TestRepositoryAcquisitionPolicy.test_clone_on_transport_upgrades_format_if_stacked_on_specified�s���,0�,I�,I�$�-J�-
�)��!�+�+�>�>��,C�,C�,R�,R�,W�,W�?�
�	�	
����#�#�2�2�7�7��!�!�#�6�6�8�	
��(�(�*��������>�>�?�����0�0�2�3rIc��URSS9upURRURSS9nUR	5nURURR5 URUR55 g)Nzrich-root-packr�Tr�)	rtrr�rYr�rr�r�r�r�s     r@�2test_sprout_upgrades_to_rich_root_format_if_needed�RTestRepositoryAcquisitionPolicy.test_sprout_upgrades_to_rich_root_format_if_needed�s���,0�,I�,I�)�-J�-
�)��!�+�+�2�2��$�$�d�3�
�	��(�(�*��������>�>�?�����/�/�1�2rIc��URSSS9nURSSS9n[R"X!R5nURU5 g)N�stack_on�1.6rrI�rorr�UseExistingRepositoryrY�
_add_fallback�r<r�rI�policys    r@�,test_add_fallback_repo_handles_absolute_urls�LTestRepositoryAcquisitionPolicy.test_add_fallback_repo_handles_absolute_urls�sN���#�#�J�u�#�=���#�#�F�5�#�9���-�-�d�M�M�B�����T�"rIc��URSSS9nURSSS9n[R"USUR5nURU5 g)Nr�r�rrIr�r�r�s    r@�,test_add_fallback_repo_handles_relative_urls�LTestRepositoryAcquisitionPolicy.test_add_fallback_repo_handles_relative_urls�sR���#�#�J�u�#�=���#�#�F�5�#�9���-�-�d�C����G�����T�"rIc��URSSS9nURSSS9n[R"URSUR5nURU5 UR
SUR55 g)Nr�r�r�stack_on/stackedr�z..)rorr�rrY�configure_branchr;ry)r<r�r�r�s    r@�+test_configure_relative_branch_stacking_url�KTestRepositoryAcquisitionPolicy.test_configure_relative_branch_stacking_url�sr���#�#�J�u�#�=���"�"�#5�e�"�D���-�-�g�.@�.@�#�x�}�}�U������(�����w�9�9�;�<rIc�&�URSSS9 URSSS9n[R"URSUR	S55nURU5 UR
UR	S5UR55 g)Nr�r�rr�r�)rorr�rr'r�r;ry)r<r�r�s   r@�)test_relative_branch_stacking_to_absolute�ITestRepositoryAcquisitionPolicy.test_relative_branch_stacking_to_absolute�s�������E��2��"�"�#5�e�"�D���-�-�����T�%:�%:�:�%F�
��	����(�����!�!�*�-�w�/I�/I�/K�	
rIrCN)r�)rDrErFrGr^rgrlrtr|r�r�r�r�r�r�r�r�r�r�r�r�rHrCrIr@rTrTsZ��+�F�W�1�
�
;�:�B
�
�
�
4�
4�	3�#�#�=�	
rIrTc��^�\rSrSrSrU4SjrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrSrSrSrSrSrSrSrSrSrSrSr Sr!S r"U=r#$)!�
ChrootedTestsi�z�A support class that provides readonly urls outside the local namespace.

This is done by checking if self.transport_server is a MemoryServer. if it
is then we are chrooted already, if it is not then an HttpServer is used
for readonly urls.
c�>�[TU]5 UR[R:wa[
RUlggr�)�super�setUpr:rr9r�
HttpServer�transport_readonly_server�r<r�s �r@r��ChrootedTests.setUp�s3���
��
���%�%��)<�)<�<�-8�-C�-C�D�*�=rIc�|�[RR[R"UR
55$r�)�os�path�realpathr
�local_path_from_urlrY)r<rs  r@�local_branch_path�ChrootedTests.local_branch_path�s&���w�w���� <� <�V�[�[� I�J�JrIc�^�UR[[RRURS55 UR[[RRURS55 [RR
UR55 [RR	URS55upURSU5 [RR	URS55upURSU5 g�N�zg/p/q)	r�rrr8r
r'r9r	r;�r<r�relpaths   r@�test_open_containing�"ChrootedTests.test_open_containing�s�������F�M�M�9�9�4�;P�;P�QS�;T�	
�	
�����M�M�)�)��!�!�'�*�	
�
	�
�
���T�\�\�^�,� �-�-�7�7��8M�8M�b�8Q�R�������W�%� �-�-�7�7��8M�8M�g�8V�W�������'�*rIc��UR[R[RR
UR
S55 g)Nr�)r�rrrr8�)open_containing_tree_branch_or_repositoryr'r�s r@�4test_open_containing_tree_branch_or_repository_empty�BChrootedTests.test_open_containing_tree_branch_or_repository_empty�s4������!�!��M�M�C�C��!�!�"�%�	
rIc	��URS5 [RRS5upp4UR	[
RRS5[
RRUR55 UR	[
RRS5URU55 UR	[R"[
RRSSS55URRRS55 UR	US5 g)N�topdir�
topdir/foor�rr�)�make_branch_and_treerr8r�r;r�r�r��basedirr�r�joinrr�
local_abspath�r<r)rrIr�s     r@�2test_open_containing_tree_branch_or_repository_all�@ChrootedTests.test_open_containing_tree_branch_or_repository_all�s����!�!�(�+��M�M�C�C�L�Q�	$��d�	
������)�)�(�3�R�W�W�5E�5E�d�l�l�5S�T�������)�)�(�3�T�5K�5K�F�5S�T�������R�W�W�\�\�(�F�L�I�J��O�O�%�%�3�3�L�A�	
�	
����%�(rIc	��URS5 [RRS5upp4UR	US5 UR	[
RRS5URU55 UR	[R"[
RRSSS55URRRS55 UR	US5 g)Nrz
branch/foor�rr�)rorr8r�r;r�r�r�r�rr�rrr�r�s     r@�6test_open_containing_tree_branch_or_repository_no_tree�DChrootedTests.test_open_containing_tree_branch_or_repository_no_tree�s�������"��M�M�C�C�L�Q�	$��d�	
����t�$�������)�)�(�3�T�5K�5K�F�5S�T�������R�W�W�\�\�(�F�L�I�J��O�O�%�%�3�3�L�A�	
�	
����%�(rIc	��URS5 [RRS5upp4UR	US5 UR	US5 UR	[
R"[RRSSS55URRRS55 UR	US5 g)NrIr�rr�)
rrr8r�r;rr�r�r�r�rrr�r�s     r@�3test_open_containing_tree_branch_or_repository_repo�AChrootedTests.test_open_containing_tree_branch_or_repository_repo�s������V�$��M�M�C�C�F�K�	$��d�	
����t�$������&�������R�W�W�\�\�&�&�,�G�H��O�O�%�%�3�3�L�A�	
�	
����"�%rIc	�8�URSSS9 [RRSSS9 [RR	S5upp4URUS5 UR[RRS5URU55 UR[R"[RRSSS55URRRS55 URUS	5 g)
Nr�T�r�z
shared/branchF)rCr�rr�)rrr8r0r�r;r�r�r�r�rr�rrr�r�s     r@�:test_open_containing_tree_branch_or_repository_shared_repo�HChrootedTests.test_open_containing_tree_branch_or_repository_shared_repo
s������X�d��3��
�
�/�/��PU�/�V��M�M�C�C�O�T�	$��d�	
����t�$�����G�G���_�-�t�/E�/E�f�/M�	
�	
������R�W�W�\�\�(�F�L�I�J��O�O�%�%�3�3�L�A�	
�	
����"�%rIc	��URS5 URS/5 [RR	S5upp4UR[RRS5[RRUR55 UR[RRS5URU55 UR[R"[RRSSS55URRRS55 URUS5 g)Nr�zfoo/bar/�foo/barr�rr�)r�r�rr8r�r;r�r�r�r�r�rr�rrr�r�s     r@�<test_open_containing_tree_branch_or_repository_branch_subdir�JChrootedTests.test_open_containing_tree_branch_or_repository_branch_subdirs����!�!�%�(������%��M�M�C�C�I�N�	$��d�	
������)�)�%�0�"�'�'�2B�2B�4�<�<�2P�Q�������)�)�%�0�$�2H�2H��2P�Q�������R�W�W�\�\�%���F�G��O�O�%�%�3�3�L�A�	
�	
����%�(rIc	���URS5 URS/5 [RR	S5upp4URUS5 URUS5 UR[R"[RRSSS55URRRS55 URUS5 g)Nr�zbar/baz/zbar/bazr�r�baz)rr�rr8r�r;rr�r�r�r�rrr�r�s     r@�:test_open_containing_tree_branch_or_repository_repo_subdir�HChrootedTests.test_open_containing_tree_branch_or_repository_repo_subdir(s������U�#������%��M�M�C�C�I�N�	$��d�	
����t�$������&�������R�W�W�\�\�%���F�G��O�O�%�%�3�3�L�A�	
�	
����%�(rIc	��UR[[RR[
R"URS555 UR[[RR[
R"URS555 [RRUR55 [RR	[
R"URS555upURSU5 [RR	[
R"URS555upURSU5 gr�)r�rrr8�open_containing_from_transportr�rr'r9r	r;r�s   r@�#test_open_containing_from_transport�1ChrootedTests.test_open_containing_from_transport6s�������M�M�8�8��1�1�$�2G�2G��2K�L�	
�
	
�����M�M�8�8��1�1�$�2G�2G��2P�Q�	
�
	�
�
���T�\�\�^�,� �-�-�F�F��1�1�$�2G�2G��2K�L�
���	
����W�%� �-�-�F�F��1�1�$�2G�2G��2P�Q�
���	
����'�*rIc���URS5 [RRS5upnUR	[
RRS5[
RRUR55 UR	[
RRS5URU55 URURUR5 UR	SU5 [RRURS55upnUR	SU5 UR	SU5 URS5 [RRS5upnURUS5 UR	[
RRS5URU55 UR	SU5 g)Nr�r�r�r�)r�rr8�open_containing_tree_or_branchr;r�r�r�r�r�r�rr'ro)r<r)rr�s    r@�#test_open_containing_tree_or_branch�1ChrootedTests.test_open_containing_tree_or_branchKsp���!�!�(�+� &�
�
� L� L��!
���g�	
������)�)�(�3�R�W�W�5E�5E�d�l�l�5S�T�������)�)�(�3�T�5K�5K�F�5S�T��
�
�d�o�o�v�'8�'8�9������(� &�
�
� L� L��!�!�,�/�!
���g�	
����t�$������(�����&� &�
�
� L� L��!
���g�	
�
�
�d�D�!�������)�)�,�7��9O�9O�PV�9W�X�����W�%rIc�d�URS5 [RRS5upUR	[
RRS5[
RRUR55 UR	[
RRS5URU55 URURUR5 [RRURS55upUR	SU5 URS5 [RRS5upURUS5 UR	[
RRS5URU55 g)Nr�r�)r�rr8�open_tree_or_branchr;r�r�r�r�r�r�rr'ro�r<r)rs   r@�test_open_tree_or_branch�&ChrootedTests.test_open_tree_or_branchcs-���!�!�(�+��}�}�8�8��B���������)�)�(�3�R�W�W�5E�5E�d�l�l�5S�T�������)�)�(�3�T�5K�5K�F�5S�T��
�
�d�o�o�v�'8�'8�9��}�}�8�8��!�!�(�+�
���	
����t�$�����&��}�}�8�8��F����
�
�d�D�!�������)�)�,�7��9O�9O�PV�9W�XrIc��URS5nUR[[RR
SSS9 URRRS5 [RRSSS9upUR[RRS5[RRUR55 UR[RRS5URU55 URURS5 UR!URUR5 g)Nr��missing�r��named)r�r�rrr8rrrr�r;r�r�r�r�r�r�r�r
s   r@�test_open_tree_or_branch_named�,ChrootedTests.test_open_tree_or_branch_namedts����(�(��2������F�M�M�=�=�x�i�	�	
�	
�����,�,�W�5��}�}�8�8���8�P���������)�)�(�3�R�W�W�5E�5E�d�l�l�5S�T�������)�)�(�3�T�5K�5K�F�5S�T�������g�.��
�
�d�o�o�v�'8�'8�9rIc�\�[RRUR55 UR	5n[RRU5nUR
URURR5 URU[R5 gr�)
rr8r9r	r��open_from_transportr;rYrXr/)r<r��
opened_bzrdirs   r@�test_open_from_transport�&ChrootedTests.test_open_from_transport�sr��	�
�
���T�\�\�^�,���� ���
�
�9�9�!�<�
��������!=�!=�!B�!B�C����m�V�]�]�;rIc��UR5nUR[[RR
U5 gr�)r�r�rrr8rr�s  r@�"test_open_from_transport_no_bzrdir�0ChrootedTests.test_open_from_transport_no_bzrdir�s,����� �����.�&�-�-�*K�*K�Q�OrIc� �[RRUR55 UR	5nURS5 UR
S5nUR[[RRU5 g)N�subdir)
rr8r9r	r�r�rpr�rrr�s  r@�)test_open_from_transport_bzrdir_in_parent�7ChrootedTests.test_open_from_transport_bzrdir_in_parent�s^���
�
���T�\�\�^�,���� ��	�����
�G�G�H������.�&�-�-�*K�*K�Q�OrIc�L�URS5nURS5nURS5 URU5 URSURR
5 UR
S/5 URS5 URS5 URRS5R5nUR5 URUR5 URS	5 UR!S
UR#S55 g)N�tree1�
tree1/subtreessubtree-root�subtree�tree1/subtree/file�file�Initial commit�tree2ztree2/subtree/fileztree-reference)r��set_root_id�
add_reference�set_reference_infor�user_urlr��add�commitrr�r1�	lock_readr5r��assertPathExistsr;�kind)r<r)�sub_treer)s    r@�test_sprout_recursive�#ChrootedTests.test_sprout_recursive�s����(�(��1���,�,�_�=�����_�-����8�$����	�8�?�?�+C�+C�D����-�.�/����V�����$�%����&�&�w�/�@�@�B��
����������%����2�3����)�5�:�:�i�+@�ArIc���URS5nUR"5 URSSS9nURR5nUR	UR
[R5 g)z(Ensure that cloning metadir is suitable.rrrXrN)rj�cloning_metadirrorr/�workingtree_formatr$�WorkingTreeFormat6)r<rrr�s    r@�test_cloning_metadir�"ChrootedTests.test_cloning_metadir�sf���%�%�h�/����� ��!�!�(�6�!�:���"�"�2�2�4������%�%�}�'G�'G�	
rIc�`�URSSS9nURSSS9nURU5 URSURR5 URS/5 UR
S5 URS5 URR5RS	S
5 URR5 URSSSS
9nURS5 URRS5 URS5 UR!S5 g)Nr#�development-subtreerr$r%r&r'r(ztransform.orphan_policy�moverITrFz
repo/tree2zrepo/tree2/subtreezrepo/tree2/subtree/file)r�r+r,rr-r�r.r/�get_config_stack�setr�destroy_workingtreerrGr�r1�assertPathDoesNotExist)r<r)r3rIs    r@�test_sprout_recursive_treeless�,ChrootedTests.test_sprout_recursive_treeless�s���(�(��9N�(�O���,�,��$9�-�
��	
���8�$����	�8�?�?�+C�+C�D����-�.�/����V�����$�%����$�$�&�*�*�+D�f�M����+�+�-��#�#�F�4�@U�#�V���#�#�E�*�	
�����|�,����2�3��#�#�$=�>rIc���[RRS5RnUR	S5RnUR	S5RnXU4$)Nr�r�r)rr8r0rro)r<r�r�rs    r@�make_foo_bar_baz�ChrootedTests.make_foo_bar_baz�sR���m�m�5�5�e�<�G�G�����y�)�4�4�����u�%�0�0����}�rIc��UR5upnUR5nURX1U/[RRU55 gr��rFr��assertEqualBzrdirsrr8�find_controldirs)r<r�r�rr�s     r@�test_find_controldirs�#ChrootedTests.test_find_controldirs�sF���-�-�/�
��#���� ������3�����1O�1O�PQ�1R�SrIc��^�U4Sjn[R"X5nUR5 URUR5 [R
"US5nXE4$)z?Create a transport that raises PermissionDenied for some paths.c�@>�UT;a[R"U5eU$r�)r�PermissionDenied)r��pathss �r@�filter�CChrootedTests.make_fake_permission_denied_transport.<locals>.filter�s ����u�}��-�-�d�3�3��KrIr�)r�PathFilteringServer�start_serverr5�stop_server�PathFilteringTransport)r<rrQrR�path_filter_server�path_filter_transports  `   r@�%make_fake_permission_denied_transport�3ChrootedTests.make_fake_permission_denied_transport�s[���	�
(�;�;�I�N���'�'�)����*�6�6�7� *� A� A���!
��#�:�:rIc�N�UHnURURU5 M! g)z6Check that each branch url ends with the given suffix.N)�assertEndsWithr-)r<�expect_url_suffix�actual_bzrdirs�
actual_bzrdirs    r@�assertBranchUrlsEndWith�%ChrootedTests.assertBranchUrlsEndWith�s#��+�M����
� 6� 6�8I�J�,rIc�P�UR5upnUR5nURUS/5upVURS[R
R
U55 URSUS9nURS[R
R
U55 g)Nr��/baz/r�)�backing_server)rFr�rZrarr8rK�make_smart_server)r<r�r�rr�rXrY�smart_transports        r@�'test_find_controldirs_permission_denied�5ChrootedTests.test_find_controldirs_permission_denied�s����-�-�/�
��#���� ���6�6�q�5�'�B�	2��	
�$�$��V�]�]�3�3�4I�J�	
��0�0��EW�0�X���$�$��V�]�]�3�3�O�D�	
rIc��SnUR5up#nUR5nURX#/[RRXQS95 g)Nc�^�URS5Vs/sHoS:wdM
UPM sn$s snf)Nr�r)�list_dir)r�ss  r@�list_current�FChrootedTests.test_find_controldirs_list_current.<locals>.list_current�s+��(�1�1�"�5�D�5�!�e��A�5�D�D��Ds�	*�*)rnrI)r<rnr�r�rr�s      r@�"test_find_controldirs_list_current�0ChrootedTests.test_find_controldirs_list_current�sQ��	E��-�-�/�
��#���� �����
�J��
�
�6�6�q�6�T�	
rIc
��SnUR5up#nUR5nURURRURR/[[RRXQS955 g)Nc��UR"5 SURR4$![Ra SURR4s$f=f)NFT)r�rXrYrr)rs r@�evaluate�>ChrootedTests.test_find_controldirs_evaluate.<locals>.evaluatesZ��
9��&�&�(��f�3�3�8�8�8�8���-�-�
8��V�2�2�7�7�7�7�
8�s�+�,A�A)rt)	rFr�r;rXrY�listrr8rK)r<rtr�r�rr�s      r@�test_find_controldirs_evaluate�,ChrootedTests.test_find_controldirs_evaluatesq��	9��-�-�/�
��#���� �����
�
�
�
$�
$�c�&8�&8�&=�&=�>�����/�/��/�E�F�	
rIc��[U5n[U5nUR[U5[U55 [X5H?up4URURR
URR
5 MA gr�)rvr;�len�ziprXrY)r<�first�second�x�ys     r@rJ� ChrootedTests.assertEqualBzrdirsse���U����f�������U��S��[�1���&�D�A����Q�-�-�2�2�A�4D�4D�4I�4I�J�'rIc�$�URSSS9 UR5upnURS5 UR5n[R
R
U5nURURRUSR5 URURRUSR5 URURRUSR5 [R
R
URS55nURURRUSR5 URURRUSR5 g)	Nr�Tr�zfoo/quxrr�rr�)rrFrjr�rr8�
find_branchesr;rXrYrp)r<r�r�rr��branchess      r@�test_find_branches� ChrootedTests.test_find_branchess3�����R���-��-�-�/�
��#����Y�'���� ���=�=�.�.�q�1������+�+�0�0�(�1�+�2B�2B�C�����+�+�0�0�(�1�+�2B�2B�C�����+�+�0�0�(�1�+�2B�2B�C��=�=�.�.�q�w�w�u�~�>������+�+�0�0�(�1�+�2B�2B�C�����+�+�0�0�(�1�+�2B�2B�CrI)r�)$rDrErFrGrNr�r�r�r�r�r�r�r�r�rrr	rrrrr r4r:rCrFrLrZrarhrprwrJr�rH�
__classcell__�r�s@r@r�r��s�����D�
K�
+�
�)�)�&�&� )�)�+�*&�0Y�"
:�<�P�P�
B�
�?�:�T�
;� K�

� 
�
� K�
D�
DrIr�c��\rSrSrSrSrg)�TestMissingRepoBranchesSkippedi+c��UR5nURSSS9nURS-n[RRU5R
5 URS5 UR[R[RRU5 URS5 [RRU5HnUR!URS5 M! g)N�arepoTr�z/abranchz
arepo/.bzrrrd)r�rr-rr8r9r��delete_treer�rrr�Branchr�ror�r])r<r�r��abranch_urlr`s     r@�"test_find_controldirs_missing_repo�ATestMissingRepoBranchesSkipped.test_find_controldirs_missing_repo,s������ ���$�$�W�T�$�:���n�n�z�1���
�
���[�)�7�7�9�	�
�
�l�#����&�4�4�f�m�m�6H�6H�+�V������#�]�]�8�8��;�M����
� 6� 6��@�<rIrCN)rDrErFrGr�rHrCrIr@r�r�+s��	ArIr�c�<�\rSrSrSrSrSrSrSrSr	Sr
S	rg
)�TestMeta1DirFormati8z'Tests specific to the meta1 dir format.c��[R"5RUR55nURnURS5RnURX1RS5R5 URX1R[55R5 URS5RnURXARS5R5 [RR5nURXARU5R5 URS5RnURXaRS5R5 URUUR[R "55R5 g)Nrr�checkout)rr0r�r	rrprYr;�get_branch_transportr%�get_repository_transportrr1r��get_workingtree_transportr#�WorkingTreeFormat3)r<r�r��branch_base�repository_baserk�
checkout_bases       r@�test_right_base_dirs�'TestMeta1DirFormat.test_right_base_dirs;sN���&�&�(�3�3�D�L�L�N�C���M�M���g�g�h�'�,�,������&>�&>�t�&D�&I�&I�J�����&>�&>�?O�?Q�&R�&W�&W�X��'�'�,�/�4�4������*F�*F�t�*L�*Q�*Q�R�&�6�6�B�B�D������9�9�:K�L�Q�Q�	
����
�+�0�0�
�����(E�(E�d�(K�(P�(P�Q������)�)�-�*J�*J�*L�M�R�R�	
rIc��[R"5RUR55nURnURSU5 g)zEMeta1 format uses a LockDir to guard the whole directory, not a file.zbranch-lockN)rr0r�r	r�assertIsDirectory)r<r�r�s   r@�test_meta1dir_uses_lockdir�-TestMeta1DirFormat.test_meta1dir_uses_lockdirNs:���&�&�(�3�3�D�L�L�N�C���M�M�����}�a�0rIc��[RRS5nURX5 UR	X:g5 [RRS5nURX!5 UR	X!:g5 [RRS5nURX15 UR	X1:H5 g)z~Equality and inequality behave properly.

Metadirs should compare equal iff they have the same repo, branch and
tree formats.
rXr=N)rr1rjr;rZ�assertNotEqual)r<�mydir�otherdir�	otherdir2s    r@�test_comparison�"TestMeta1DirFormat.test_comparisonTs����*�*�:�:�6�B������&������(��-�-�=�=�f�E������)�����*�+��.�.�>�>�?T�U�	����I�-�����+�,rIc���URSSS9nURRSS05 UR[R
[RRS5 [RRS5 UR[RRS5 [RRS5nURSURRRS55 URRSSS.5 [RRS5nUR0URR5 g)Nr)�2ar�bar�required)r�snonexistant)r�r�update_feature_flagsr�r�MissingFeaturer8r�r0�register_featurer5�unregister_featurer;r��featuresr�)r<r)r�s   r@�test_with_features�%TestMeta1DirFormat.test_with_featuresds����(�(���(�=�����,�,�f�k�-B�C����&�/�/����1C�1C�V�L�� � �1�1�&�9�����0�0�C�C�V�L��m�m� � ��(������c�k�k�&:�&:�&>�&>�v�&F�G����,�,�d�D�-Q�R��m�m� � ��(������S�[�[�1�1�2rIc��[RRS5nURSSS9nUR	URRU55 g)N�dirstater)rXr)rr1rjr�r�needs_format_conversion)r<�
new_formatr)s   r@�,test_needs_conversion_different_working_tree�?TestMeta1DirFormat.test_needs_conversion_different_working_treepsH���/�/�?�?�
�K�
��(�(���(�?��������?�?�
�K�LrIc�t�UR5 [RRS5nUR	S5nUR5 UR
5 URU5nURU[R5 [UR5nURSU5 g)Nr��targetr)� setup_smart_server_with_call_logrr1rjr��ensure_base�reset_smart_call_logr�r/r"�RemoteBzrDirrz�
hpss_callsr;)r<r�r�instance�	rpc_counts     r@�.test_initialize_on_format_uses_smart_transport�ATestMeta1DirFormat.test_initialize_on_format_uses_smart_transportvs����-�-�/��/�/�?�?�
�K�
��&�&�x�0�	������!�!�#��5�5�i�@�����h��(;�(;�<�����(�	�	
����I�&rIrCN)rDrErFrGrNr�r�r�r�r�r�rHrCrIr@r�r�8s$��1�
�&1�-� 
3�M�'rIr�c�D^�\rSrSrSrU4SjrSrSrSrSr	Sr
U=r$)	�
NonLocalTestsi�z5Tests for bzrdir static behaviour on non local paths.c�L>�[TU]5 [RUlgr�)r�r�rr9r:r�s �r@r��NonLocalTests.setUp�s���
��
��%+�%8�%8��"rIc�8�[RRS5n[RRUR
S5US9nUR[RURR5 URR5 g)NrXr�r)rr1rjrr8r0r	r�rr;r1r�rs   r@r2�,NonLocalTests.test_create_branch_convenience�su���+�+�;�;�F�C�����8�8��L�L����9�
��	
���&�.�.��0A�0A�0R�0R�S����)�)�+rIc�2�[RRS5nUR[R
[RRURS5SUS9 UR5nURURS55 g)NrXr�TrB)
rr1rjr�rr%rr8r0r	r�rZ�has)r<r�r�s   r@�9test_create_branch_convenience_force_tree_not_local_fails�GNonLocalTests.test_create_branch_convenience_force_tree_not_local_fails�sy���+�+�;�;�F�C���������M�M�3�3��L�L�����	�	
�
��� ��������u��&rIc��[RRS5n[RRSUS9nURR
5 URRURS55nUR[RUR5 UR5 UR5 g)NrX�localrr")rr1rjrr8r0r1rpr	r�rr;rxr�)r<r�rr?s    r@�
test_clone�NonLocalTests.test_clone�s����+�+�;�;�F�C�����8�8���8�P�����*�*�,��"�"�(�(����h�)?�@�����&�.�.��0G�0G�H�������� rIc���URSSS9 [RRUR	S55nUR5nUR
UR[R5 g)Nzbranch-knit2r�r)
rorr8r�r	�checkout_metadirr/r8r$�WorkingTreeFormat4)r<rp�checkout_formats   r@�test_checkout_metadir�#NonLocalTests.test_checkout_metadir�sb��	
����0G��H��M�M�&�&�t�|�|�N�'C�D�	�#�4�4�6������.�.�
�0P�0P�	
rIrR)rDrErFrGrNr�r2r�r�r�rHr�r�s@r@r�r��s$���?�9�,�'�!�
�
rIr�c�D^�\rSrSrSrSrSrU4SjrSrSr	Sr
U=r$)	�TestHTTPRedirectionsBasei�a*Test redirection between two http servers.

This MUST be used by daughter classes that also inherit from
TestCaseWithTwoWebservers.

We can't inherit directly from TestCaseWithTwoWebservers or the
test framework will try to create an instance which cannot
run, its implementation being incomplete.
c�,�[R"5$r��r�HTTPServerRedirectingr�s r@� create_transport_readonly_server�9TestHTTPRedirectionsBase.create_transport_readonly_server�����/�/�1�1rIc�,�[R"5$r�r�r�s r@�!create_transport_secondary_server�:TestHTTPRedirectionsBase.create_transport_secondary_server�r�rIc�>�[TU]5 UR5UlUR	5UlUR
R
URRURR5 gr�)	r�r��get_readonly_server�
new_server�get_secondary_server�
old_server�redirect_to�host�portr�s �r@r��TestHTTPRedirectionsBase.setUp�sT���
��
���2�2�4����3�3�5������#�#�D�O�O�$8�$8�$�/�/�:N�:N�OrIc��URRURRURR5 URURRURR5nUR
U5nUR[R[RRU5 URURRURR5nUR
U5nUR[R[RRU5 gr�)
r�r�r�r�r��_qualified_url�
_transportr�rrrr8r)r<�old_url�oldt�new_url�newts     r@�	test_loop�"TestHTTPRedirectionsBase.test_loop�s������#�#�D�O�O�$8�$8�$�/�/�:N�:N�O��%�%�d�o�o�&:�&:�D�O�O�<P�<P�Q�����w�'������!�!�6�=�=�#D�#D�d�	
��%�%�d�o�o�&:�&:�D�O�O�<P�<P�Q�����w�'������!�!�6�=�=�#D�#D�d�	
rIc�b�URS5 URURRURR5nURU5R
S5n[RRU5nURUR[U55 g)Nr)
r�r�r�r�r�r�rprr8rr/rX�type)r<r��start�bdirs    r@�test_qualifier_preserved�1TestHTTPRedirectionsBase.test_qualifier_preserved�s���!�!�(�+��%�%�d�o�o�&:�&:�D�O�O�<P�<P�Q������(�.�.�x�8���}�}�0�0��7��	
���d�1�1�4��;�?rI)r�r�)rDrErFrGrNr�r�r�r�r�rHr�r�s@r@r�r��s)����2�2�P�

�@�@rIr�c�"�\rSrSrSr\rSrSrg)�TestHTTPRedirectionsi�z-Tests redirections for urllib implementation.c�J�SRX5nURU5 U$)Nzhttp://{}:{}�r��
permit_url�r<r�r�r?s    r@r��#TestHTTPRedirections._qualified_url�s#���&�&�t�2��������
rIrCN)	rDrErFrGrNrr�r�rHrCrIr@r�r��s��8��J�rIr�c�"�\rSrSrSr\rSrSrg)�TestHTTPRedirections_nosmarti�z-Tests redirections for the nosmart decorator.c�J�SRX5nURU5 U$)Nznosmart+http://{}:{}r�rs    r@r��+TestHTTPRedirections_nosmart._qualified_urls#��'�.�.�t�:��������
rIrCN)	rDrErFrGrNrr�r�rHrCrIr@rr�s��8�*�J�rIrc�"�\rSrSrSr\rSrSrg)�TestHTTPRedirections_readonlyiz+Tests redirections for readonly decoratror.c�J�SRX5nURU5 U$)Nzreadonly+http://{}:{}r�rs    r@r��,TestHTTPRedirections_readonly._qualified_urls#��(�/�/��;��������
rIrCN)	rDrErFrGrNrr�r�rHrCrIr@rrs��6�+�J�rIrc�r�\rSrSrS/r\RS:Xa\RSSSS/rSr	S	r
S
rSrg)
�TestDotBzrHiddeni�ls�win32�COMSPECz/Cr�z/Bc�,�[R"UR[R[RS9nUR	5up#URSURSRURU55 UR5$)N)�stdout�stderrrzCalling {} failed: {})	�
subprocess�Popenr
�PIPE�communicater;�
returncoder��
splitlines)r<�f�out�errs    r@�get_ls�TestDotBzrHidden.get_lsse�����T�W�W�Z�_�_�Z�_�_�U���=�=�?�������A�L�L�*A�*H�*H����RU�*V�W��~�~��rIc��[RRS5 URS/5 UR	S/UR55 g�Nr��a�a)rr8r9r�r;rr�s r@�test_dot_bzr_hidden�$TestDotBzrHidden.test_dot_bzr_hidden s:���
�
���S�!����������$������/rIc���[RR[R"S55 URS/5 UR
S/UR55 gr)rr8r9r
�local_path_to_urlr�r;rr�s r@�test_dot_bzr_hidden_with_url�-TestDotBzrHidden.test_dot_bzr_hidden_with_url%sE���
�
���X�7�7��<�=����������$������/rIrCN)
rDrErFrGr
�sys�platformr��environrr"r&rHrCrIr@rrs;��
��B�
�|�|�w���j�j��#�T�5�$�
7�� �0�
0rIrc��\rSrSrSrSrSrg)�_TestBzrDirFormati+z6Test BzrDirFormat implementation for TestBzrDirSprout.c��[X5$r�)�_TestBzrDir)r<rs  r@�_open�_TestBzrDirFormat._open.s
���9�+�+rIrCN)rDrErFrGrNr/rHrCrIr@r,r,+s
��@�,rIr,c�@^�\rSrSrSrU4SjrSSjrSSjrSrU=r	$)	r.i2z�Test BzrDir implementation for TestBzrDirSprout.

When created a _TestBzrDir already has repository and a branch.  The branch
is a test double as well.
c�>�[TU]"U0UD6 [UR5UlUR5URlgr�)r�r��_TestBranchr�test_branchr�r)r<�args�kwargsr�s   �r@r��_TestBzrDir.__init__9s=���
���$�)�&�)�&�t�~�~�6���&*�&<�&<�&>����#rIc��UR$r��r4)r<�unsupportedr5s   r@rx�_TestBzrDir.open_branch>s�����rIc��[5$r�)r,)r<r�s  r@r7�_TestBzrDir.cloning_metadirAs�� �"�"rIr9)FNr�)
rDrErFrGrNr�rxr7rHr�r�s@r@r.r.2s����?�
 �#�#rIr.c��\rSrSrSrSrg)�_TestBranchFormatiEz(Test Branch format for TestBzrDirSprout.rCNrMrCrIr@r?r?Es��2rIr?c�v^�\rSrSrSr\S5rU4SjrSrSSjr	Sr
SrS	rS
r
SrSrS
rSrU=r$)r3iIz0Test Branch implementation for TestBzrDirSprout.c��UR$r�)r�r�s r@�control_transport�_TestBranch.control_transportLs�����rIc�>�[5UlXlURUl[TU]"U0UD6 /UlSUlgr�)r?r�r�rYr�r��calls�_parent)r<rr5r6r�s    �r@r��_TestBranch.__init__Ps=���(�*���#���N�N��	�
���$�)�&�)���
���rIc�b�URRS5 [UR5$)Nr�)rE�appendr3r�)r<r5r6s   r@r��_TestBranch.sproutXs#���
�
���(�#��4�?�?�+�+rIc�:�URRS5 g)N�copy_content_into)rErI)r<�destination�revision_ids   r@rL�_TestBranch.copy_content_into\s���
�
���-�.rIc�"�[R$r�)�
_mod_revision�
NULL_REVISIONr�s r@�
last_revision�_TestBranch.last_revision_s���*�*�*rIc��UR$r��rFr�s r@�
get_parent�_TestBranch.get_parentbs���|�|�rIc�D�[R"URS5$)Nzbranch.conf)r�TransportConfigr�r�s r@�_get_config�_TestBranch._get_configes���%�%�d�o�o�}�E�ErIc�.�[R"U5$r�)r�BranchStorer�s r@�_get_config_store�_TestBranch._get_config_storehs���!�!�$�'�'rIc��Xlgr�rV)r<r�s  r@�
set_parent�_TestBranch.set_parentks���rIc�B�[R"UR5$r�)r
�LogicalLockResultr�r�s r@r0�_TestBranch.lock_readns���%�%�d�k�k�2�2rIc��gr�rCr�s r@r��_TestBranch.unlockqs��rI)r�rFr�rYrEr�)rDrErFrGrN�propertyrBr�r�rLrSrWr[r_rbr0r�rHr�r�s@r@r3r3IsP���:�
�����,�/�+��F�(��3��rIr3c� �\rSrSrSrSrSrg)�TestBzrDirSproutiuc�T�URS5nUR5 [5RU5nUR	/UR
R5 URS5nURUSS9 URS/UR
R5 g)a�BzrDir.sprout calls Branch.sprout.

Usually, BzrDir.sprout should delegate to the branch's sprout method
for part of the work.  This allows the source branch to control the
choice of format for the new branch.

There are exceptions, but this tests avoids them:
  - if there's no branch in the source bzrdir,
  - or if the stacking has been requested and the format needs to be
    overridden to satisfy that.
rr��no)�recurser�N)
r�r�r,r�r;r4rEr	r��assertSubset)r<r�r��
target_urls    r@�test_sprout_uses_branch_sprout�/TestBzrDirSprout.test_sprout_uses_branch_sproutvs���
���x�(��	�
�
��)�+�C�C�A�F�
�	
����]�6�6�<�<�=��\�\�(�+�
����Z���6�	
���8�*�m�&?�&?�&E�&E�FrIc�
�URS5nURRS5R5nURRS5R5nUR	UR5S5 g)N�grandparentr�rz	/parent/$)rorr�rxr|rW)r<�grandparent_treer��branch_trees    r@�test_sprout_parent�#TestBzrDirSprout.test_sprout_parent�sj���+�+�M�:��!�,�,�3�3�H�=�I�I�K���'�'�.�.�x�8�D�D�F�����k�4�4�6��DrIrCN)rDrErFrGrqrwrHrCrIr@rkrkus��G�8ErIrkc�,�\rSrSrSrSrSrSrSrg)�TestBzrDirHooksi�c��/n[RRRSURS5 URS5nURnUR[R[RRU5 URUR/UVs/sHoDRPM sn5 gs snf)N�pre_openr�)rr8�hooks�install_named_hookrIr�rYr�rrr�r;)r<rErr�r�s     r@�test_pre_open_called�$TestBzrDirHooks.test_pre_open_called�s������
�
���.�.�z�5�<�<��N��&�&�u�-�	��n�n�����&�/�/����1C�1C�S�I����)�.�.�)�E�+B�E�q�F�F�E�+B�C��+Bs�)C
c�R^�S/mU4Sjn[RRRSUS5 UR	S5nUR
nUR
[R[RRU5nURSUR5 g)Nrc�^>�TS==S-
ss'TSS:Xa[R"S5eg)Nrr��fail)r�BzrError)r�counts �r@�	fail_once�ITestBzrDirHooks.test_pre_open_actual_exceptions_raised.<locals>.fail_once�s/����!�H��M�H��Q�x�1�}��o�o�f�-�-�rIr|r�r�)rr8r}r~r�rYr�rr�r�r;�_preformatted_string)r<r�rr�rr�s     @r@�&test_pre_open_actual_exceptions_raised�6TestBzrDirHooks.test_pre_open_actual_exceptions_raised�s~������	.�
	�
�
���.�.�z�9�d�K��&�&�u�-�	��n�n�����������1C�1C�S�I�������!9�!9�:rIc�\�SSKJn /n[RRRSURS5 URS5 URSU5 USnURX15 UR[US55 UR[US55 g)	Nr)�RepoInitHookParams�post_repo_initr�r�rrr)rr�rr8r}r~rIrr�r/r�hasattr)r<r�rE�paramss    r@�test_post_repo_init�#TestBzrDirHooks.test_post_repo_init�s���4����
�
���.�.�/?����t�T����U�#����!�U�#��q������f�9�������5�6�������5�6rIc��^�/m[RRRSU4SjS5 UR	S5 URST5 TSnUR
US5 g)Nr�c�8>�TR[U55$r�)rI�repr)r��param_reprss �r@�<lambda>�?TestBzrDirHooks.test_post_repo_init_hook_repr.<locals>.<lambda>�s���[�-?�-?��V��-MrIr�r�rz<RepoInitHookParams for )rr8r}r~rr��assertStartsWith)r<�
param_reprr�s  @r@�test_post_repo_init_hook_repr�-TestBzrDirHooks.test_post_repo_init_hook_repr�sb������
�
���.�.��M�t�	
�	
���U�#����!�[�)� ��^�
����j�*D�ErIrCN)	rDrErFrGrr�r�r�rHrCrIr@rzrz�s��D�;�
7�FrIrzc�4^�\rSrSrU4SjrSrSrSrU=r$)�TestGenerateBackupNamei�c�>�[TU]5 UR5Ul[R
R
UR5UR/S9 [R
RUR5Ul	g)N)r5)
r�r�r�r�rr8r9r	r�_bzrdirr�s �r@r��TestGenerateBackupName.setUp�sZ���
��
���,�,�.����
�
���T�\�\�^�$�/�/�AR��S��}�}�8�8����I��rIc�Z�URSURRS55 g)N�a.~1~r )r;r��_available_backup_namer�s r@�test_new�TestGenerateBackupName.test_new�s!������$�,�,�"E�"E�c�"J�KrIc��URRSS5 URSURR	S55 g)Nr�ssome contentza.~2~r )r�r�r;r�r�r�s r@�test_exiting�#TestGenerateBackupName.test_exiting�s5�����!�!�'�?�;�����$�,�,�"E�"E�c�"J�KrI)r�r�)	rDrErFrGr�r�r�rHr�r�s@r@r�r��s���
J�L�L�LrIr�c�B�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rg)�TestMeta1DirColoFormati�z?Tests specific to the meta1 dir with colocated branches format.c�d�[R"5nURUR5 gr�)r�BzrDirMetaFormat1Color�colocated_branches�r<r�s  r@�test_supports_colo�)TestMeta1DirColoFormat.test_supports_colo�s"���-�-�/������1�1�2rIc��URSSS9n[R"5nURURRU55 URRRU5nURURS5nURUR[R5 URURU55 g)Nr�r�r)r�rr�rrr�r��
get_converter�convertr/rZ�r<r)r��	converterr?s     r@�test_upgrade_from_2a�+TestMeta1DirColoFormat.test_upgrade_from_2a�s����(�(��T�(�:���-�-�/��������?�?��G�H��O�O�+�+�9�9�&�A�	��"�"�4�?�?�D�9�����f�n�n�f�.J�.J�K�����7�7��?�@rIc��URSSS9n[R"5nURURRU55 URRRU5nURURS5nURUR[R5 URURU55 g)Nr��development-color)r�rr0rrr�r�r�r�r/rZr�s     r@�test_downgrade_to_2a�+TestMeta1DirColoFormat.test_downgrade_to_2a�s����(�(��5G�(�H���)�)�+��������?�?��G�H��O�O�+�+�9�9�&�A�	��"�"�4�?�?�D�9�����f�n�n�f�.F�.F�G�����7�7��?�@rIc�x�URSSS9nURRSS9 URRR	[
R"55nURUR[
R"55nURUR[
R5 g)Nr�r�rzanother-colocated-branchr)	r�rr�r�r�rr0r�r/)r<r)r�r?s    r@�&test_downgrade_to_2a_too_many_branches�=TestMeta1DirColoFormat.test_downgrade_to_2a_too_many_branches�s����(�(��5G�(�H�����%�%�+E�%�F��O�O�+�+�9�9�&�:R�:R�:T�U�	��"�"�4�?�?�F�4L�4L�4N�O�����f�n�n�f�.F�.F�GrIc���URSSS9nURRSS9 URRSS9 UR[R
URRSS9 g)Nr�r�rr�r�fool/blar�)r�rr�r�r�ParentBranchExists�r<r)s  r@�test_nested�"TestMeta1DirColoFormat.test_nested�sl���(�(��5G�(�H�����%�%�5�%�1����%�%�:�%�6�����%�%�t���'D�'D�9�	�	
rIc���URSSS9nURRSS9 URRSS9 UR[R
URRSS9 g)Nr�r�rr�rr�r�)r�rr�r�r�AlreadyBranchErrorr�s  r@�test_parent�"TestMeta1DirColoFormat.test_parentsl���(�(��5G�(�H�����%�%�:�%�6����%�%�9�%�5�����%�%�t���'D�'D�5�	�	
rIc��URSSS9nURRSS9nURRSS9nURRUSS9nUR	UR
URR
S5R
5 URRSS5RSS	5 UR	UR
URR
S5R
5 g)
Nr�r�r�target1r�target2r�locationsfile:,branch=target2)	r�rr��set_branch_referencer;r-rxr�r�)r<r)r�r�rs     r@� test_supports_relative_reference�7TestMeta1DirColoFormat.test_supports_relative_reference
s����(�(��5G�(�H���/�/�/�/�Y�/�?���/�/�/�/�Y�/�?�����5�5�g�H�5�M��������d�o�o�9�9�(�C�L�L�	
�	���.�.�t�X�>�H�H��/�	
�	
������d�o�o�9�9�(�C�L�L�	
rIrCN)
rDrErFrGrNr�r�r�r�r�r�r�rHrCrIr@r�r��s+��I�3�A�A�H�
�
�

rIr�c�$�\rSrSr\S5rSrg)�SampleBzrFormatic��g�NsFirst line
rC)r�s r@r��!SampleBzrFormat.get_format_strings��rIrCN)rDrErFrGr�r�rHrCrIr@r�r�s�����rIr�c�f�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrg)�
TestBzrFormati zTests for BzrFormat.c���[5nSS0UlURUR5S5 SURS'URUR5S5 g)N�foor��First line
required foo
�optionalsanothers)First line
optional another
required foo
)r�r�r;�	as_stringr�s  r@�test_as_string�TestBzrFormat.test_as_string#s[�� �"��!�;�/�������)�)�+�-J�K�&1����
�#�������� O�	
rIc�j�[5nSS0UlURSUR55 g)Nr�r�r�)r�r�r;r�r�s  r@�test_network_name�TestBzrFormat.test_network_name,s0�� �"��!�;�/������6��8K�8K�8M�NrIc�f�[RS5nUR0UR5 gr�)r�r�r;r�r�s  r@�test_from_string_no_features�*TestBzrFormat.test_from_string_no_features2s&�� �,�,�_�=������V�_�_�-rIc��[RS5nURSURR	S55 g)Nr�r�r��r�r�r;r�r�r�s  r@�test_from_string_with_feature�+TestBzrFormat.test_from_string_with_feature7s2�� �,�,�-J�K������f�o�o�&9�&9�&�&A�BrIc�N�UR[[RS5 g)NsSecond line
required foo
)r��AssertionErrorr�r�r�s r@�'test_from_string_format_string_mismatch�5TestBzrFormat.test_from_string_format_string_mismatch<s������O�7�7�9W�	
rIc�b�UR[R[RS5 g)NsFirst line
foo
)r�r�ParseFormatErrorr�r�r�s r@�test_from_string_missing_space�,TestBzrFormat.test_from_string_missing_spaceBs$������#�#�_�%@�%@�BV�	
rIc��[RS5nURSURR	S55 g)Ns$First line
required foo with spaces
r�sfoo with spacesr�r�s  r@�test_from_string_with_spaces�*TestBzrFormat.test_from_string_with_spacesHs3�� �,�,�-V�W������f�o�o�&9�&9�:L�&M�NrIc���[5nSS0Ul[5nSS0UlURX5 URX5 [5nURX5 g)N�nested-treesr�)r�r�r;r�)r<�format1�format2�format3s    r@�test_eq�TestBzrFormat.test_eqMs^��!�#��+�[�9���!�#��+�[�9�������*�����*�!�#�����G�-rIc���[5nSS0UlURS5 UR[RS5 [RS5 URS5 g)Nr�r�T)r�r��check_support_statusr5r�r�r�s  r@�"test_check_support_status_optional�0TestBzrFormat.test_check_support_status_optionalWsT�� �"��*�K�8����#�#�D�)�����:�:�O�L��(�(��9��#�#�D�)rIc��[5nSS0UlUR[RUR
S5 UR
[RS5 [RS5 URS5 g)Nr�r�T�	r�r�r�rr�r�r5r�r�r�s  r@�"test_check_support_status_required�0TestBzrFormat.test_check_support_status_required`sd�� �"��*�K�8������&�/�/��1L�1L�d�S�����:�:�O�L��(�(��9��#�#�D�)rIc��[5nSS0UlUR[RUR
S5 UR
[RS5 [RS5 URS5 g)Nr�sunknownTr�r�s  r@�!test_check_support_status_unknown�/TestBzrFormat.test_check_support_status_unknownisd�� �"��*�J�7������&�/�/��1L�1L�d�S�����:�:�O�L��(�(��9��#�#�D�)rIc���UR[RS5 [RS5 UR	[
R[RS5 g)Nr�)r5r�r�r�r�r�FeatureAlreadyRegisteredr�s r@�test_feature_already_registered�-TestBzrFormat.test_feature_already_registeredrsG������:�:�O�L��(�(��9�����+�+��,�,��	
rIc�N�UR[[RS5 g)Nsnested trees)r��
ValueErrorr�r�r�s r@�test_feature_with_space�%TestBzrFormat.test_feature_with_space|s�����*�o�&F�&F��XrIrCN)rDrErFrGrNr�r�r�r�r�r�r�r�r�rrrrrHrCrIr@r�r� sJ���
�O�.�
C�

�
�O�
.�*�*�*�
�YrIr�)VrNr�rr(�
breezy.branchrn�breezy.bzr.branchr�rrrrrr	r
rrr
rrQrr�rrr�testsrrrrrrr�transport.http.urllibr�transport.nosmartr�transport.readonlyrrr r!r"r#r$�fullhistoryr%r'r-rKrPr�r��
Repositoryr�r8r:r4r0r�r�r�rTr�r�r�r�r��TestCaseWithTwoWebserversr�rrrr,�BzrDirMeta1r.�BranchFormatr?r3rkrzr�r��	BzrFormatr�r�rCrIr@�<module>rsf��"�

��
������*�+�P�P���,�2�:�<�T�T�*�O��O�$'�V�0�0�'�GR��GR�T�6�=�=�'�'���v�(�(�3�3���6�=�=��,��,�,��8 ��0�0� � ��0�0� �]-�,�]-�@s
�&;�s
�lkD�)�kD�\
A�%@�
A�L'�.�L'�^/
�)�/
�d2@�2@�j
��j�B�B�
�
��j�B�B�
�
��j�B�B�
�0�,�0�,,��0�0�,�#�&�$�$�#�&3��
�
�2�2�3�)�&�-�-�&�&�)�X!E�2�!E�H+F�1�+F�\L�8�L�&=
�2�=
�@�f�&�&��^Y�H�^YrI

Youez - 2016 - github.com/yon3zu
LinuXploit