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

p��g�:����SrSSKJrJr SSKJrJrJrJr "SS\R5r
"SS\R5r"S	S
\R5r\"5\l"SS5rg
)z7MutableTree object.

See MutableTree for more details.
�)�Optional�Union�)�errors�hooks�trace�treec��\rSrSrSrSrSrg)�BadReferenceTarget�z>Can't add reference to %(other_tree)s into %(tree)s.%(reason)sc�(�XlX lX0lg�N)r	�
other_tree�reason)�selfr	rrs    �4/usr/lib/python3/dist-packages/breezy/mutabletree.py�__init__�BadReferenceTarget.__init__s���	�$����)rrr	N)�__name__�
__module__�__qualname__�__firstlineno__�_fmtr�__static_attributes__�rrrrs��K�D�rrc	��^�\rSrSrSrU4SjrSrSS\\\	\4S\
\\\	\44SjjrSrSS	jr
SS
jrSrSrS
rSrSrSrSrSSjrSSjrSSjrSSjrSrSSjrSrU=r$)�MutableTree�$aA MutableTree is a specialisation of Tree which is able to be mutated.

Generally speaking these mutations are only possible within a lock_write
context, and will revert if the lock is broken abnormally - but this cannot
be guaranteed - depending on the exact implementation of the mutable state.

The most common form of Mutable Tree is WorkingTree, see breezy.workingtree.
For tests we also have MemoryTree which is a MutableTree whose contents are
entirely in memory.

For now, we are not treating MutableTree as an interface to provide
conformance tests for - rather we are testing MemoryTree specifically, and
interface testing implementations of WorkingTree.

A mutable tree always has an associated Branch and ControlDir object - the
branch and bzrdir attributes.
c�4>�[TU]"U0UD6 SUlg)NT)�superr�case_sensitive)r�args�kw�	__class__s   �rr�MutableTree.__init__7s���
���$�%�"�%�#��rc�,�[UR5e)a\True if filename is the name of a control file in this tree.

:param filename: A filename within the tree. This is a relative path
    from the root of this tree.

This is true IF and ONLY IF the filename is part of the meta data
that bzr controls in this tree. I.E. a random .bzr directory placed
on disk will not be a control file for this tree.
)�NotImplementedError�is_control_filename)r�filenames  rr)�MutableTree.is_control_filename>s��"�$�":�":�;�;r�files�kindsc�,�[UR5e)asAdd paths to the set of versioned paths.

Note that the command line normally calls smart_add instead,
which can automatically recurse.

This adds the files to the tree, so that they will be
recorded by the next commit.

Args:
  files: List of paths to add, relative to the base of the tree.
  kinds: Optional parameter to specify the kinds to be used for
    each file.
)r(�add)rr,r-s   rr/�MutableTree.addJs��$"�$�(�(�+�+rc�D�[R"URU5e)zYAdd a TreeReference to the tree, pointing at sub_tree.

:param sub_tree: subtree to add.
)r�UnsupportedOperation�
add_reference)r�sub_trees  rr3�MutableTree.add_reference^s��
�)�)�$�*<�*<�d�C�Crc
���SSKJn /nUR5 URR	UUR
UR
SS5URSS5U5nU4U-n[RSHnU"U5 M
 UR5R"UUUUS.UD6n[U5n	[RSHnU"U	5 M
 UsSSS5 $!,(df   g=f)	Nr)�commit�authors�localF�start_commit)�working_tree�revprops�possible_master_transports�post_commit)�breezyr7�
lock_write�Commit�update_revprops�branch�pop�getrr�PostCommitHookParams)
r�messager<r#�kwargsr7r=�hook�committed_id�post_hook_paramss
          rr7�MutableTree.commites���!�%'�"�
�_�_�
��}�}�4�4������
�
�9�d�+��
�
�7�E�*�*��H��:��$�D�#�)�)�.�9���T�
�:�!�=�=�?�1�1��"�!�+E��
��L� 4�D�9��#�)�)�-�8���%�&�9��-�
�
�s�CC'�'
C5c�,�[UR5e)z�Quickly check that the tree contains at least one commitable change.

:param _from_tree: tree to compare against to find changes (default to
    the basis tree and is intended to be used by tests).

:return: True if a change is found. False otherwise
)r(�has_changes)r�
_from_trees  rrN�MutableTree.has_changes�s��"�$�"2�"2�3�3rc��UR5 Uc)URR5RU5nUSLa�SnUR	5(a[
RnO<UR5URR5:wa[
RnUb7Uc,U"XS9n[R"SUR55 OU"XS9nUeSSS5 g!,(df   g=f)a�Check the tree for uncommitted changes and branch synchronization.

If strict is None and not set in the config files, a warning is issued.
If strict is True, an error is raised.
If strict is False, no checks are done and no warning is issued.

:param strict: True, False or None, searched in branch config if None.

:param opt_name: strict option name to search in config file.

:param more_error: Details about how to avoid the check.

:param more_warning: Details about what is happening.
NF)�morez%s)�	lock_readrC�get_config_stackrErNr�UncommittedChanges�
last_revision�
OutOfDateTreer�warning�_format)r�strict�opt_name�
more_error�more_warning�	err_class�errs       r�check_changed_or_out_of_date�(MutableTree.check_changed_or_out_of_date�s����^�^�
��~����5�5�7�;�;�H�E���U�"� �	��#�#�%�%� &� 9� 9�I��'�'�)�T�[�[�-F�-F�-H�H�!'� 4� 4�I��(��~�'��@���
�
�d�C�K�K�M�:�'��>��!�	�)�
�
�s�CC*�*
C8c�,�[UR5e)atReturn the revision id of the last commit performed in this tree.

In early tree formats the result of last_revision is the same as the
branch last_revision, but that is no longer the case for modern tree
formats.

last_revision returns the left most parent id, or None if there are no
parents.

last_revision was deprecated as of 0.11. Please use get_parent_ids
instead.
)r(rV�rs rrV�MutableTree.last_revision�s��"�$�"4�"4�5�5rc�,�[UR5e)a�Lock the working tree for write, and the branch for read.

This is useful for operations which only need to mutate the working
tree. Taking out branch write locks is a relatively expensive process
and may fail if the branch is on read only media. So branch write locks
should only be taken out when we are modifying branch data - such as in
operations like commit, pull, uncommit and update.
)r(�lock_tree_writercs rrf�MutableTree.lock_tree_write�s��"�$�"6�"6�7�7rc�,�[UR5e)z�Lock the tree and its branch. This allows mutating calls to be made.

Some mutating methods will take out implicit write locks, but in
general you should always obtain a write lock before calling mutating
methods on a tree.
)r(r@rcs rr@�MutableTree.lock_write�s��"�$�/�/�2�2rc�,�[UR5e)znCreate a directory in the tree.

:param path: A unicode file path.
:return: the file id of the new directory.
)r(�mkdir)r�paths  rrk�MutableTree.mkdir�s��"�$�*�*�-�-rc��g)a�Tell the tree we have observed a paths sha1.

The intent of this function is to allow trees that have a hashcache to
update the hashcache during commit. If the observed file is too new
(based on the stat_value) to be safely hash-cached the tree will ignore
it.

The default implementation does nothing.

:param path: The file path
:param sha_and_stat: The sha 1 and stat result observed.
:return: None
Nr)rrl�sha_and_stats   r�_observed_sha1�MutableTree._observed_sha1�s�rc�,�[UR5e)aUpdate the content of a file in the tree.

Note that the file is written in-place rather than being
written to a temporary location and renamed. As a consequence,
readers can potentially see the file half-written.

:param path: path of the file
:param bytes: the new file contents
)r(�put_file_bytes_non_atomic)rrl�bytess   rrs�%MutableTree.put_file_bytes_non_atomic�s��"�$�"@�"@�A�Arc�,�[UR5e)zWSet the parents ids of the working tree.

:param revision_ids: A list of revision_ids.
)r(�set_parent_ids)r�revision_ids�allow_leftmost_as_ghosts   rrw�MutableTree.set_parent_ids�s��
"�$�"5�"5�6�6rc�,�[UR5e)z�Set the parents of the working tree.

:param parents_list: A list of (revision_id, tree) tuples.
    If tree is None, then that element is treated as an unreachable
    parent tree - i.e. a ghost.
)r(�set_parent_trees)r�parents_listrys   rr|�MutableTree.set_parent_trees�s��"�$�"7�"7�8�8rc�,�[UR5e)a�Version file_list, optionally recursing into directories.

This is designed more towards DWIM for humans than API clarity.
For the specific behaviour see the help for cmd_add().

:param file_list: List of zero or more paths.  *NB: these are
    interpreted relative to the process cwd, not relative to the
    tree.*  (Add and most other tree methods use tree-relative
    paths.)
:param action: A reporter to be called with the working tree, parent_ie,
    path and kind of the path being added. It may return a file_id if
    a specific one should be used.
:param save: Save the changes after completing the adds. If False
    this provides dry-run functionality by doing the add and not saving
    the changes.
:return: A tuple - files_added, ignored_files. files_added is the count
    of added files, and ignored_files is a dict mapping files that were
    ignored to the rule that caused them to be ignored.
)r(�	smart_add)r�	file_list�recurse�action�saves     rr��MutableTree.smart_adds��("�$�.�.�1�1rc�,�[UR5e)a*Rename one file.

This can change the directory or the filename or both.

rename_one has several 'modes' to work. First, it can rename a physical
file and change the file_id. That is the normal mode. Second, it can
only change the file_id without touching any physical file.

rename_one uses the second mode if 'after == True' and 'to_rel' is
either not versioned or newly added, and present in the working tree.

rename_one uses the second mode if 'after == False' and 'from_rel' is
versioned but no longer in the working tree, and 'to_rel' is not
versioned but present in the working tree.

rename_one uses the first mode if 'after == False' and 'from_rel' is
versioned and present in the working tree, and 'to_rel' is not
versioned and not present in the working tree.

Everything else results in an error.
)r(�
rename_one)r�from_rel�to_rel�afters    rr��MutableTree.rename_ones��,"�$�/�/�2�2rc�,�[UR5e)zUCopy one file or directory.

This can change the directory or the filename or both.

)r(�copy_one)rr�r�s   rr��MutableTree.copy_one5s��"�$�-�-�0�0rc�,�[UR5e)z1Return a transform object for use with this tree.)r(�	transform)r�pbs  rr��MutableTree.transform=s��!�$�.�.�1�1r)r"r)NN)F)TNT)rrrr�__doc__rr)r�str�listrr/r3r7rNr`rVrfr@rkrprsrwr|r�r�r�r�r�
__classcell__)r%s@rrr$s�����$#�
<�26�,��S�$�s�)�^�$�,���c�4��9�n�-�.�,�(D� �:4�#"�J
6�	8�3�.�
�
B�7�9�2�,3�01�2�2rrc��\rSrSrSrSrSrg)�MutableTreeHooksiBzOA dictionary mapping a hook name to a list of callables for mutabletree
hooks.
c��[RRUSS5 URSSS5 URSSS5 URS	S
S5 URSS
S5 URSSS5 g)zCreate the default hooks.zbreezy.mutabletreezMutableTree.hooksr:z�Called before a commit is performed on a tree. The start commit hook is able to change the tree before the commit takes place. start_commit is called with the breezy.mutabletree.MutableTree that the commit is being performed on.)r�r>z�Called after a commit is performed on a tree. The hook is called with a breezy.mutabletree.PostCommitHookParams object. The mutable tree the commit was performed on is available via the mutable_tree attribute of that object.)�r�
pre_transformzzCalled before a tree transform on this tree. The hook is called with the tree that is being transformed and the transform.)r���post_build_treezcCalled after a completely new tree is built. The hook is called with the tree as its only argument.�post_transformz�Called after a tree transform has been performed on a tree. The hook is called with the tree that is being transformed and the transform.N)r�Hooksr�add_hookrcs rr�MutableTreeHooks.__init__Gs���
�����T�#7�9L�M��
�
��
5�
�
	
�	
�
�
��
9�
�
	
�	
�
�
��
I��		
�	
�
�
��
9��		
�	
�
�
��
�
�	
rrN�rrrrr�rrrrrr�r�Bs���%
rr�c��\rSrSrSrSrSrg)rFisz�Parameters for the post_commit hook.

To access the parameters, use the following attributes:

* mutable_tree - the MutableTree object
c��Xlg)z/Create the parameters for the post_commit hook.N��mutable_tree)rr�s  rr�PostCommitHookParams.__init__{s��(�rr�Nr�rrrrFrFss���)rrFN)r��typingrr�rrrr	�InternalBzrErrorr�Treerr�r�rFrrr�<module>r�sb��"�
#�(�(���0�0��[2�$�)�)�[2�|*
�u�{�{�*
�\%�&���
)�
)r

Youez - 2016 - github.com/yon3zu
LinuXploit