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__/add.cpython-313.pyc
�

p��gd��x�SrSSKrSSKrSSKJrJrJr SSKJr "SS5r	"SS	\	5r
"S
S\	5rg)z3Helper functions for adding files to working trees.�N�)�errors�osutils�ui)�gettextc�L�\rSrSrSrSSjr\R4SjrS	Sjr	Sr
g)
�	AddAction�z=A class which defines what action to take when adding a file.Nc�b�XlUc[RUlSUlUbX lgg)a
Initialize an action which prints added files to an output stream.

:param to_file: The stream to write into. This is expected to take
    Unicode paths. If not supplied, it will default to ``sys.stdout``.
:param should_print: If False, printing will be suppressed.
NF)�_to_file�sys�stdout�should_print)�self�to_filers   �,/usr/lib/python3/dist-packages/breezy/add.py�__init__�AddAction.__init__s2�� �
��?��J�J�D�M�!����#� ,��$�c��UR(a0URRSRU"U555 g)z�Add path to inventory.

The default action does nothing.

:param inv: The inventory we are working with.
:param path: The FastPath being added
:param kind: The kind of the object being added.
z
adding {}
N)rr�write�format)r�inv�	parent_ie�path�kind�_quotes      r�__call__�AddAction.__call__+s1������M�M���
� 4� 4�V�D�\� B�C�rc��g)axTest whether the given file should be skipped or not.

The default action never skips. Note this is only called during
recursive adds

:param tree: The tree we are working in
:param path: The path being added
:param kind: The kind of object being added.
:param stat: Stat result for this file, if available already
:return bool. True if the file should be skipped (not added)
F�)r�treerr�
stat_values     r�	skip_file�AddAction.skip_file8s��r)rr�NN�N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr�quotefnrr$�__static_attributes__r!rrr	r	s��G�-�;B�/�/��rr	c�&�\rSrSrSrSrSSjrSrg)�AddWithSkipLargeAction�GzDA class that can decide to skip a file if it's considered too large.Nc��US:wagSnURc&UR5nURU5UlUc [RRU5nOURnURS:�aRXpR:�aC[RR[S5RX%UR55 gg)N�fileFzadd.maximum_file_sizerz+skipping {0} (larger than {1} of {2} bytes)T)�	_max_size�get_config_stack�get�osr�getsize�st_sizer�
ui_factory�show_warningrr)rr"rrr#�opt_name�config�	file_sizes        rr$� AddWithSkipLargeAction.skip_fileLs����6�>��*���>�>�!��*�*�,�F�#�Z�Z��1�D�N���������-�I�"�*�*�I��>�>�A��)�n�n�"<��M�M�&�&��E�F�M�M��D�N�N��
�
�r)r4r')r(r)r*r+r,r4r$r.r!rrr0r0Gs��N��I�rr0c�B^�\rSrSrSrSU4SjjrU4SjrSrSrU=r	$)�AddFromBaseAction�az:This class will try to extract file ids from another tree.c�8>�[TU]X4S9 XlX lg)N)rr)�superr�	base_tree�	base_path)rrErFrr�	__class__s     �rr�AddFromBaseAction.__init__ds���
�����D�"��"�rc��>�URX25upVUb=UR(a*URRSR	X655 U$[
TU]XX45nU$)Nzadding {} w/ file id from {}
)�_get_base_file_idrrrrrDr)rrrrr�file_idrFrGs       �rr�AddFromBaseAction.__call__isf���"�3�3�D�D������ � ��
�
�#�#�4�;�;�D�L�����g�&�s�t�B�G��rc��URRUR5n[R"U[R
"U55nURR
U5nUbXT4$[R"URU5nURR
U5U4$![Ra NTf=f)z�Look for a file id in the base branch.

First, if the base tree has the parent directory,
we look for a file with the same name in that directory.
Else, we look for an entry in the base tree with the same path.
)
rE�id2pathrKr�pathjoin�basename�path2idr�NoSuchIdrF)rrr�parent_pathrF�base_id�full_base_paths       rrJ�#AddFromBaseAction._get_base_file_idxs���	,��.�.�0�0��1B�1B�C�K� �(�(��g�6F�6F�t�6L�M�I��n�n�,�,�Y�7�G��"��+�+�#� �)�)�$�.�.�$�?���~�~�%�%�n�5�~�E�E�����	��	�s�%B2�2C	�C	)rFrEr&)
r(r)r*r+r,rrrJr.�
__classcell__)rGs@rrArAas���D�#�

�F�FrrA)r,r7r
�rrr�i18nrr	r0rAr!rr�<module>rZs>��":�	�
�!�!��*�*�Z�Y��4)F�	�)Fr

Youez - 2016 - github.com/yon3zu
LinuXploit