403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.6
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_transform.cpython-313.pyc
�

p��g�P���SSKrSSKrSSKrSSKJrJrJrJr SSKJ	r	 SSK
JrJr SSK
Jr SSKJr S	S
KJr "SS\5r"S
S\5rg)�N�)�errors�filters�osutils�rules)�
ControlDir)�UnavailableFeature�features�)�DuplicateEntry)�
build_tree�)�TestCaseWithTransportc�&�\rSrSrSrSrSrSrg)�TestInventoryAltered�c��URS5nURS/5 URSSS9 UR5nUR	/UR55 SSS5 g!,(df   g=f)N�tree�tree/foo�foo�foo-id��ids)�make_branch_and_treer
�add�preview_transform�assertEqual�_inventory_altered��selfr�tts   �A/usr/lib/python3/dist-packages/breezy/bzr/tests/test_transform.py� test_inventory_altered_unchanged�5TestInventoryAltered.test_inventory_altered_unchangedsc���(�(��0�������%�����I��&�
�
#�
#�
%�����R��!6�!6�!8�9�&�
%�
%�s�!A.�.
A<c��URS5nURS/5 URSSS9 UR5nUR	UR
5 UR
UR
SS9 URS5nSU4nSUR
4nURXT/UR55 SSS5 g!,(df   g=f)	Nrrrrrsnew-id��file_id�)
rr
rr�unversion_file�root�version_file�trans_id_tree_pathrr)r rr!�foo_trans_id�	foo_tuple�
root_tuples      r"�(test_inventory_altered_changed_parent_id�=TestInventoryAltered.test_inventory_altered_changed_parent_id%s����(�(��0�������%�����I��&�
�
#�
#�
%�����b�g�g�&��O�O�B�G�G�Y�O�7��0�0��7�L���-�I��b�g�g��J����j�4�b�6K�6K�6M�N�
&�
%�
%�s
�A:C�
Cc��URS5nURS/5 URSSS9 UR5nUR	UR
5 UR
UR
URS5S9 URS5 UR/UR55 SSS5 g!,(df   g=f)Nrrrrrr(r&)rr
rrr)r*r+�path2idr,rrrs   r"�-test_inventory_altered_noop_changed_parent_id�BTestInventoryAltered.test_inventory_altered_noop_changed_parent_id1s����(�(��0�������%�����I��&�
�
#�
#�
%�����b�g�g�&��O�O�B�G�G�T�\�\�"�-=�O�>��!�!�%�(����R��!6�!6�!8�9�	&�
%�
%�s
�A6C�
C�N)�__name__�
__module__�__qualname__�__firstlineno__r#r0r4�__static_attributes__r6�r"rrs��:�
O�:r<rc��\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrSrSrSrg)�
TestBuildTree�<c��UR[R"UR55 [R
"S5 [R"S5n[R
"S5 [SS5nURS5 SSS5 [R"SS5 UR/SQ5 URS5 [R"S	5nUR5nUR5 URUR 5 [#XC5 UR%[R&R)S
5S5 [SS
5nUR+UR-5S5 SSS5 UR+[R."S5S5 g!,(df   GN1=f!,(df   NG=f)N�aza/fooz	a/foo/bar�wbscontentsz	a/foo/baz)rzfoo/barzfoo/bazzinitial commit�bzb/fooTz	b/foo/bar�rbz	b/foo/baz)�requireFeaturer
�SymlinkFeature�test_dir�os�mkdirr�create_standalone_workingtree�open�write�symlinkr�commit�
basis_tree�	lock_read�
addCleanup�unlockr
�assertIs�path�isdirr�read�readlink)r rA�frC�basiss     r"�test_build_tree_with_symlinks�+TestBuildTree.test_build_tree_with_symlinks=s5�����H�3�3�D�M�M�B�C�
����
��4�4�S�9��
�����
�+�t�
$��
�G�G�K� �%�
�
�
�;��,�	���+�,�	���!�"��4�4�S�9�������
����������%��5���
�
�b�g�g�m�m�G�,�d�3�
�+�t�
$�����Q�V�V�X�{�3�%�������[�1�;�?�%�
$��%�
$�s�>F:�*!G�:
G	�
Gc��URSSS9nURSSS9nURU5 URS5 URR	S5 URS5 URS5 g)N�sourcezdevelopment-subtree)�formatzsource/subtreez
a revision�targetztarget/subtree)r�
add_referencerN�branch�create_checkout�assertPathExists)r r�subtrees   r"�test_build_with_references�(TestBuildTree.test_build_with_referencesQs~���(�(��:O�(�P���+�+��%:�,�
��	
���7�#����L�!����#�#�H�-����h�'����.�/r<c	��URS5nURS5nURSS/5 URSSS9 URS5 [UR	5U5 UR[
S	S
SSS5/UR55 URS
5n[SS5n[SS5nURUR55 SSS5 SSS5 [UR	5U5 UR/UR55 g!,(df   NQ=f!,(df   NZ=f)�;Ensure that when building trees, conflict handling is done.r]r_�source/fileztarget/file�file�new-filer�
added file�Moved existing file to�
file.movedN�new-file�target2ztarget2/filerBrD)rr
rrNrOrr�	conflictsrKrLrV)r r]r_rp�target_file�source_files      r"�test_file_conflict_handling�)TestBuildTree.test_file_conflict_handling\s!���*�*�8�4���*�*�8�4������
�6�7��
�
�6�{�
�+��
�
�l�#��6�$�$�&��/�����,�l�F�D�*��
�

����
	
��+�+�I�6�����&�+����%�����k�.�.�0�1�
&�
'�	�6�$�$�&��0�����W�.�.�0�1�	
&�%��
'�&�s$�<
E�	 D4�)E�4
E	�>E�
Ec	��UR[R"UR55 UR	S5n[
R"SS5 URSSS9 URS5 UR	S5n[
R"S	S
5 [UR5U5 UR[SSSS
S5/UR55 UR	S5n[
R"SS5 [UR5U5 UR/UR55 g
)rhr]rzsource/symlinkrMsnew-symlinkrrlr_�barztarget/symlinkrmz
symlink.movedNznew-symlinkrpztarget2/symlink)rEr
rFrGrrHrMrrNr
rOrrrq�r r]r_s   r"�test_symlink_conflict_handling�,TestBuildTree.test_symlink_conflict_handlingus�����H�3�3�D�M�M�B�C��*�*�8�4��
�
�
�5�*�+��
�
�9�.�
�1��
�
�l�#��*�*�8�4��
�
�
�5�*�+��6�$�$�&��/�����,�#���!��
�
����	
��*�*�9�5��
�
�
�5�+�,��6�$�$�&��/�����V�-�-�/�0r<c	�4�URS5nURS5nUR/SQ5 URSS/SS/S9 URS	5 [UR	5U5 UR/UR
55 URS
5 URS5nURSS
/5 [UR	5U5 UR/UR
55 URS
5 URS5 URS5nURS5 URS/5 [UR	5U5 URS5 URS5 URS5 UR[SSSSS5/UR
55 URS5nURS/5 URS5 [UR	5U5 URS5 URS[R"S55 URS5 UR[SSSSS5/UR
55 g)rhr]r_)�source/dir1/zsource/dir1/fileztarget/dir1/�dir1z	dir1/filesnew-dir1rkrrlztarget/dir1/filerpz
target2/dir1/ztarget2/dir1/file2ztarget2/dir1/file�target3ztarget3/dir1ztarget3/dir1/file2ztarget3/dir1/fileztarget3/dir1.diverted/filezDiverted toz
dir1.divertedznew-dir1N�target4z
target4/dir1/ztarget4/dir1/file�	directoryztarget4/dir1/file.divertedzdir1/file.divertedro)
rr
rrNrOrrqrc�make_branch�assertPathDoesNotExistrr�	file_kindrxs   r"� test_directory_conflict_handling�.TestBuildTree.test_directory_conflict_handling�sO���*�*�8�4���*�*�8�4�����L�M��
�
�F�K�(�{�K�.H�
�I��
�
�l�#��6�$�$�&��/�����V�-�-�/�0����0�1��*�*�9�5������*>�?�@��6�$�$�&��/�����V�-�-�/�0����2�3����1�2��*�*�9�5������(����-�.�/��6�$�$�&��/��#�#�$7�8����2�3����:�;����
�M�?�F�J�PT�
U�V�����	
�
�*�*�9�5������)�*����,�-��6�$�$�&��/����1�2�����g�&7�&7�8K�&L�M����:�;�����!�#7��j�RV��
�

����
	
r<c	�@�URS5nURS5nURSS/5 URSSS9 URS5 [UR	5U5 UR[
S	S
SSS5/UR55 g)
rhr]r_�source/nameztarget/name/�namesnew-namerrlrmz
name.movedNznew-name)rr
rrNrOrrrqrxs   r"�test_mixed_conflict_handling�*TestBuildTree.test_mixed_conflict_handling�s����*�*�8�4���*�*�8�4�������7�8��
�
�6�{�
�+��
�
�l�#��6�$�$�&��/�����,�l�F�D�*��
�

����
	
r<c�^�URS5nURS/5 URS5 URS5 URS5nURS/5 URS5 UR	[
R[UR5U5 g)Nr]r�r�z
added namer_ztarget/name)rr
rrN�assertRaisesr�WorkingTreeAlreadyPopulatedrOrxs   r"�test_raises_in_populated�&TestBuildTree.test_raises_in_populated�s����*�*�8�4�������(��
�
�6���
�
�l�#��*�*�8�4�������(��
�
�6������.�.�
�F�<M�<M�<O�QW�	
r<c��URS5nURSS/5 URSS/5 URS5 URS5n[UR	5U5nURSUR5 URS	/5 URS
/5 URS5 URS5n[UR	5U5nURSUR5 g)
Nr]�source/file1r|�file1r}�add1�target1rzsource/dir1/file2z
dir1/file2�add3rp)rr
rrNrOr�rename_count)r r]r��transform_resultrps     r"�test_build_tree_rename_count�*TestBuildTree.test_build_tree_rename_count�s����*�*�8�4�������8�9��
�
�G�V�$�%��
�
�f���+�+�I�6��%�f�&7�&7�&9�7�C������,�9�9�:����,�-�.��
�
�L�>�"��
�
�f���+�+�I�6��%�f�&7�&7�&9�7�C������,�9�9�:r<c��URS5nURS/5 URS/5 URSS/SS/S9 URS	5 UR	5 URUR5 U$)
z,Create a committed test tree with two files.r]�r��A)�source/file2�Br��file2�file1-id�file2-idr�commit files)r�build_tree_contentsrrN�
lock_writerQrR)r r]s  r"�create_ab_tree�TestBuildTree.create_ab_tree�s}���*�*�8�4��� � �"8�!9�:�� � �"8�!9�:��
�
�G�W�%�K��+E�
�F��
�
�n�%���������
�
�&��
r<c�^^�UR5nURS/5 /mURmUU4SjnX!lURS5nUR	5nUR5 UR
UR5 [XCU5 URS/T5 UR5 UR
UR5 UR/[URU555 g)N)r��Cc�6>�TRU5 T"U5$�N��append�rT�calls�real_source_get_files ��r"�get_file�@TestBuildTree.test_build_tree_accelerator_tree.<locals>.get_file������L�L���'��-�-r<r_r�)r�r�r�rrOrPrQrRr
r�list�iter_changes�r r]r�r_�
revision_treer�r�s     @@r"� test_build_tree_accelerator_tree�.TestBuildTree.test_build_tree_accelerator_tree�s�����$�$�&��� � �"8�!9�:���%����	.�#���*�*�8�4���)�)�+�
����!����
�,�,�-��=�&�1����'��E�*���������
�
�&�����T�&�"5�"5�m�"D�E�Fr<c��UR5n[R"S5nURS5nUR	5 URUR5 UR5n[R"5S-Ul	[UR5X15 URSSS9nURX%SSS5 g)Nr�r_r?r�file1��	path_utf8r)r�r�
sha_stringrr�rQrR�current_dirstate�time�_cutoff_timer
rO�
_get_entryr)r r]�sha1r_�state�entrys      r"�.test_build_tree_accelerator_tree_observes_sha1�<TestBuildTree.test_build_tree_accelerator_tree_observes_sha1s����$�$�&���!�!�$�'���*�*�8�4����������
�
�&��'�'�)��!�Y�Y�[�2�-����6�$�$�&��7�� � ��h� �7������Q�x��{�1�~�.r<c���UR5n[R"S5 URS/5 UR	S5nUR5nUR
5 URUR5 [X2U5 UR
5 URUR5 UR/[URU555 g)Nr�r�r_)
r�rH�unlink�removerrOrPrQrRr
rr�r��r r]r_r�s    r"�-test_build_tree_accelerator_tree_missing_file�;TestBuildTree.test_build_tree_accelerator_tree_missing_files����$�$�&��
�	�	�.�!��
�
�w�i� ��*�*�8�4���)�)�+�
����!����
�,�,�-��=�&�1���������
�
�&�����T�&�"5�"5�m�"D�E�Fr<c�x^^�UR[R"UR55 UR	S5nURS/5 URS/5 UR
SS/SS/S9 URS	5 [R"S
5 URS/5 [R"S5 [R"SS5 /mURmUU4S
jnX!lUR	S5nUR5nUR5 URUR5 [!XCU5 UR#/T5 UR5 URUR5 UR#/[%UR'U555 g)Nr])r�r<)r�r<r�r�r�r�rr�r�)z
source/file2/r�r�c�6>�TRU5 T"U5$r�r�r�s ��r"r��FTestBuildTree.test_build_tree_accelerator_wrong_kind.<locals>.get_file5r�r<r_)rEr
rFrGrr�rrNrHr�rMr�rOrPrQrRr
rr�r�r�s     @@r"�&test_build_tree_accelerator_wrong_kind�4TestBuildTree.test_build_tree_accelerator_wrong_kind's_������H�3�3�D�M�M�B�C��*�*�8�4��� � �"7�!8�9�� � �"7�!8�9��
�
�G�W�%�K��+E�
�F��
�
�n�%�
�	�	�.�!�� � �"9�!:�;�
�	�	�.�!�
�
�
�7�N�+���%����	.�#���*�*�8�4���)�)�+�
����!����
�,�,�-��=�&�1�����U�#���������
�
�&�����T�&�"5�"5�m�"D�E�Fr<c��UR[R"UR55 UR	5nURS5nUR
5nUR5 URUR5 [X2USS9 UR5 URUR5 UR/[URU555 [R"S5n[R"S5nURXE5 URS5n[X6USS9 UR5 URUR5 UR/[URU555 [R"S5n[R"S5nUR!XG5 g)	Nr_T��hardlinkr��target/file1rpFz
target2/file1)rEr
�HardlinkFeaturerGr�rrOrPrQrRr
rr�r�rH�stat�assertNotEqual)r r]r_r��source_stat�target_statrp�target2_stats        r"�test_build_tree_hardlink�&TestBuildTree.test_build_tree_hardlinkDs_�����H�4�4�T�]�]�C�D��$�$�&���*�*�8�4���)�)�+�
����!����
�,�,�-��=�&�4�@���������
�
�&�����T�&�"5�"5�m�"D�E�F��g�g�n�-���g�g�n�-������2��+�+�I�6���=�6�E�B�����������'�����T�'�"6�"6�}�"E�F�G��g�g�n�-���w�w��/�����K�6r<c�d�URS5nURS/5 URS/S/S9 URS5 UR	SS5 UR5 UR
UR5 URS5nUR5nUR5 UR
UR5 [X2U5 UR5 UR
UR5 UR/[URU555 g)	Nr]r�r�r�rr�r�r_)
rr�rrN�
rename_onerPrQrRrOr
rr�r�r�s    r"�&test_build_tree_accelerator_tree_moved�4TestBuildTree.test_build_tree_accelerator_tree_moved]s����*�*�8�4��� � �"8�!9�:��
�
�G�9�;�-�
�0��
�
�n�%����'�7�+���������
�
�&��*�*�8�4���)�)�+�
����!����
�,�,�-��=�&�1���������
�
�&�����T�&�"5�"5�m�"D�E�Fr<c���UR[R"UR55 UR	5nUR5nUR
S5nURSU5 UR5 URURS55 URS5nUR5nUR5 URUR5 [!XTUSS9 UR5 URUR5 UR#/[%UR'U555 URURS55 g)Nr�Tr_r�)rEr
r�rGr��	transformr,�set_executability�apply�
assertTrue�
is_executablerrOrPrQrRr
rr�r�)r r]r!�trans_idr_r�s      r"�*test_build_tree_hardlinks_preserve_execute�8TestBuildTree.test_build_tree_hardlinks_preserve_executens�����H�4�4�T�]�]�C�D��$�$�&��
�
�
�
���(�(��1��
���T�8�,�
���
�����,�,�W�5�6��*�*�8�4���)�)�+�
����!����
�,�,�-��=�&�4�@���������
�
�&�����T�&�"5�"5�m�"D�E�F�����,�,�W�5�6r<c�"^^�[R"5mU4SjnURU5 S
Sjn[R"X35n[RRSSU/0R5 [R"URS-5 URS-m[TS5nURSU4-5 SSS5 U4S	jnURU5 [R"5 g!,(df   N;=f)Nc�2>�[R"T5 gr�)r�_reset_registry)�original_registrys�r"�restore_registry�DTestBuildTree.install_rot13_content_filter.<locals>.restore_registry�s����#�#�$5�6r<c��UVs/sH8n[R"URS5S5RS5PM: sn$s snf)N�ascii�rot13)�codecs�encode�decode)�chunks�context�chunks   r"r��9TestBuildTree.install_rot13_content_filter.<locals>.rot13�sH��$��#�E��
�
�e�l�l�7�3�W�=�D�D�W�M�#��
��s�?Ar��yesz/.bazaarz/.bazaar/rulesrBs[name %s]
rot13=yes
c�\>�[R"T5 [R"5 gr�)rHr�r�reset_rules)�rules_filenames�r"�uninstall_rules�CTestBuildTree.install_rot13_content_filter.<locals>.uninstall_rules�s����I�I�n�%����r<r�)rr�rQ�
ContentFilter�filter_stacks_registry�register�getrHrI�
test_home_dirrKrLrr�)	r �patternr�r��rot13filterrXr�r�r�s	       @@r"�install_rot13_content_filter�*TestBuildTree.install_rot13_content_filter�s����
$�3�3�5��	7�	
���(�)�	��+�+�E�9���&�&�/�/��%�+��9O�9S�9S�T�
����#�#�j�0�1��+�+�.>�>��
�.�$�
'�1�
�G�G�-��
�:�;�(�	 �	
����(�
����(�
'�s�5D�
Dc���UR[R"UR55 UR	S5 UR5nUR
S5nUR5nUR5 URUR5 [X2USS9 UR5 URUR5 UR/[URU555 [R "S5n[R "S5nUR#XE5 [R "S5n[R "S5nUR%XE5 g	)
z�build_tree will not hardlink files that have content filtering rules
applied to them (but will still hardlink other files from the same tree
if it can).
r�r_Tr�r�r�r�ztarget/file2N)rEr
r�rGrr�rrOrPrQrRr
rr�r�rHr�r��assertEqualStat)r r]r_r�r�r�s      r"�9test_build_tree_content_filtered_files_are_not_hardlinked�GTestBuildTree.test_build_tree_content_filtered_files_are_not_hardlinked�s��
	
���H�4�4�T�]�]�C�D��)�)�(�3��$�$�&���*�*�8�4���)�)�+�
����!����
�,�,�-��=�&�4�@���������
�
�&�����T�&�"5�"5�m�"D�E�F��g�g�n�-���g�g�n�-�����K�5��g�g�n�-���g�g�n�-�����[�6r<c��[RR5(d#[RR5(a[	S5eURS5nUR
SS/5 URSS/SS/S	9 URS
5 URS5nSUl	[
UR5X!S
S9 URSURS55 URSURS55 g)NzFully case sensitive filesystemr]rizsource/FILErj�FILEslower-idsupper-idrzadded filesr_FT)�delta_from_treern)
r
� CaseInsensitiveFilesystemFeature�	available�CaseInsCasePresFilenameFeaturer	rr
rrN�case_sensitiverOr�id2pathrxs   r"�*test_case_insensitive_build_tree_inventory�8TestBuildTree.test_case_insensitive_build_tree_inventory�s����5�5�?�?�A�A��6�6�@�@�B�B�$�%F�G�G��*�*�8�4������
�6�7��
�
�F�F�#�+�{�)C�
�D��
�
�m�$��*�*�8�4�� %����6�$�$�&���M�����v�~�~�k�'B�C���������!<�=r<c��URS5nUR/SQ5 UR/SQ/SQS9 URS5 URS5nUR	5 URUR5 UR5n[R"5S-Ul	[UR5U5 [R"S	5n[R"S
5nURSSS
9nURXFSSS5 URSUSSS5 USSnURSSS
9nURXXSSS5 URSUSSS5 USSn	URXBRS55 URXRRS55 URXvSS5 URX�SS5 g)Nr])r�zsource/dir/�source/dir/file2)r��dir�	dir/file2)r�sdir-idr�rz	new filesr_r?r�rrr�r�r�rs	dir/file2rr�r)rr
rrNr�rQrRr�r�r�rOr�sha_file_by_namer�r�
get_file_sha1)
r r]r_r��
entry1_sha�
entry2_sha�entry1�entry1_state�entry2�entry2_states
          r"�test_build_tree_observes_sha�*TestBuildTree.test_build_tree_observes_sha�s����*�*�8�4�����K�L��
�
�)�/T�	�	
�	�
�
�k�"��*�*�8�4����������
�
�&��'�'�)��!�Y�Y�[�2�-����6�$�$�&��/��-�-�n�=�
��-�-�.@�A�
��!�!�!�x�!�8������A�Y�q�\�!�_�5�����V�A�Y�q�\�!�_�-��a�y��|���!�!�!�|�!�<������A�Y�q�\�!�_�5�����V�A�Y�q�\�!�_�-��a�y��|��	
����%9�%9�'�%B�C�����%9�%9�+�%F�G�����a�y��|�4�����a�y��|�4r<r6N)r7r8r9r:rZrertryr�r�r�r�r�r�r�r�r�r�r�r�rrrr%r;r6r<r"r>r><sm��@�(	0�2�21�6.
�`
�"

�;�"	�G�*
/�G�G�:7�2G�"7�$�@7�.>�$"5r<r>)r�rHr�r(rrrr�
controldirr�testsr	r
rqrr�r
rrr>r6r<r"�<module>r)sA��"�	��/�/�$�1�&�"�#�:�0�:�>o5�)�o5r<

Youez - 2016 - github.com/yon3zu
LinuXploit