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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

p��gDR��"�SrSSKrSSKrSSKrSSKJrJrJrJr SSK	J
r SSKJ
r
 SSKJr SSKJrJr SS	KJr SS
KJr SSKJr SSKJr S
SKJrJrJr S
SKJ r J!r! SSKJ"r" "SS5r#"SS\#\5r$"SS5r%"SS\5r&g)z&Tests from fetching from git into bzr.�N)�S_IFGITLINK�Blob�Tag�Tree)�Repo�)�osutils)�Branch)�knit�
versionedfile)�	Inventory)�
ControlDir)�
Repository)�TestCaseWithTransport�)�import_git_blob�import_git_submodule�import_git_tree)�DEFAULT_FILE_MODE�BzrGitMappingv1�)�GitBranchBuilderc�r�\rSrSrSrSSjrSrSrSrSr	S	r
S
rSrSr
S
rSrSrSrSrSrg)�RepositoryFetchTests�&c��[R"U5 [R"[RRU55$�N)�os�mkdir�GitRepo�init�path�abspath��selfr"s  �=/usr/lib/python3/dist-packages/breezy/git/tests/test_fetch.py�
make_git_repo�"RepositoryFetchTests.make_git_repo's)��
������|�|�B�G�G�O�O�D�1�2�2�Nc��URU5n[R"U5nUR5nUR	XcS9 U$)N��revision_id)�
open_git_repor�create�create_repository�copy_content_into)r%�from_url�to_urlr,�oldrepos�dir�newreposs       r&�clone_git_repo�#RepositoryFetchTests.clone_git_repo+sF���%�%�h�/������'���(�(�*���"�"�8�"�E��r)c��URS5 URSS5nUR/UR55 g)N�d�f)r'r6�assertEqual�all_revision_ids)r%r5s  r&�
test_empty�RepositoryFetchTests.test_empty2s;�����3���&�&�s�C�0������X�6�6�8�9r)c��URS5 [R"S5 [5nUR	SSS5 URSS5nUR
5Un[R"S5 SU4$)Nr9�foobar�foo
bar
F�Somebody <somebody@someorg.org>�mymsg�..)r'r�chdirr�set_file�commit�finish)r%�bb�mark�gitshas    r&�make_onerev_branch�'RepositoryFetchTests.make_onerev_branch7si�����3��
����
�
�
��
���H�m�U�3��y�y�;�X�F������T�"��
������F�{�r)c���UR5upURU5nURUS5nUR5R	U5nURU/UR
55 g)Nr:)rLr-r6�get_mapping�revision_id_foreign_to_bzrr;r<)r%r"rK�oldrepo�newrepo�revids      r&�test_single_rev�$RepositoryFetchTests.test_single_revAsh���.�.�0����$�$�T�*���%�%�d�C�0���#�#�%�@�@��H�����%��'�":�":�"<�=r)c���UR5upURU5nUR5RU5nUR	USUS9nURU/UR
55 g)Nr:r+)rLr-rOrPr6r;r<)r%r"rKrQrSrRs      r&�test_single_rev_specific�-RepositoryFetchTests.test_single_rev_specificHsm���.�.�0����$�$�T�*���#�#�%�@�@��H���%�%�d�C�U�%�C�����%��'�":�":�"<�=r)c���URS5 [R"S5 [5nUR	SSS5 URSS5nUR	SSS5 URSS5nUR
5nXBnXCn[R"S	5 URS5nUR5RU5nURSS
US9n	URU/U	R55 UR5RU5n
U	RXzS9 URX�1[U	R555 g)Nr9r@rAFrBrC�
fooll
bar
�nextmsgrDr:r+)r'rrErrFrGrHr-rOrPr6r;r<�fetch�set)r%rI�mark1�mark2�marks�gitsha1�gitsha2rQ�revid1rR�revid2s           r&�test_incremental�%RepositoryFetchTests.test_incrementalOs,�����3��
����
�
�
��
���H�m�U�3��	�	�<�h�G��
���H�o�u�5��	�	�<�j�I���	�	����,���,��
������$�$�S�)���$�$�&�A�A�'�J���%�%�c�3�F�%�C�����&��7�#;�#;�#=�>��$�$�&�A�A�'�J���
�
�g�
�2����&�)�3�w�/G�/G�/I�+J�Kr)c��URS5 [R"S5 [5nUR	SSS5 URSS5nUR
S5 URSS5 URSS	5nUR5nXBnXCn[R"S
5 URS5nURSS5nUR5RU5n	UR5RU5n
URU	5nURU
5nURX�RS55 URSUR!S55 URSUR#S55 URX�RS55 URS
UR!S55 URSUR#S55 g)Nr9�mylink/somefilerAFrB�mymsg1�mylink�target/�mymsg2rDr:�	directory�symlink)r'rrErrFrG�delete_entry�set_symlinkrHr-r6rOrP�
revision_treer;�get_file_revision�kind�get_symlink_target�
r%rIr^r_r`rarbrQrRrcrd�tree1�tree2s
             r&�test_dir_becomes_symlink�-RepositoryFetchTests.test_dir_becomes_symlinkcs������3��
����
�
�
��
���%�}�e�<��	�	�<�i�H��
���)�*�
���x��+��	�	�<�i�H���	�	����,���,��
������$�$�S�)���%�%�c�3�/���$�$�&�A�A�'�J���$�$�&�A�A�'�J���%�%�f�-���%�%�f�-������!8�!8��!B�C�����e�j�j��&:�;�����u�7�7��A�B�����!8�!8��!B�C�����E�J�J�x�$8�9�����E�$<�$<�X�$F�Gr)c��URS5 [R"S5 [5nUR	SS5 URSS5nUR
S5 URSSS5 URSS	5nUR5nXBnXCn[R"S
5 URS5nURSS5nUR5RU5n	UR5RU5n
URU	5nURU
5nURX�RS55 URSUR!S55 URSUR#S55 URX�RS55 URS
UR!S55 URSUR#S55 g)Nr9rjrkrBrirhrAFrlrDr:rnrm)r'rrErrprGrorFrHr-r6rOrPrqr;rrrsrtrus
             r&�test_symlink_becomes_dir�-RepositoryFetchTests.test_symlink_becomes_dir}s������3��
����
�
�
��
���x��+��	�	�<�i�H��
����!�
���%�}�e�<��	�	�<�i�H���	�	����,���,��
������$�$�S�)���%�%�c�3�/���$�$�&�A�A�'�J���$�$�&�A�A�'�J���%�%�f�-���%�%�f�-������!8�!8��!B�C�����E�J�J�x�$8�9�����E�$<�$<�X�$F�G�����!8�!8��!B�C�����e�j�j��&:�;�����u�7�7��A�Br)c�\�URS5 [R"S5 [5nUR	SS5 URSS5nUR	SS5 URSS5nUR
5nXBnXCn[R"S5 URS5nURSS	5nUR5RU5n	UR5RU5n
URU	5nURU
5nURX�RS55 URSURS55 URX�RS55 URSURS55 g)
Nr9rj�targetrBrirkrlrDr:)r'rrErrprGrHr-r6rOrPrqr;rrrtrus
             r&�test_changing_symlink�*RepositoryFetchTests.test_changing_symlink�sa�����3��
����
�
�
��
���x��*��	�	�<�i�H��
���x��+��	�	�<�i�H���	�	����,���,��
������$�$�S�)���%�%�c�3�/���$�$�&�A�A�'�J���$�$�&�A�A�'�J���%�%�f�-���%�%�f�-������!8�!8��!B�C�����5�#;�#;�H�#E�F�����!8�!8��!B�C�����E�$<�$<�X�$F�Gr)c���URS5 [R"S5 [5nUR	SSS5 UR	SSS5 URSS5nUR
5Un[R"S	5 URS5nURSS
5nUR5RU5nURU5nURURS55 URSURS55 URURS55 URSURS55 g)Nr9r@rAT�notexecFrBrCrDr:)r'rrErrFrGrHr-r6rOrPrq�
assertTrue�has_filenamer;�
is_executable�r%rIrJrKrQrRrS�trees        r&�test_executable�$RepositoryFetchTests.test_executable�s�����3��
����
�
�
��
���H�m�T�2�
���I�}�e�4��y�y�;�X�F������T�"��
������$�$�S�)���%�%�c�3�/���#�#�%�@�@��H���$�$�U�+������)�)�(�3�4�����t�1�1�(�;�<�����)�)�)�4�5������ 2� 2�9� =�>r)c��URS5 [R"S5 [5nUR	SSS5 URSS5 UR	SSS5 URSS5nUR
5Un[R"S5 URS5nURSS	5nUR5RU5nURU5nURURS55 URSURS55 URXgR!S55 g)
Nr9r@rAFrBrCTrDr:)r'rrErrFrGrHr-r6rOrPrqr�r�r;r�rr)r%rIr_rbrQrRrSr�s        r&�test_becomes_executable�,RepositoryFetchTests.test_becomes_executable�s�����3��
����
�
�
��
���H�m�U�3�
�	�	�4�h�?�
���H�m�T�2��	�	�<�h�G���)�)�+�e�$��
������$�$�S�)���%�%�c�3�/���#�#�%�@�@��I���$�$�U�+������)�)�(�3�4�����t�1�1�(�;�<����� 6� 6�x� @�Ar)c�$�URS5 [R"S5 [5nUR	SSS5 URSS5nUR
5Un[R"S5 URSS5n[R"S5nUR5RU5nURU/UR55 URR5nUR!U5 URUR#5U5 UR%S	5nUR&R)UR*5 [R"S5 [5nUR	S
SS5 UR	SS
S5 URSS5n	UR
5U	n
UR5RU
5n[R"S5 UR&R-[.R"S55 UR&R0R35 UR5UR75R85 URU41UR&R0R:R=5R?55 URXk1[AUR&R0R555 g)Nr9r@sfoo
FrBrirDz
stacked-on�stacked�barbarsbar
zfoo/blie/blasbla
rl)!r'rrErrFrGrHr6r�openrOrPr;r<�
controldir�
create_branch�generate_revision_history�
last_revision�make_branch_and_tree�branch�set_stacked_on_url�user_urlr\r
�
repository�check�
addCleanup�	lock_read�unlock�	revisions�without_fallbacks�keysr])r%rIr^ra�
stacked_onrQrc�br�r_rbrds            r&�test_into_stacked_on�)RepositoryFetchTests.test_into_stacked_on�s=�����3��
����
�
�
��
���H�h��.��	�	�<�i�H���)�)�+�e�$��
������(�(��l�;�
��/�/�#�&���$�$�&�A�A�'�J�����&��:�#>�#>�#@�A��!�!�/�/�1��	�#�#�F�+�������*�F�3��(�(��3�����&�&�q�z�z�2�
����
�
�
��
���H�h��.�
���N�H�e�4��	�	�<�i�H���)�)�+�e�$���$�$�&�A�A�'�J��
����������&�+�+�c�*�+������$�$�&�������(�/�/�0�����Y�K����/�/�9�9�K�K�M�R�R�T�	
�	
���
��c�$�+�+�"8�"8�"I�"I�"K�L�	
r)c���URS5 [R"S5 [5nUR	SSS5 URSS5nUR
5Un[R"S5 URS5nURSS5nUR5RU5nURU5nURURS55 g)	Nr9ufoőbarrAFrBrCrDr:)r'rrErrFrGrHr-r6rOrPrqr�r�r�s        r&�test_non_ascii_characters�.RepositoryFetchTests.test_non_ascii_characters�s������3��
����
�
�
��
���I�}�e�4��y�y�;�X�F������T�"��
������$�$�S�)���%�%�c�3�/���#�#�%�@�@��H���$�$�U�+������)�)�)�4�5r)c���URS5n[R"S5 [5nUR	SSS5 URSS5nUR
5nXCn[5nSUl[[R"55UlSUlS	Ul
S
Ul[XR 4UlUR$R'U5 XaS'[R"S5 UR)S5nUR+5R-U5nUR/SS
5n	UR1U1[3U	R5555 g)Nr9r@rZFrBr[ssometagrsSomebody <somebody@example.com>sCreated tag pointed at treesrefs/tags/sometagrDr:)r'rrErrFrGrHr�name�int�time�tag_time�tag_timezone�tagger�messagerr��object�object_store�
add_objectr-rOrPr6r;r]r<)
r%�rrIrJr`rK�tagrQrSrRs
          r&�test_tagged_tree�%RepositoryFetchTests.test_tagged_trees!�����s�#��
����
�
�
��
���H�o�u�5��y�y�;�Z�H���	�	�������e������4�9�9�;�'������7��
�4����A�I�N�N�+��
�	���!�!�#�&�"%�
��
������$�$�S�)���#�#�%�@�@��H���%�%�c�3�/�����%��#�g�&>�&>�&@�"A�Br)�r)�__name__�
__module__�__qualname__�__firstlineno__r'r6r=rLrTrWrerxr{rr�r�r�r�r��__static_attributes__r�r)r&rr&sT��3��:�
�>�>�L�(H�4C�4H�.?�$B�$!
�F6�Cr)rc��\rSrSrSrSrg)�LocalRepositoryFetchTestsic�.�[R"U5$r)rr�r$s  r&r-�'LocalRepositoryFetchTests.open_git_repos�����t�$�$r)r�N)r�r�r�r�r-r�r�r)r&r�r�s��%r)r�c� �\rSrSrSrSrSrg)�DummyStoreUpdateri c��grr�)r%�obj�ier"s    r&r��DummyStoreUpdater.add_object!���r)c��grr�)r%s r&rH�DummyStoreUpdater.finish$r�r)r�N)r�r�r�r�r�rHr�r�r)r&r�r� s��
�
r)r�c�X^�\rSrSrU4SjrSrSrSrSrSr	Sr
S	rS
rSr
U=r$)�
ImportObjectsi(c��>�[TU]5 [5Ul[R
"S[R"55nU"URS55Ul	g)NT�texts)
�super�setUpr�_mappingr�make_file_factoryr�PrefixMapper�
get_transport�_texts)r%�factory�	__class__s  �r&r��ImportObjects.setUp)sH���
��
��'�)��
��(�(��}�/I�/I�/K�L���d�0�0��9�:��r)c��URS5nUR5 URSS/5nURU/SSURR	S5SS44/5nURU//5nUR5 UR
5n[R"S5nSU0n[URURS	S	S
URRU5SSX44Vs/sHo�RRU5PM snURS[4[5URR5
 UR!S
1URR#55 gs snf)N�br)�add)��rootidrmr�r��bla�filescontent�bar�blobname�bla�Nr�r��	somerevid�sgit:blar�)�make_branch_builder�start_series�build_snapshotr��generate_file_id�
finish_series�
get_branchr�from_stringrr�r�rq�__getitem__rr�r;r�)	r%�builder�rev_root�rev1�rev2r��blob�objsr�s	         r&�&test_import_blob_missing_in_one_parent�4ImportObjects.test_import_blob_missing_in_one_parent/sl���*�*�4�0�������)�)��<�=�
���%�%�
�J���D�M�M�:�:�5�A�6�:�V��
�
���%�%�x�j�"�5�������#�#�%������'���D�!����K�K��M�M�������+�+�D�1���:>��F��A�
�
�
,�
,�Q�
/��F����
�$�%����M�M�*�*�	
�	
���4�5�t�{�{�7G�7G�7I�J��

Gs�4$E;c�x�[R"S5nSU0n[URURSSSSSS/UR
S[4[5URR5
nURS1URR55 UR[URRS/SS55RS	5S5 URS
[U55 URSUSS5 URSUSS
5 USS
nURSUR5 URSUR 5 URSUR"5 UR[$R&"S/5UR(5 g)Nr�r�r�r�r�r��	unorderedT�fulltextrrr�rFr�)rr�rr�r�r�rr�r�r;r��next�get_record_stream�get_bytes_as�len�
executablers�revisionr	�sha_strings�	text_sha1)r%r�r��retr�s     r&�test_import_blob_simple�%ImportObjects.test_import_blob_simpleUs�������'���D�!����K�K��M�M�����������
�$�%����M�M�*�*�
��	
���4�5�t�{�{�7G�7G�7I�J��������-�-�/�0�+�t��
��l�:�&��
	
�	
����C��H�%�����s�1�v�a�y�)������A��q�	�*�
��V�A�Y�������
�
�.��������)�����r�{�{�3�����,�,�f�X�6����Er)c�F�[5n[URURSSSUR4SSS/URU0R
S[R4[5URR5
up#URU05 URS1URR55 URS[U55 URSUSS5 URSUSS5 USSnURSUR5 URS	UR5 UR0UR5 URSUR 5 URSUR"5 g)
Nr)r�)s	TREE_ROOTr�rrr�rFrm)rrr�r��idr��stat�S_IFDIRr�r�r;r�r�r�rs�childrenr�r��r%r�r�child_modesr�s     r&�test_import_tree_empty_root�)ImportObjects.test_import_tree_empty_rootysY���v��*��K�K��M�M���
�4�7�7�O�����
�W�W�d�O�'�'�
�4�<�<� ����M�M�*�*�
���	
����b�)����6�7����9I�9I�9K�L�����C��H�%�����s�1�v�a�y�)�����S��V�A�Y�'�
��V�A�Y�������
�
�.�����b�g�g�.�����R�[�[�)�����r�{�{�3�����r�|�|�,r)c�F�[5n[URURSSSUR4SSS/URU0R
S[R4[5URR5
up#URU05 URS1URR55 URS[U55 URSUSS5 URSUSS5 USSnURSUR5 URS	UR5 UR0UR5 URSUR 5 URSUR"5 g)
Nr�r�r�rrr�rrmF)rrr�r�rr�rrr�r�r;r�r�rsr�rr�r�rs     r&�test_import_tree_empty�$ImportObjects.test_import_tree_empty�sY���v��*��K�K��M�M���
�4�7�7�O�����
�W�W�d�O�'�'�
�4�<�<� ����M�M�*�*�
���	
����b�)����4�5�t�{�{�7G�7G�7I�J�����C��H�%�����s�1�v�a�y�)������A��q�	�*�
��V�A�Y������b�g�g�.������
�
�.�����R�[�[�)�����r�{�{�3�����r�|�|�,r)c�d�[R"S5n[5nURS[R
S-UR5 URXRU0n[URURSSSUR4SSS/URS[R4[5URR5
upEURU05 URS[U55 URSUSS5 URSUSS	5 URSUS	S5 URS
US	S	5 USSnURSUR 5 US	SnURS
UR 5 URSUR"5 URSUR$5 UR[&R("S/5UR*5 URSUR,5 g)N�bar1�fooi�r�r�rrr�rzbla/foorrmr�sgit:bla/fooF)rr�rr�r�S_IFREGrrr�r�r�rr�r�r;r�rs�file_idr�r	r�r�r��r%r�r��objectsrr	r�s       r&�test_import_tree_with_file�(ImportObjects.test_import_tree_with_file�s�������(���v����������-�t�w�w�7��7�7�D�'�'�4�0��*��K�K��M�M���
�4�7�7�O��������
�4�<�<� ����M�M�*�*�
���	
����b�)�����C��H�%�����s�1�v�a�y�)������A��q�	�*�����s�1�v�a�y�)�����C��F�1�I�.�
��V�A�Y������b�g�g�.�
��V�A�Y���������)��������4�����r�{�{�3�����,�,�g�Y�7����F������
�
�.r)c��[R"S5n[5nURS[R
S-UR5 URXRU0n[URURSSSUR4SSS/URS[R4[5URR5
upEURUS[R
S-05 g)Nrri�r�r�sbla/foo)rr�rr�rrrrr�r�r�rr�r�r;)r%r�r�rrr	s      r&�'test_import_tree_with_unusual_mode_file�5ImportObjects.test_import_tree_with_unusual_mode_file�s�������(���v����������-�t�w�w�7��7�7�D�'�'�4�0��*��K�K��M�M���
�4�7�7�O��������
�4�<�<� ����M�M�*�*�
���	
����z�4�<�<�%�3G�&H�Ir)c�p�[R"S5n[5nURSSUR5 URXRU0n[URURSSSUR4SSS/URS[R4[5URR5
upEURU05 URS[U55 URSUSS5 URSUSS	5 URSUS	S5 URS
US	S	5 USSnURSUR5 US	SnURS
UR5 URSUR 5 g)Nr�ri�r)r�rrr�r�foorrmr�T)rr�rr�rrr�r�r�rrr�r�r;r�rsr�rs       r&�test_import_tree_with_file_exe�,ImportObjects.test_import_tree_with_file_exe�s}������'���v�������4�7�7�+��7�7�D�'�'�4�0��*��K�K��M�M���
�4�7�7�O��������
�4�<�<� ����M�M�*�*�
���	
����b�)�����C��H�%�����s�1�v�a�y�)�����S��V�A�Y�'�����s�1�v�a�y�)������A��q�	�*�
��V�A�Y������b�g�g�.�
��V�A�Y���������)�����r�}�}�-r)c��[5nURSS5 URSS5 [R"S5n[R"S5n[	5nURSSUR5 URU0n[URURSSURUR4UURRS	/UR[RS
-[4[!5URR"5
upgUR%U05 UR%S['U55 UR%USSSUR)S5S45 UR%US
SSSSURR#S545 US
SnUR%UR*S5 g)Nrrmzfoo/barr�ssomeotherthingr�i�rr�i�rrrrztree-reference)r
�add_pathrr�rr�rrr�r��rootrr�rrrr�r�r;r��path2idrs)	r%�base_inv�	othertreer�r�rrr	r�s	         r&�%test_directory_converted_to_submodule�3ImportObjects.test_directory_converted_to_submodules����;�����%��-����)�V�,��$�$�%6�7�	�����'���v�������4�7�7�+��7�7�D�/��/��K�K��M�M���
�W�W�i�l�l�#���M�M�!�!������
�\�\�E�
!�;�/����M�M�*�*�
���	
����b�)�����C��H�%�����Q��)�T�8�3C�3C�I�3N�PT�!U�V������F�2�A�J���t�}�}�'E�'E�e�'L�M�	
���V�A�Y��������"2�3r))r�r�)r�r�r�r�r�r�rr
r
rrrr%r��
__classcell__)r�s@r&r�r�(s<���;�$K�L"F�H-�:-�:!/�FJ�,.�@4�4r)r�)'�__doc__rrr��dulwich.objectsrrrr�dulwich.reporr r�r	r�r
�bzrrr�
bzr.inventoryr
r�rr�r�testsrr\rrr�mappingrrrrr�r�r�r�r)r&�<module>r/su��"-�	���8�8�(���&�&�$�$�*�J�J�8��rC�rC�j%� 4�6K�%�

�
�C4�)�C4r)

Youez - 2016 - github.com/yon3zu
LinuXploit