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

p��gH ��B�SrSSKJr SSKJr SSKJr "SS\5rg)	z"Tests for the GitMemoryTree class.�)�errors)�
NoSuchFile�)�TestCaseWithTransportc�^�\rSrSrSU4SjjrSU4SjjrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrU=r$)�TestMemoryTree�c�>�[TU]XS9$�N)�format)�super�make_branch��self�pathr�	__class__s   ��B/usr/lib/python3/dist-packages/breezy/git/tests/test_memorytree.pyr�TestMemoryTree.make_branchs����w�"�4�"�7�7�c�>�[TU]XS9$r)r
�make_branch_and_treers   �rr�#TestMemoryTree.make_branch_and_trees����w�+�D�+�@�@rc��URS5nUR5nURURUR5 URXR5 UR/UR55 g)z2Creating a mutable tree on a trivial branch works.�branchN)r�create_memorytree�assertEqual�
controldirr�get_parent_ids�rr�trees   r�test_create_on_branch�$TestMemoryTree.test_create_on_branch se���!�!�(�+���'�'�)������*�*�D�O�O�<�������-�����T�0�0�2�3rc��URS5nURS/5 URS/5 URS5nURR5nUR
5 URU/UR55 URSURS5R55 SSS5 g!,(df   g=f)z6Creating a mutable tree on a non-trivial branch works.�sometreezsometree/foo�foo�
first postscontents of sometree/foo
N)r�
build_tree�add�commitrr�	lock_readrr�get_file�read)r�wt�rev_idr s    r�"test_create_on_branch_with_content�1TestMemoryTree.test_create_on_branch_with_content(s���
�
&�
&�z�
2������(�)�
����w�����<�(���y�y�*�*�,��
�^�^�
����f�X�t�':�':�'<�=����:�D�M�M�%�<P�<U�<U�<W�X��
�
�s
�1AC�
Cc��URS5nUR5nUR5 UR5 g)z4Check we can lock_tree_write and unlock MemoryTrees.rN)rr�lock_tree_write�unlockrs   r�test_lock_tree_write�#TestMemoryTree.test_lock_tree_write3s5���!�!�(�+���'�'�)���������
rc���URS5nUR5nUR5 UR[R
UR5 UR5 g�z@Check that we error when trying to upgrade a read lock to write.rN)rrr*�assertRaisesr�
ReadOnlyErrorr2r3rs   r�%test_lock_tree_write_after_read_fails�4TestMemoryTree.test_lock_tree_write_after_read_fails:sO���!�!�(�+���'�'�)���������&�.�.��0D�0D�E����
rc��URS5nUR5nUR5 UR5 g)z/Check we can lock_write and unlock MemoryTrees.rN)rr�
lock_writer3rs   r�test_lock_write�TestMemoryTree.test_lock_writeBs3���!�!�(�+���'�'�)���������
rc���URS5nUR5nUR5 UR[R
UR5 UR5 gr7)rrr*r8rr9r=r3rs   r� test_lock_write_after_read_fails�/TestMemoryTree.test_lock_write_after_read_failsIsM���!�!�(�+���'�'�)���������&�.�.����@����
rc��URS5nUR5nUR5 UR/SQ/SQ5 UR	URS55 UR
URS55 UR
URS55 UR
URS55 UR5 g)Nr)��afile�adir)�	directory�filerGrErF)	rrr=r(�
assertTrue�is_versioned�assertFalse�has_filenamer3rs   r�test_add_with_kind�!TestMemoryTree.test_add_with_kindQs����!�!�(�+���'�'�)���������&�(J�K�����)�)�'�2�3�����*�*�6�2�3�����*�*�7�3�4�����*�*�6�2�3����
rc�D�URS5nUR5nUR5 URSS/SS/S9 UR	SS5 URSUR
S5R55 SSS5 g!,(df   g=f)NrrDr%rGrH��kinds�barshoom�rrr=r(�put_file_bytes_non_atomicrr+r,rs   r�test_put_new_file� TestMemoryTree.test_put_new_file\s����!�!�(�+���'�'�)��
�_�_�
��H�H�b�%�[��f�(=�H�>��*�*�5�+�>����[�$�-�-��*>�*C�*C�*E�F��
�
�s�AB�
Bc�h�URS5nUR5nUR5 URSS/SS/S9 UR	SS5 UR	SS5 URSUR
S5R55 SSS5 g!,(df   g=f)	NrrDr%rGrHrPs
first-contentrRrSrs   r�test_put_existing_file�%TestMemoryTree.test_put_existing_fileds����!�!�(�+���'�'�)��
�_�_�
��H�H�b�%�[��f�(=�H�>��*�*�5�2B�C��*�*�5�+�>����[�$�-�-��*>�*C�*C�*E�F�	�
�
�s�A(B#�#
B1c��URS5nUR5nUR5 URS/S/5 UR	S5 URSS5 URS/S/5 UR
URS55 UR
URS55 SSS5 g!,(df   g=f)NrrDrGrFz
adir/afilerRrH)rrr=r(�mkdirrTrIrJrs   r�test_add_in_subdir�!TestMemoryTree.test_add_in_subdirms����!�!�(�+���'�'�)��
�_�_�
��H�H�b�T�K�=�)��J�J�v���*�*�<��E��H�H�l�^�f�X�.��O�O�D�-�-�l�;�<��O�O�D�-�-�f�5�6�
�
�
�s�BC�
Cc�F�URS5nUR5nUR5 URSS/SS/S9 UR	SS5 URS5nUR
U/UR55 S	S	S	5 URRRW5nUR5 UR
SURS5R55 S	S	S	5 g	!,(df   N|=f!,(df   g	=f)
z�Smoke test for commit on a MemoryTree.

Becamse of commits design and layering, if this works, all commit
logic should work quite reliably.
rrDr%rGrHrPrRzmessage babyN)rrr=r(rTr)rrr�
repository�
revision_treer*r+r,)rrr �revision_id�revtrees     r�test_commit_trivial�"TestMemoryTree.test_commit_trivialxs����!�!�(�+���'�'�)��
�_�_�
��H�H�b�%�[��f�(=�H�>��*�*�5�+�>��+�+�n�5�K����k�]�D�,?�,?�,A�B���+�+�(�(�6�6�{�C��
�
�
�
 ����[�'�*:�*:�5�*A�*F�*F�*H�I�!�
 ��
��!�
 �s�AD�0D�
D�
D c�f�URS5nUR5nUR5 URSS/SS/S9 UR	S/5 URUR
S55 URURS55 SSS5 g!,(df   g=f)z)Some test for unversion of a memory tree.rrDr%rGrHrPN)rrr=r(�	unversionrKrJrLrs   r�test_unversion�TestMemoryTree.test_unversion�s����!�!�(�+���'�'�)��
�_�_�
��H�H�b�%�[��f�(=�H�>��N�N�E�7�#����T�.�.�u�5�6����T�.�.�u�5�6�	�
�
�s�A'B"�"
B0c��URS5nUR5 URS5 URS5nSSS5 UR	WUR55 g!,(df   N/=f)z3There should be a last revision method we can call.rrDr&N)�make_branch_and_memory_treer=r(r)r�
last_revision)rr r.s   r�test_last_revision�!TestMemoryTree.test_last_revision�s^���/�/��9��
�_�_�
��H�H�R�L��[�[��.�F��	
�����!3�!3�!5�6��
�s�#A.�.
A<c��URS5nUR5 URUR5 UR	SS/SS/SS/S9 URSS	5 UR
S
SS9 URSS
5 URS
URS55 URS	URRS
55 UR[URRS5 UR
SSS9 URS	URRS
55 UR[URRS5 URRR!S5nURS
URS55 URS	UR#S
55 g)NrrDr%rGrHsroot-id�foo-id)�ids�content
�one�rev-one�r.�bar�two�rev-two)rjr=�
addCleanupr3r(rTr)�
rename_oner�id2path�_file_transport�	get_bytesr8rrr_r`�
get_file_text�rr �	rev_tree2s   r�test_rename_file�TestMemoryTree.test_rename_file�sq���/�/��9������������$����"�e��{�F�3�*�i�9P��Q��&�&�u�l�;����E�*��-�����u�%��������Y� 7�8�����t�';�';�'E�'E�e�'L�M����*�d�&:�&:�&D�&D�e�L����E�*��-�����t�';�';�'E�'E�e�'L�M����*�d�&:�&:�&D�&D�e�L��K�K�*�*�8�8��D�	�����	� 1� 1�)� <�=�����y�'>�'>�u�'E�Frc��URS5nUR5 URUR5 UR	S5 URSS5 UR	SSS5 UR
SS5 URS	S
S9 URSS5 URSURS55 URSURRS55 URS
SS9 URRRS5nURSURS55 g)NrrD�subdirs	subdir-idr%rHrorqrrrsrtz
subdir/barrvrw)rjr=rxr3r(r[rTr)ryrrzr{r|rr_r`r~s   r�test_rename_file_to_subdir�)TestMemoryTree.test_rename_file_to_subdir�s���/�/��9������������$�������
�
�8�\�*������	�*��&�&�u�l�;����E�*��-�����|�,�����t�|�|�I�'>�?�����t�';�';�'E�'E�l�'S�T����E�*��-��K�K�*�*�8�8��D�	�����y�'8�'8��'C�Dr�)�git)�__name__�
__module__�__qualname__�__firstlineno__rrr!r/r4r:r>rArMrUrXr\rcrgrlr�r��__static_attributes__�
__classcell__)rs@rrrse���8�A�4�	Y�����	�G�G�	7�J�&7�7�G�&E�ErrN)�__doc__rDr�	transportrrrr�rr�<module>r�s$��$)��#�#�fE�*�fEr

Youez - 2016 - github.com/yon3zu
LinuXploit