403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/breezy/__pycache__/export.cpython-313.pyc
�

p��g�!��|�SrSSKrSSKrSSKrSSKrSSKJrJrJrJ	r	 S
Sjr
SSjrSrSSjr
S
S	jrg)zDExport trees to tarballs, non-controlled directories, zipfiles, etc.�N�)�archive�errors�osutils�tracec
���UcUb[U5nUc[U5nU(d][R"5n[USS5(a5URRUR
55RnOOSn[R"SU5 US:Xa,UR5 [XX4X�S9Hn	M SSS5 gUR5 URUUUUUUS9n
US:XaBU
H;n[[ R"S[ R"5R%U5 M= OMUbU
HnUR%U5 M O/['US	5nU
HnUR%U5 M SSS5 SSS5 g![Ra GN#[Ra GN9f=f!,(df   g=f!,(df   NY=f!,(df   g=f)
a�Export the given Tree to the specific destination.

Args:
  tree: A Tree (such as RevisionTree) to export
  dest: The destination where the files,etc should be put
  format: The format (dir, zip, etc), if None, it will check the
          extension on dest, looking for a match
  root: The root location inside the format.
        It is common practise to have zipfiles and tarballs
        extract into a subdirectory, rather than into the
        current working directory.
        If root is None, the default root will be
        selected as the destination without its
        extension.
  subdir: A starting directory within the tree. None means to export the
          entire tree, and anything else should specify the relative path
          to a directory to start exporting from.
  per_file_timestamps: Whether to use the timestamp stored in the tree
      rather than now(). This will do a revision lookup for every file so will
      be significantly slower.
  fileobj: Optional file object to use
N�_repositoryzexport version %r�dir��recurse_nested)�root�subdir�force_mtimer�-�buffer�wb)�guess_format�
get_root_name�time�getattrr	�get_revision�get_revision_id�	timestampr�NoSuchRevision�UnsupportedOperationr�mutter�	lock_read�dir_exporter_generatorr�sys�stdout�write�open)
�tree�dest�formatr
r�per_file_timestamps�fileobjrr�_unused�chunks�chunk�fs
             �//usr/lib/python3/dist-packages/breezy/export.py�exportr-s���@�~�$�*��d�#���|��T�"����i�i�k���4���-�-�
�"�.�.�;�;��(�(�*���)��.���	�L�L�$�d�+�
����^�^�
�1��D�+������
	�	
���	��������#�)�
�
���3�;�����
�
�H�c�j�j�9�?�?��F� �
�
 ����
�
�e�$� ��d�D�!�Q�#�E��G�G�E�N�$�"�!
�	��'�(�(�
���.�.�
��
���
�
	��$"�!��!
�	�sI�3F�3G�BG%�&G�G%�G�)G�?G�
G�
G"	�G%�%
G3c�N�[RRU5nUcUnU$)z�Guess the export format based on a file name.

:param filename: Filename to guess from
:param default: Default format to fall back to
:return: format name
)r�format_registry�get_format_from_filename)�filename�defaultr%s   r,rrrs)���
$�
$�
=�
=�h�
G�F�
�~����M�c���US:Xag[RRU5n[RR
H*nUR
U5(dMUS[U5*s $ U$)z%Get just the root name for an export.r�N)�os�path�basenamerr/�
extensions�endswith�len)r$�exts  r,rrsa���s�{��
�7�7���D�!�D��&�&�1�1���=�=������3�s�8�)�$�$�2��Kr3c#�# �US:XaSnUbURS5nURUS9nUH�upVUS:XaM
U(aURU5(aM,XQ:XaURS:XaMCURnO2Ub-URUS-5(aU[
U5S-SnOM�UnURU5(dM�XuU4v� M� g7f)a/Iter the entries for tree suitable for exporting.

:param tree: A tree object.
:param subdir: None or the path of an entry to start exporting from.
:param skip_special: Whether to skip .bzr files.
:return: iterator over tuples with final path, tree path and inventory
    entry for each entry to export
r5N�/r�	directoryr)�rstrip�iter_entries_by_dir�is_special_path�kind�name�
startswithr;�has_filename)r#r�skip_specialr�entriesr7�entry�
final_paths        r,�_export_iter_entriesrK�s������|���
�����s�#���&�&�n�&�E�G�����2�:���D�0�0��6�6���>��z�z�[�(�����J�
�
����v��|�,�,�!�#�f�+��/�"3�4�
���J�� � ��&�&����%�%�)�s�CCc	#�# �[R"U5 /n[XUS9H�up�n[R"X5nURS:XaURX�U
S445 O�URS;a[R"U5 OhURS:Xa)URU
5n
[R"X�5 O/[R"SRX�R55eSv� M� [R [R"-[R$-['[S	S
5-nUR)U5H�uunnnn[R"X5nSnUR+U5(aSn[R,"[R."X�U5S
5nUR1U5 SSS5 UbUnOUR3U5n[R4"UUU45 Sv� M� g![aZnUR[R:Xa6[R
"U5/:wa[R"S5eSnAGNQeSnAff=f![a,n[R"SRUW
U55eSnAff=f!,(df   N�=f7f)aHReturn a generator that exports this tree to a new directory.

`dest` should either not exist or should be empty. If it does not exist it
will be created holding the contents of this tree.

:note: If the export fails, the destination directory will be
       left in an incompletely exported state: export is not transactional.
z)Can't export tree to non-empty directory.Nr�file)r?ztree-reference�symlinkz0Failed to create symlink {!r} -> {!r}, error: {}z,don't know how to export {{{}}} of kind {!r}�O_BINARYri�i�r)r6�mkdir�OSError�errno�EEXIST�listdirr�BzrErrorrKr�pathjoinrC�append�get_symlink_targetrNr%�O_CREAT�O_TRUNC�O_WRONLYr�iter_files_bytes�
is_executable�fdopenr"�
writelines�get_file_mtime�utime)r#r$r
rrr'r�e�to_fetch�dp�tp�ie�fullpath�symlink_target�flags�relpath�treepath�_unused_noner)�mode�out�mtimes                      r,rr�s4����
������H�*�4��W�
����#�#�D�-��
�7�7�f���O�O�R�b�$��0�1�
�W�W�7�
7��H�H�X��
�W�W�	�
!�
�!%�!8�!8��!<���
�
�>�4��/�/�>�E�E�b�'�'�R��
�	�+X�0
�J�J����#�b�k�k�1�G�B�
�A�4N�N�E�59�5J�5J�8�5T�1�)��(�L�6��#�#�D�2�������h�'�'��D�
�Y�Y�r�w�w�x��5�t�
<���N�N�6�"�=��"��E��'�'��1�E�
����E�5�>�*�
�6U��O���7�7�e�l�l�"��z�z�$��2�%��o�o�&Q�R�R�&�
��
��0�
��o�o�F�M�M� �.�!�����
��*=�
<�ss�J>�H
�BJ>� 'I4�C3J>�:J-�AJ>�
I1�AI,�%J>�+I,�,I1�1J>�4
J*�>'J%�%J*�*J>�-
J;	�7J>)NNNFNF)r
)TF)NNNF)�__doc__rRr6rrr5rrrrr-rrrKr�r3r,�<module>rrsU��"K��	�
��-�-��	
�����T#�n
�
�"&�LSX�Br3

Youez - 2016 - github.com/yon3zu
LinuXploit