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/bzr/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

p��g]���SrSSKrSSKrSSKrSSKrSSKrSSKrSSKJr SSK	J
r
 SSKJr SSK
Jr SS	K
Jr \R"\"5S
5 SSK
JrJr SSK
Jr SS
K
Jr SSKJr SSKJrJr SSKJrJrJrJ r J!r!J"r"J#r# SSK$J%r%J&r&J'r' SSK(J)r)J*r* Sr+Sr,Sr-"SS\R\5r/"SS\%\*5r0"SS\Rb\&5r2g)a
InventoryWorkingTree object and friends.

A WorkingTree represents the editable working copy of a branch.
Operations which represent the WorkingTree are also done here,
such as renaming or adding files.  The WorkingTree has an inventory
which is updated by these operations.  A commit produces a
new revision based on the workingtree and its inventory.

At the moment every WorkingTree has its own branch.  Remote
WorkingTrees aren't supported.

To get a WorkingTree, call bzrdir.open_workingtree() or
WorkingTree.open(dir).
�N)�bisect_left)�deque)�BytesIO�)�lazy_import�)�bzrdira#
import contextlib
from breezy import (
    cache_utf8,
    conflicts as _mod_conflicts,
    globbing,
    ignores,
    merge,
    )
from breezy.bzr import (
    conflicts as _mod_bzr_conflicts,
    generate_ids,
    inventory,
    rio as _mod_rio,
    serializer,
    xml5,
    xml7,
    )
)�errors�osutils)�revision)�	transport)�LogicalLockResult)�mutter�note)�MissingNestedTree�
TreeDirectory�	TreeEntry�TreeFile�TreeLink�
TreeReference�get_canonical_path)�WorkingTree�WorkingTreeFormat�format_registry)�InventoryRevisionTree�MutableInventoryTrees BZR merge-modified list format 1sBZR conflict list format 1�c��\rSrSrSrSrSrg)�InventoryModified�`zuThe current inventory for the tree %(tree)r has been modified, so a clean inventory cannot be read without data loss.c��Xlg�N��tree)�selfr$s  �8/usr/lib/python3/dist-packages/breezy/bzr/workingtree.py�__init__�InventoryModified.__init__fs���	�r#N)�__name__�
__module__�__qualname__�__firstlineno__�_fmtr'�__static_attributes__�r)r&rr`s��	B�	�
r)rc�^�\rSrSrSrS^U4SjjrSrSrS_SjrS	r	S
r
SrSrS
r
SrSrSrSrSrSrSrSrSrSrSrSrSrSrSrS`SjrSrSrSaS jr S!r!S"r"S#r#S$r$S%r%S&r&S'r'S(r(S)r)S*r*S+r+S,r,S-r-S.r.S/r/S0r0S1r1S2r2S_S3jr3S4r4S5r5\6Rn\8Rr4S6jr:S7r;S8r<S9r=S:r>S;r?S<r@S_S=jrAS>rB\CR�4S?jrES@rFSArGSBrHSCrIS_SDjrJS`SEjrKSbSFjrLSaSGjrM"SHSI5rNSaSJjrOSKrPSLrQSMrRSNrSSOrTSPrUScSQjrVScSRjrWSSrXS_STjrYSbU4SUjjrZSVr[S_SWjr\SXr]SdSYjr^S_SZjr_\`"5raSSS\aS4S[jrbSeS\jrcS]rdU=re$)f�InventoryWorkingTree�ja
Base class for working trees that are inventory-oriented.

The inventory is held in the `Branch` working-inventory, and the
files are in a directory on disk.

It is possible for a `WorkingTree` to have a filename which is
not listed in the Inventory and vice versa.
NFc	��>�[TU]UUURUUUS9 X@lUR	5 UR5 UcSUlSUlgURUSS9 g)z�Construct a InventoryWorkingTree instance. This is not a public API.

:param branch: A branch to override probing for the branch.
)�basedir�branch�
_transport�	_internal�_format�_controldirNF��dirty)	�superr'r7�_control_files�_detect_case_handling�"_setup_directory_is_tree_reference�_inventory_is_modified�
_inventory�_set_inventory)	r%r5r6rBr>r8r9r:�	__class__s	        �r&r'�InventoryWorkingTree.__init__tsy���	�����%�0�0���#�
	�	
�-���"�"�$��/�/�1���*/�D�'�"�D�O�
���
�%��8r)c��XlX lg)a�Set the internal cached inventory.

:param inv: The inventory to set.
:param dirty: A boolean indicating whether the inventory is the same
    logical inventory as whats on disk. If True the inventory is not
    the same and should be written to disk or data will be lost, if
    False then the inventory is the same as that on disk and any
    serialisation would be unneeded overhead.
N)rBrA)r%�invr<s   r&rC�#InventoryWorkingTree._set_inventory�s����&+�#r)c���URRS5nURURR5 SUlg![Ra
 SUlgf=f)NFT)�
controldir�get_workingtree_transport�statr9�case_sensitive_filename�case_sensitive�_mod_transport�
NoSuchFile)r%�wt_transs  r&r?�*InventoryWorkingTree._detect_case_handling�sZ���?�?�<�<�T�B��	(��M�M�$�,�,�>�>�?�#(�D����(�(�	'�"&�D��	'�s�%A
�
A(�'A(c��SSKJn U"XS9$)Nr)�InventoryTreeTransform)�pb)�	transformrT)r%rUrTs   r&rV�InventoryWorkingTree.transform�s��5�%�d�2�2r)c��URRRR(aURUlgURUlgr")�_branch�
repositoryr9�supports_tree_reference� _directory_may_be_tree_reference�_directory_is_tree_reference�"_directory_is_never_tree_reference�r%s r&r@�7InventoryWorkingTree._setup_directory_is_tree_reference�s7���<�<�"�"�*�*�B�B�04�0U�0U�D�-�04�0W�0W�D�-r)c��g�NFr0�r%�relpaths  r&r^�7InventoryWorkingTree._directory_is_never_tree_reference�s��r)c�d�U=(a( [R"URU5S-5$)Nz/.bzr)r�isdir�abspathrcs  r&r\�5InventoryWorkingTree._directory_may_be_tree_reference�s&���I�7�=�=����g�)>��)H�I�Ir)c�V�[RRURUSS9 g)NT)�working)�xml5�
serializer_v5�write_inventoryrB)r%�	inventory�out_files   r&�
_serialize�InventoryWorkingTree._serialize�s!�����*�*�4�?�?�H�d�*�Sr)c�@�[RRU5$r")rlrm�read_inventory)r%�in_files  r&�_deserialize�!InventoryWorkingTree._deserialize�s���!�!�0�0��9�9r)c�l�URR5 URR5 g)z�Break a lock if one is present from another instance.

Uses the ui factory to ask for confirmation if the lock may be from
an active process.

This will probe the repository for its lock as well.
N)r>�
break_lockr6r_s r&ry�InventoryWorkingTree.break_lock�s&��	
���&�&�(������ r)c�6�URR5$r")r>�	is_lockedr_s r&r|�InventoryWorkingTree.is_locked�s���"�"�,�,�.�.r)c�Z�UR5(d[R"U5egr")r|r
�ObjectNotLockedr_s r&�_must_be_locked�$InventoryWorkingTree._must_be_locked�s%���~�~����(�(��.�.� r)c�2�UR5(dUR5 URR5 URR5 [UR5$![a URR
5 ef=f)z�Lock the tree for reading.

This also locks the branch, and can be unlocked via self.unlock().

:return: A breezy.lock.LogicalLockResult.
)r|�_reset_datar6�	lock_readr>r�unlock�
BaseExceptionr_s r&r��InventoryWorkingTree.lock_read�su���~�~�������������	����)�)�+�$�T�[�[�1�1���	��K�K��� ��	���.A0�0&Bc�2�UR5(dUR5 URR5 URR5 [
UR5$![a URR5 ef=f)zdSee MutableTree.lock_tree_write, and WorkingTree.unlock.

:return: A breezy.lock.LogicalLockResult.
)	r|r�r6r�r>�
lock_writerr�r�r_s r&�lock_tree_write�$InventoryWorkingTree.lock_tree_write�su��
�~�~�������������	����*�*�,�$�T�[�[�1�1���	��K�K��� ��	�r�c�2�UR5(dUR5 URR5 URR5 [UR5$![a URR
5 ef=f)z_See MutableTree.lock_write, and WorkingTree.unlock.

:return: A breezy.lock.LogicalLockResult.
)r|r�r6r�r>rr�r�r_s r&r��InventoryWorkingTree.lock_writesu��
�~�~������������ �	����*�*�,�$�T�[�[�1�1���	��K�K��� ��	�r�c�6�URR5$r")r>�get_physical_lock_statusr_s r&r��-InventoryWorkingTree.get_physical_lock_statuss���"�"�;�;�=�=r)c��UR5 URUSS9 UR5 SSS5 g!,(df   g=f)z)Write inventory as the current inventory.Tr;N)r�rC�flush)r%rGs  r&�_write_inventory�%InventoryWorkingTree._write_inventorys6��
�
!�
!�
#�����4��0��J�J�L�$�
#�
#�s	�!;�
A	c	�,�SSKJnJnJnJn UR5 U"UR
S55nUH�upxp�[RRU5nUS:XaM-U
S:XaURU"X�U	55 MMU
S:XaURU"X�U	55 MmU
S:XaURU"X�U	55 M�[R"SRU
55e URU5 SSS5 g!,(df   g=f)Nr)�	Inventory�InventoryDirectory�
InventoryFile�
InventoryLink��	directory�file�symlinkzunknown kind {!r})ror�r�r�r�r��path2id�os�path�basename�addr
�BzrError�formatr�)r%�new_inventory_listr�r�r�r�rGr��file_id�parent�kind�names            r&�
set_inventory�"InventoryWorkingTree.set_inventorys���	
�	
��
!�
!�
#��D�L�L��,�-�C�/A�+��v��w�w�'�'��-���2�:���;�&��G�G�.�w�f�E�F��V�^��G�G�M�'��@�A��Y�&��G�G�M�'��@�A� �/�/�*=�*D�*D�T�*J�K�K�0B�
�!�!�#�&�$�
#�
#�s�CD�
Dc��UR5n[SRU55nURR	X#UR
R
5S9 g)z:Write the basis inventory XML to the basis-inventory file.r)��modeN)�_basis_inventory_namer�joinr7�put_filerJ�_get_file_mode)r%�xmlr��sios    r&�_write_basis_inventory�+InventoryWorkingTree._write_basis_inventory8sF���)�)�+���c�h�h�s�m�$����� � �����1O�1O�1Q� �Rr)c��SUlURRS5nURU5nSSS5 UR	WSS9 g!,(df   N=f)z0Reset transient data that cannot be revalidated.FroNr;)rAr7�getrvrC�r%�f�results   r&r�� InventoryWorkingTree._reset_data>sO��&+��#�
�_�_�
 �
 ��
-���&�&�q�)�F�.����F�%��0�.�
-�s�A�
Ac���UR5 UR5nSSKJn U"X5nUR	5(dUR5 SSS5 gURRU5 UR5 UR5 [SURR5 SSS5 g!UR5 f=f!,(df   g=f)z6Store uncommitted changes from the tree in the branch.r)�ShelfCreatorNz*Uncommitted changes stored in branch "%s".)r��
basis_tree�shelfr��
shelve_all�finalizer6�store_uncommittedrVr�nick)r%�target_treer��
shelf_creators    r&r��&InventoryWorkingTree.store_uncommittedEs���
�_�_�
��/�/�+�K�,�(��;�M�
)�$�/�/�1�1���&�&�(��
����-�-�m�<��'�'�)��&�&�(��=�t�{�{�?O�?O�P��
���&�&�(���
�s.�C�C�C� +C�0C�C�C�
C'c�z�UR5 URRU5nUc
SSS5 gUR5nSUlUR5 URR
S5 UR5 SSS5 g!UR5 f=f!,(df   g=f)z:Restore uncommitted changes from the branch into the tree.NT)r�r6�
get_unshelver�make_merger�ignore_zero�do_merger�r�)r%�	unshelver�mergers   r&�restore_uncommitted�(InventoryWorkingTree.restore_uncommittedUs���
�_�_�
����1�1�$�7�I�� ���
�
%�"�.�.�0��%)��"����!����-�-�d�3��"�"�$��
���"�"�$���
�s#� B,�AB�=B,�B)�)B,�,
B:c�2�SSKJn U"XR5$)z-Return the ShelfManager for this WorkingTree.r)�ShelfManager)r�r�r7)r%r�s  r&�get_shelf_manager�&InventoryWorkingTree.get_shelf_managercs��(��D�/�/�2�2r)c���URnURRnSUlUR	URR5 XRlURUR
URR'UR
5HAnURU5nURU:XdM&URRUlMC g)z�Set the root id for this tree, in a format specific manner.

:param file_id: The file id to assign to the root. It must not be
    present in the current inventory or an error will occur. It must
    not be None, but rather a valid file id.
TN)	rB�rootr�rA�delete�_byid�iter_all_ids�	get_entry�	parent_id)r%r�rG�orig_root_id�fid�entrys      r&�_set_root_id�!InventoryWorkingTree._set_root_idis����o�o���x�x�'�'��'+��#�	�
�
�3�8�8�#�#�$�"����&)�h�h��	�	�#�(�(�"�"�#��#�#�%�C��M�M�#�&�E����,�.�"%�(�(�"2�"2���&r)c	�X^^^^�[U[5(aU/n/n[5mUc[Rn/mUUU4SjnTR5 UHOnTR
U5n	TRU	5n[U5S:�dM6TRU5 U"U5 MQ [T5n[U5S:Xa
SSS5 gURSS9 U(d�U(d�TRTR5SSSUS9H�n
U
RSSLa TRU
R S5 M5U
R"(dMHU
R$ScMZ[&R("XR S5(dM�TRU
R S5 M� UU4S	jnUGH�nTR+U5n
SnU
(dS
R-U5nO�U(a]TR/U5(aSnOSn[&R0"TR%U55nUR3US
-U-U-S-5 URUSU
S45 SR-U5nU(d�TR
U5m[&R4"T5(a�[&R6"T5(a[[[8R:"T55S:�a8U(a([&R<"T5 SR-U5nOTU"U5nOKUT;a	U"U5nO<[&R>"T5 SR-U5nOUbSR-U5nUcGM�[AU5 GM� TRCU5 SSS5 g!,(df   g=f)aRemove nominated files from the working tree metadata.

:files: File paths relative to the basedir.
:keep_files: If true, the files will also be kept.
:force: Delete files and directories, even if they are changed and
    even if the directories are not empty.
Nc��>�T	RU5HLupUHAup4pVnT	RU5(aTRU5 M0TRU5 MC MN gr")�walkdirs�is_versionedr��append)
r��_parent_path�
file_infosrd�	_basename�_kind�_lstat�	all_files�files_to_backupr%s
       ���r&�recurse_directory_to_add_files�CInventoryWorkingTree.remove.<locals>.recurse_directory_to_add_files�s\���-1�M�M�)�,D�(��@J�<�G��u��(�(��1�1�!�
�
�g�.�(�.�.�w�7�AK�-Er)rT)�reverseF)�include_unchanged�require_versioned�want_unversioned�specific_filesrc�>�TRRU5n[R"TTR	U55 SRX5$)Nz removed {} (but kept a copy: {}))rJ�_available_backup_namer�renamerhr�)�file_to_backup�backup_name�abs_pathr%s  ��r&�backup�+InventoryWorkingTree.remove.<locals>.backup�sD���"�o�o�D�D�^�T�����x����k�)B�C�9�@�@�"��r)z{} is not versioned.�I�?z       �
z
removed {}z
deleted {}z{} does not exist.)"�
isinstance�str�set�sys�stdoutr�rhrd�lenr��list�sort�iter_changesr��	versionedr�r��changed_contentr�r�
is_inside_anyr�r��
is_ignored�kind_marker�write�lexistsrgr��listdir�rmtree�
delete_anyr�apply_inventory_delta)r%�files�verbose�to_file�
keep_files�force�	inv_deltar��filenamerh�changer�r�r��message�
new_status�kind_chr�r�r�s`                @@@r&�remove�InventoryWorkingTree.remove�s����e�S�!�!��G�E��	��E�	��?��j�j�G���	8��
!�
!�
#�!���,�,�x�0���<�<��0���x�=�1�$��M�M�(�+�2�8�<�
"���O�E��5�z�Q���$�
#� 
�J�J�t�J�$��e�"�/�/��O�O�%�&*�&+�%)�#(�0��F��'�'��*�e�3�'�.�.�v�{�{�1�~�>��.�.�.�#�[�[��^�7�#�1�1�%���Q��H�H�(�.�.�v�{�{�1�~�>�#�&
����l�l�1�o�����4�;�;�A�>�G�� �?�?�1�-�-�),�J�),�J�#*�"5�"5�d�i�i��l�"C���
�
�j�9�&<�q�&@�7�&J�T�&Q�R��$�$�a��s�D�%9�:�*�1�1�!�4�G�!�#�|�|�A��H����x�0�0�"�=�=��2�2�s�2�:�:�h�;O�7P�ST�7T�$� '���x� 8�*6�*=�*=�a�*@��*0��)�� �O�3�*0��)�� '� 2� 2�8� <�*6�*=�*=�a�*@�� �,�"6�"=�"=�a�"@���&���M�U�V
�&�&�y�1�w$�
#�
#�s2�5N�8N�BN�N�(&N�GN�1!N�
N)c��[R"URU55$![Ran[U5UeSnAff=fr")r�openrhr
�NotBranchErrorr�r%r��es   r&�get_nested_tree�$InventoryWorkingTree.get_nested_treesD��	1��#�#�D�L�L��$6�7�7���$�$�	1�#�D�)�q�0��	1�s�$'�A�A�Ac�$�URU5$r")r&)r%r�r��reference_revisions    r&�_get_nested_tree�%InventoryWorkingTree._get_nested_trees���#�#�D�)�)r)c�4�UVVs/sHup4UPM	 nnnUHn[R"U5 M UR5 URXRS9 UR	U5n[U5S:Xa[RnSnOUSupxURU5(aCUcURU5 O.URn	URXy5n
URU
5 URU5 SSS5 gs snnf!,(df   g=f)z!See MutableTree.set_parent_trees.)�allow_leftmost_as_ghostrN)
�
_mod_revision�check_not_reserved_idr��_check_parents_for_ghosts�_filter_parent_ids_by_ancestryr�
NULL_REVISION�_change_last_revision�_cache_basis_inventory�root_inventory� _create_basis_xml_from_inventoryr��_set_merges_from_parent_ids)r%�parents_listr-�revr$�
parent_ids�revision_id�leftmost_parent_id�leftmost_parent_treerGr�s           r&�set_parent_trees�%InventoryWorkingTree.set_parent_trees
s��-9�:�\�k�s�c�\�
�:�%�K��/�/��<�&��
!�
!�
#��*�*��
+�
��<�<�Z�H�J��:��!�#�%2�%@�%@�"�'+�$�;G��?�8�"��)�)�*<�=�=�'�/��/�/�0B�C�.�=�=�C��?�?�@R�X�C��/�/��4��,�,�Z�8�-$�
#��	;�$�
#�s�D�B4D	�	
Dc�h�URRRU5nUSnSU;dSU;a@URRRR	X!5nURX5nUR
U5 g![R[R4a gf=f)z*Cache new_revision as the basis inventory.rs
revision_id="s
format="7"N)
r6rZ�_get_inventory_xml�_serializer�read_inventory_from_linesr6r�r
�NoSuchRevision�RevisionNotPresent)r%�new_revision�lines�	firstlinerGs     r&r4�+InventoryWorkingTree._cache_basis_inventory(s���
	��K�K�*�*�=�=�l�K�E��a��I��y�0�M��4R��k�k�,�,�8�8�R�R�����=�=�l�P���'�'��.���%�%�v�'@�'@�A�	��	�s�BB
�
$B1�0B1c��g)Nzbasis-inventory-cacher0r_s r&r��*InventoryWorkingTree._basis_inventory_nameCs��&r)c�L�Xl[RRU5$)z6Create the text that will be saved in basis-inventory.)r;�xml7�
serializer_v7�write_inventory_to_lines)r%r;ros   r&r6�5InventoryWorkingTree._create_basis_xml_from_inventoryFs�� +���!�!�:�:�9�E�Er)c���[RU5nUR5 URSUR	5[
5 SSS5 g!,(df   g=f)N�	conflicts)�_mod_bzr_conflicts�ConflictListr��_put_rio�
to_stanzas�CONFLICT_HEADER_1)r%rR�
conflict_lists   r&�
set_conflicts�"InventoryWorkingTree.set_conflictsKsD��*�7�7�	�B�
�
�
!�
!�
#��M�M�+�}�'?�'?�'A�CT�U�$�
#�
#�s�&A�
A#c� �UR5 [UR55nUR[U55 UR	[U[RRS95 SSS5 g!,(df   g=f)N��key)	r�rrR�updaterY�sortedrS�Conflict�sort_key)r%�
new_conflicts�conflict_sets   r&�
add_conflicts�"InventoryWorkingTree.add_conflictsPsc��
�
!�
!�
#��t�~�~�/�0�L�����M� 2�3�����|�);�)D�)D�)M�)M�N�
�$�
#�
#�s�A%A?�?
B
c�\�UR5 URRS5n[U5[S-:wa[R"5e[RU5n[
RRU5UR5 sSSS5 $![Ra  [
R
5ssSSS5 $f=f![an[R"5UeSnAff=f!UR5 f=f!,(df   g=f)NrR�
)r�r7r�rOrPrSrT�nextrWr
�ConflictFormatError�
StopIteration�_mod_rio�	RioReader�from_stanzas�close)r%�confile�err�readers    r&rR�InventoryWorkingTree.conflictsXs���
�^�^�
�
9��/�/�-�-�k�:��	
 �@��G�}�(9�E�(A�A�$�8�8�:�:�B�"�+�+�G�4��)�6�6�C�C�F�K��
�
���
��"�,�,�
9�)�6�6�8�8�	�
�
9��%�@� �4�4�6�C�?��@��
�
�
����
�s]�D�B)�+C �4D�D�)(C�D�C�D� 
D�*D�D�D�D�D�
D+c���[USS5nUbU$[5nUR[R	55 UR[R55 UR
URR5(aRURURR5nUR[RU55 SSS5 X lU$!,(df   N=f)zQReturn list of ignore patterns.

Cached in the Tree object after the first call.
�
_ignoresetN)�getattrrr^�ignores�get_runtime_ignores�get_user_ignores�has_filenamer9�ignore_filename�get_file�parse_ignore_filert)r%�	ignoreset�ignore_globsr�s    r&�get_ignore_list�$InventoryWorkingTree.get_ignore_listis���
�D�,��5�	�� ����u�����G�7�7�9�:����G�4�4�6�7����T�\�\�9�9�:�:����t�|�|�;�;�<���#�#�G�$=�$=�a�$@�A�=�&����=�<�s�2%C'�'
C5c�$�UR5 gr")�_flush_ignore_list_cacher_s r&�_cleanup�InventoryWorkingTree._cleanup{s���%�%�'r)c� �SUlSUlg)z7Resets the cached ignore list to force a cache rebuild.N)rt�_ignoreglobsterr_s r&r��-InventoryWorkingTree._flush_ignore_list_cache~s�����#��r)c��[USS5c([RUR55UlURRU5$)a�Check whether the filename matches an ignore pattern.

Patterns containing '/' or '\' need to match the whole path;
others match against only the last component.  Patterns starting
with '!' are ignore exceptions.  Exceptions take precedence
over regular patterns and cause the filename to not be ignored.

If the file is ignored, returns the pattern which caused it to
be ignored, otherwise None.  So this can simply be used as a
boolean if desired.
r�N)ru�globbing�ExceptionGlobsterrr��match)r%rs  r&r�InventoryWorkingTree.is_ignored�sG���4�*�D�1�9�#+�#=�#=�d�>R�>R�>T�#U�D� ��#�#�)�)�(�3�3r)c��UR5n[R"URR	U55$)z Read the cached basis inventory.)r�r�split_linesr7�	get_bytes�r%r�s  r&�read_basis_inventory�)InventoryWorkingTree.read_basis_inventory�s0���)�)�+���"�"�4�?�?�#<�#<�T�#B�C�Cr)c�@�UR5 UR(a[U5eURR	S5nURU5nSSS5 UR
WSS9 UsSSS5 $!,(df   N)=f!,(df   g=f)z�Read the working inventory.

:raises errors.InventoryModified: read_working_inventory will fail
    when the current in memory inventory has been modified.
roNFr;)r�rArr7r�rvrCr�s   r&�read_working_inventory�+InventoryWorkingTree.read_working_inventory�s{���^�^�
��*�*�'��-�-����$�$�[�1�Q��*�*�1�-��2�����e��4��
�
�2�1���
�s#�8B�	A>�B�>
B	�B�
Bc�l�UR5VVs1sHupURiM snn$s snnf)z�Iterate through file_ids for this tree.

file_ids are in a WorkingTree if they are in the working inventory
and the working file exists.
)�iter_entries_by_dirr��r%r��ies   r&�all_file_ids�!InventoryWorkingTree.all_file_ids�s-��,0�+C�+C�+E�F�+E�x�t��
�
�+E�F�F��Fs�0c�X�UR5VVs1sHupUiM	 snn$s snnfr")r�r�s   r&�all_versioned_paths�(InventoryWorkingTree.all_versioned_paths�s'��%)�%=�%=�%?�@�%?����%?�@�@��@s�&c��UR5 URU5(aURU5 SSS5 g!,(df   g=f)z-Change the last revision in the working tree.N)r�r3r4)r%rFs  r&�set_last_revision�&InventoryWorkingTree.set_last_revision�s9��
�
!�
!�
#��)�)�,�7�7��+�+�L�9�$�
#�
#�s�(A�
Ac��/$)aReturn the references needed to perform a check of this tree.

The default implementation returns no refs, and is only suitable for
trees that have no local caching and can commit on ghosts at any time.

:seealso: breezy.check for details about check_refs.
r0r_s r&�_get_check_refs�$InventoryWorkingTree._get_check_refs�s	���	r)c	��UR5 UR5nUR5 USUR54n[[	URU555S:�a[R"S5eUR5 SSS5 SSS5 g!,(df   N=f!,(df   g=f)z�Check the tree for consistency.

:param references: A dict with keys matching the items returned by
    self._get_check_refs(), and values from looking those keys up in
    the repository.
�treesrz#Mismatched basis inventory content.N)	r�r��
last_revisionrrrr
�
BzrCheckError�	_validate)r%�
references�
tree_basis�
repo_basiss    r&�_check�InventoryWorkingTree._check�s����^�^�
����*�J��%�%�'�'��$�2D�2D�2F�(G�H�
��t�J�3�3�J�?�@�A�A�E� �.�.�/T�U�U���� �	(��
�'�'���
�s#�!B7�A#B&�B7�&
B4	�0B7�7
Cc��UR5 UR5n0nUH6nUupEUS:XdMURRR	U5X#'M8 URU5 SSS5 g!,(df   g=f)z,Check that the working state is/isn't valid.r�N)r�r�r6rZ�
revision_treer�)r%�
check_refs�refs�refr��values      r&�check_state� InventoryWorkingTree.check_state�sm��
�^�^�
��-�-�/�J��D�!��!����7�?� $��� 6� 6� D� D�U� K�D�I�"�
�K�K����
�
�s� A:�<A:�:
Bc��UR5 UcUR5nU(d4URRR	[
R5nO(URRR	US5nURUR5 URU5 SSS5 g!,(df   g=f)z�Reset the state of the working tree.

This does a hard-reset to a last-known-good state. This is a way to
fix if something got corrupted (like the .bzr/checkout/dirstate file)
Nr)
r��get_parent_idsr6rZr�r.r2r�r5�set_parent_ids)r%�revision_ids�rts   r&�reset_state� InventoryWorkingTree.reset_state�s����
!�
!�
#��#�#�2�2�4����[�[�+�+�9�9�-�:U�:U�V���[�[�+�+�9�9�,�q�/�J���!�!�"�"3�"3�4�����-�$�
#�
#�s�B#B=�=
Cc�D�URRS:wa[R"U5e[	5nURURU5 URS5 URRSXRR5S9 SUlg)z&Write the in memory inventory to disk.�wrror�FN)
r>�
_lock_moder
�NotWriteLockedrrqrB�seekr7r�rJr�rA)r%r�s  r&r��InventoryWorkingTree.flush�s������)�)�S�0��'�'��-�-��i���������-��������� � ���?�?�#A�#A�#C�	!�	
�',��#r)c���[R"URU55R$![a;nUR
[
R:Xa[R"U5UeeSnAff=f)zSee Tree.get_file_mtime.N)	r��lstatrh�st_mtime�OSError�errno�ENOENTrOrPr$s   r&�get_file_mtime�#InventoryWorkingTree.get_file_mtime�s[��	��8�8�D�L�L��.�/�8�8�8���	��w�w�%�,�,�&�$�/�/��5�1�<���	�s�.1�
A6�6A1�1A6c��URU5nU"U5nU"UR
5nUS:XaUR
X5$US:XaURU5(aSnUSSS4$US:Xa[R"U5nSSSU4$USSS4$![a*n[USS5[R:XaSnAgeSnAff=f)zSee Tree.path_content_summary.r�N)�missingNNNr�r��tree-referencer�)
rhr�rur�r��st_mode�_file_content_summaryr]r�readlink)	r%r�r��_mapperrh�stat_resultr%r��targets	         r&�path_content_summary�)InventoryWorkingTree.path_content_summarys����,�,�t�$��	� ��/�K��{�*�*�+���6�>��-�-�d�@�@�
�[�
 ��0�0��6�6�'����t�T�)�)�
�Y�
��%�%�g�.�F��t�T�6�2�2��$��d�+�+��'�	��q�'�4�(�E�L�L�8�4���	�s�B�
C�B?�>B?�?Cc�d�URnURX5nSX4URX54$)Nr�)�st_size�!_is_executable_from_path_and_stat�_sha_from_stat)r%r�r��size�
executables     r&r��*InventoryWorkingTree._file_content_summary!s5���"�"���;�;�D�N�
���$�*=�*=�d�*P�Q�Qr)c�n�URU5R$![Ra gf=frb)�_path2ier�rOrP�r%r�r�s   r&�,_is_executable_from_path_and_stat_from_basis�AInventoryWorkingTree._is_executable_from_path_and_stat_from_basis's6��	��=�=��&�1�1�1���(�(�	��	�s��4�4c��URn[[R"U5=(a [RU-5$r")r��boolrL�S_ISREG�S_IEXEC)r%r�r�r�s    r&�+_is_executable_from_path_and_stat_from_stat�@InventoryWorkingTree._is_executable_from_path_and_stat_from_stat/s/���"�"���D�L�L��&�>�4�<�<�$�+>�?�?r)c�6�UR5(dURU5nUR$[R"URU55Rn[[R"U5=(a [RU-5$r")�_supports_executabler�r�r�r�rhr�r�rLr�r�)r%r�r�r�s    r&�
is_executable�"InventoryWorkingTree.is_executable3sh���(�(�*�*����t�$�B��=�=� ��8�8�D�L�L��.�/�7�7�D�����T�*�B�t�|�|�d�/B�C�Cr)c�p�UR5(dURX5$URX5$r")r�r�r�r�s   r&r��6InventoryWorkingTree._is_executable_from_path_and_stat;s3���(�(�*�*��D�D�T�W�W��C�C�D�V�Vr)c���UR5 URn[XU5H0upVnUcURXWS9 OURXWUS9 SUlM2 SSS5 g!,(df   g=f)zSee MutableTree._add.N)r�)r�r�T)r�r5�zip�add_pathrA)r%r�kinds�idsrGr�r�r�s        r&�_add�InventoryWorkingTree._addAsh��
�
!�
!�
#��%�%�C�$'��E�$:� ��D��?��L�L��L�.��L�L��w�L�?�.2��+�%;�$�
#�
#�s�A
A'�'
A5c��UcHUR5(a2[R[RRU55nOUR5(d
[
5eUR5 [R"URU55 URU/S/U/S9 UsSSS5 $!,(df   g=f)zSee MutableTree.mkdir().Nr�)r�)�supports_setting_file_ids�generate_ids�gen_file_idr�r�r��SettingFileIdUnsupportedr��mkdirrhr�)r%r�r�s   r&r��InventoryWorkingTree.mkdirQs����?��-�-�/�/�&�2�2�2�7�7�3C�3C�D�3I�J����1�1�3�3�.�0�0�
�_�_�
��H�H�T�\�\�$�'�(��H�H�d�V�k�]��	�H�:���
�
�s�;;C�
Cc��XR5:XabUR5n[RR	U5nUR
U:Xa [
URRX15$[R"X5e![Ra N,f=f![Ra NFf=f)zSee WorkingTree.revision_id.)r�r�rMrNrCr;rr6rZ�
serializer�BadInventoryFormatrOrPr
�NoSuchRevisionInTree)r%r;�	xml_linesrGs    r&r��"InventoryWorkingTree.revision_tree^s����,�,�.�.�
� �5�5�7�	�	��,�,�F�F�y�Q�C����+�5�4� �K�K�2�2�C� ��6��)�)�$�<�<��"�4�4�����"�,�,�
��
�s#�B&�AB�B#�"B#�&B=�<B=c��UR5 URU5nUc[R"U5e/nUR	5H�nURU5nUR5 URU5nUS:waSSS5 MIURU5nUURU54n	X�;aURU	5 SSS5 M� URRR5n
U
RU5n/nUHn
X�;dM
URU
5 M URRR R#5nUR%U5nX24nUR'UX�5 UR)U5V
Vs/sH
un
nU
SU4PM nn
nUsSSS5 $![Ra) URRRU5nGN�f=f![Ra
 SSS5 GM�f=f!,(df   GM�=fs snn
f!,(df   g=f)aASee Tree.annotate_iter.

This implementation will use the basis tree implementation if possible.
Lines not in the basis are attributed to CURRENT_REVISION

If there are pending merges, lines added by those merges will be
incorrectly attributed to CURRENT_REVISION (but after committing, the
attribution will be correct).
Nr����)r�r�rOrPr�r�r
rr6rZr��id2path�get_file_revisionr��get_file_graph�heads�texts�
get_annotator�
get_file_text�add_special_text�
annotate_flat)r%r��default_revisionr��maybe_file_parent_keysr��parent_treer��parent_path�parent_text_key�graphr�file_parent_keysr]�	annotator�text�this_key�line�annotationss                   r&�
annotate_iter�"InventoryWorkingTree.annotate_iterss$���^�^�
��l�l�4�(�G���$�/�/��5�5�%'�"�!�0�0�2�	�R�"&�"4�"4�Y�"?�K�!�*�*�,�!�*�/�/��5���v�~�
!�-�,�#.�"5�"5�g�">�K��#�5�5�k�B�'�O�'�D�.�5�5�o�F�#-�,�3�.�K�K�*�*�9�9�;�E��K�K� 6�7�E�!��-���<�$�+�+�C�0�.�
���.�.�4�4�B�B�D�I��%�%�d�+�D��2�H��&�&�x�1A�H�1:�1H�1H��1R��1R�I�C���R��$��1R�
���W�
���2�2�R�"&�+�+�"8�"8�"F�"F�y�"Q�K�R��
*�4�4�!� �	-�,�!��-�,��<�Q�
�s��AH<�F?�#H<�3H#�5G?�H#�
H<�:H#�AH<� A=H<�H6�1H<�?9G<�8H<�;G<�<H<�?H 	�H#�H<�H 	� H#�#
H3�-H<�<
I
c��UR5 [RX#5nURR	XUR
R
5S9 g)Nr�)r�rk�rio_filer7r�rJr�)r%r�stanzas�header�my_files     r&rU�InventoryWorkingTree._put_rio�sG�������#�#�G�4����� � ��D�O�O�$B�$B�$D�	!�	
r)c�^^�UU4SjnTR5 TRSU"5[5 SSS5 g!,(df   g=f)Nc3�># �TR5H@upTRU5nUcM[RUR	S5US9v� MB g7f)N�utf8)r��hash)�itemsr�rk�Stanza�decode)r��sha1r��modified_hashesr%s   ��r&�iter_stanzas�=InventoryWorkingTree.set_merge_modified.<locals>.iter_stanzas�sM����-�3�3�5�
���,�,�t�,���?���o�o�g�n�n�V�.D�4�o�P�P�	6�s�AA�merge-hashes)r�rU�MERGE_MODIFIED_HEADER_1)r%r*r+s`` r&�set_merge_modified�'InventoryWorkingTree.set_merge_modified�s6���	Q��
!�
!�
#��M�M�.�,�.�:Q�R�$�
#�
#�s�A�
Ac�&�UR5 URRS5n0n[U5[S-:wa[R"5e[RU5Hsn[RURS55nURU5nURS5RS5nXpR!U5:XdMoXrU'Mu UUR#5 sSSS5 $![Ra 0ssSSS5 $f=f![an[R"5UeSnAff=f![Ra M�f=f!UR#5 f=f!,(df   g=f)aKReturn a dictionary of files modified by a merge.

The list is initialized by WorkingTree.set_merge_modified, which is
typically called after we make some automatic updates to the tree
because of a merge.

This returns a map of file_id->sha1, containing only files which are
still in the working inventory and have that text hash.
r-Nrgr�r%�ascii)r�r7r�rOrPrhr.r
�MergeModifiedFormatErrorrjrkrl�
cache_utf8�encoder�NoSuchId�
get_file_sha1rn)r%�hashfile�merge_hashesrp�sr�r��	text_hashs        r&�merge_modified�#InventoryWorkingTree.merge_modified�sb���^�^�
�
��?�?�.�.�~�>��
!�!��E��H�~�)@�5�)H�H�$�=�=�?�?�I�"�+�+�H�5�A�)�/�/����i�0@�A�G�!�#�|�|�G�4��!"���f�
� 4� 4�W� =�I� �$6�$6�t�$<�<�-6�T�*�6�$���� �3�
��"�,�,�
��	�	�
�
��%�E� �9�9�;��D��E��"�?�?�!� �!����� ��3�
�s��F�D�E-�+D*�=E-�E�,2E-�"	E-�+F�D'�F�&D'�'F�*
E�4E
�
E�E-�E*�&E-�)E*�*E-�-E?�?F�
Fc�^�U4SjmUR5 URS5URS5:Xa[R"XS5eUR	UR
5nUR[R"U55nUc[R"XS5eURRR5(d[R"U5eUR5 URRnXEl[R""U5UlURR'U5 T"URU5 UR)UR5 UR+5H:nURR-URU5 UR/U5 M< SSS5 UR0R35 SSS5 g![Ran[R"XS5UeSnAff=f!,(df   Ne=f!,(df   g=f)Nc�>�URR5H5nX RUR'URS:XdM-T"X5 M7 g)Nr�)�children�valuesr�r�r�)ror��child_entry�add_childrens   �r&rC�2InventoryWorkingTree.subsume.<locals>.add_children�sB���$�~�~�4�4�6��7B���� 3� 3�4��#�#�{�2� ��8� 7r)r�zTrees have the same rootz"Tree is not contained by the otherz"Parent directory is not versioned.)r�r�r
�BadSubsumeSourcerdr5�PathNotChildr�dirnamer6rZ�supports_rich_root�SubsumeTargetNeedsUpgrader�r5r�r�r�r�r�r�r��fetch�add_parent_tree_idrJ�
retire_bzrdir)r%�
other_tree�other_tree_pathrp�new_root_parent�
other_rootr�rCs       @r&�subsume�InventoryWorkingTree.subsume�s����	9��_�_�
��!�!�"�%����b�)9�9��-�-��&@���
�"&�,�,�z�/A�/A�"B��
#�l�l�7�?�?�?�+K�L�O��&��-�-��&J����;�;�)�)�<�<�>�>��6�6�z�B�B��+�+�-�'�6�6�;�;�
�'6�$�")�"2�"2�?�"C�
���#�#�'�'�
�3��T�0�0�*�=��%�%�d�&9�&9�:�",�!:�!:�!<�I��K�K�%�%�j�&7�&7��C��+�+�I�6�"=�.�
�!�!�/�/�1�C�
���&�&�
��-�-��&J�����
��.�-��+�
�sI�<H=�G8�0BH=�>CH,�
"H=�8H)�H$�$H)�)H=�,
H:	�6H=�=
Ic�^�U4SjnTR5 TR5 U"U5nUcTRR5nUR	5 URU5nUR
5nUR5(d[R"5eUR5nURTR5 TR5HnUR!TRU5 M! TRR"R%U5n	U	R&UR&:wa#URU	5n
U
R)U5 OUn
U
R+[,R.5nUR1TR55 TR2n[4R7SS9n
TR9U5nUR;U5nUR=U5 SUlU
RAU5 TRCU5 URCU
5 UsSSS5 $![Ra UR5nGN�f=f!,(df   g=f)zeExtract a subtree from this tree.

A new branch will be created, relative to the path for this tree.
c��>�[R"U5nTRRRnUH$nURU5nUR
5 M& U$r")r�	splitpathr6rJ�root_transport�clone�ensure_base)r��segmentsr
r�r%s    �r&�mkdirs�,InventoryWorkingTree.extract.<locals>.mkdirssT����(�(��.�H����.�.�=�=�I� ��%�O�O�D�1�	��%�%�'�!��r)N)�root_id)"r�r�rJ�cloning_metadirrX�initialize_on_transport�find_repositoryr
�NoRepositoryPresent�create_repositoryrH�RootNotRich�
create_branch�pullr6r�rJrVrW�base�set_branch_reference�create_workingtreer.r2r�r5ror�r�r��remove_recursive_idr�r�r�)r%�sub_pathr�rZ�branch_transport�
branch_bzrdir�repo�
new_branchr��tree_transport�tree_bzrdir�wt�my_inv�	child_invr��new_roots`               r&�extract�InventoryWorkingTree.extracts	���	��
!�
!�
#��J�J�L�%�h�/���~����8�8�:���(�(�*�"�:�:�;K�L�M�
9�$�4�4�6���*�*�,�,��(�(�*�*�&�4�4�6�J��O�O�D�K�K�(�!�0�0�2�	�� � ����i�8�3�!�_�_�;�;�A�A�(�K�N��"�"�&6�&;�&;�;�$�<�<�^�L���0�0��<�+���/�/�
�0K�0K�L�B����d�1�1�3�4��(�(�F�!�+�+�D�+�9�I��l�l�8�,�G��'�'��0�H��&�&�w�/�!%�H���M�M�(�#��!�!�&�)����	�*��G$�
#���-�-�
9�$�6�6�8��
9��$�
#�s1�AI,�0I�F7I,�$I)�%I,�(I)�)I,�,
I:c#��# �[R5nURUR55 Uc!USLaSSSURR
4v� [RnURRRRSS5Sn[[[[S	.nUb4UR!U5up�U
c
SSS5 gU"UR"U5nO.URn	U	R
R$n
UR"n['[(R*"U55n[-U5nX�SX�4/n
U
(GaQU
S
up�p�nU(Ga&UR/5nUU:XaM US-U-nUS-U-nUR1U
5nUR2S:XaUR4R7U5nOSnU(aSnO�UR9USS5(aSnOu[R:"U5unnUU:XdU(dSnOLUnUS-U-nUS-U-nUR=U
U5nU(aSnOUR9USS5(aSnOSn[R>"U5nUS:XayURAU5(acU(dS
nOYURCU5nURUR55 URnUR1UR$5nSnU(aUSSUUU4v� OUSSUUUU"54v� GM�US:waGM�U(aK['[(R*"U55n[-U5nU
RIUUR$UUU45 OU(aGM&U
RK5 U
(aGMQSSS5 g![Da USSUU[G54v� N�f=f!,(df   g=f7f)a�List all files as (path, class, kind, id, entry).

Lists, but does not descend into unversioned directories.
This does not include files that have been deleted in this
tree. Skips the control directory.

:param include_root: if True, return an entry for the root
:param from_dir: start from this directory or None for the root
:param recursive: whether to recurse into subdirectories or not
NTr��Vr��/rr)r�r�r�r�rr�r�r�)&�
contextlib�	ExitStack�
enter_contextr�r5r�r�pathjoinrJr
re�rsplitrrrr�_path2inv_file_idr5r�r_r�rr�popleftr�r�r@r�r�normalized_filename�	get_child�	file_kindr]r&�KeyErrorrr��pop)r%�include_root�from_dir�	recursive�recurse_nested�
exit_stackr|�transport_base_dir�
fk_entries�from_inv�from_dir_id�from_dir_abspathr@�stackrG�from_dir_relpathr��fp�fap�dir_ie�f_ie�c�f_norm�
can_access�fk�subtree�new_childrens                           r&�
list_files�InventoryWorkingTree.list_files>s�����
!�
!�
#�z��$�$�T�^�^�%5�6���L�D�$8��3��T�-@�-@�-E�-E�F�F��'�'�H�"&���!:�!:�!?�!?�!F�!F�s�A�!N�q�!Q��+� �#�"/�	�J��#�(,�(>�(>�x�(H�%���&��1$�
#�2$,�D�L�L�(�#C� ��.�.��&�m�m�3�3��#'�<�<� ��b�j�j�)9�:�;�H��X��H��R�1A�L�M�E���"�I�Q��#3�x�� �(�(�*�A�*�Q�.� �*�C�/�!�3�B�+�S�0�1�4�C� �]�]�;�7�F��{�{�k�1�%���2�2�1�5��#���������A�B��0�0���
.5�-H�-H��-K�*��
���;�j� #�A�
!'�A�!1�C�!7�!�!;�B�"2�S�"8�1�"<�C�#&�=�=��a�#@�D�#�$'��!%����A�B��!8�!8�$'��$'�� �*�*�3�/�B��[�(�T�-N�-N�q�-Q�-Q�-�!1�B�&*�&:�&:�1�&=�G�&�4�4�W�5F�5F�5H�I�")�"8�"8�C�#&�=�=����#>�D�!,�B�� ���f�a��T�1�1�=�"$�Q�R�&�!�R��B��1A�"A�A�!��[�(� �!�'-�b�j�j��o�'>��',�\�':�����c�4�<�<��S�,�%O�P��e�h�j�I�I�K�u�%�I$�
#��Z (�=�"$�Q�R�&�!�R���"<�<�=��[$�
#�sU�O �B8O�	O �H5O�N,�!A%O�	O�#	O �,O�	O�O�O�
O�O c��/n/nUc[S5e[U[5(a
[5eUR	5 URU5n[R"U5(d,[R"SU[R"U55eURU5(d,[R"SU[R"U55eURU5upxUc*[R"SU[R"US95eURU5n	U	R S:wa,[R"SU[R"U55eUH�n
[R""U
5SnURU
5up�U
c)[R"X�[R"U
S95eURU
5nUR$n[R&"X+5n[(R+U
U
UUUUUS9nUR-U5 UR-U
U45 M� UR/XC5nUR0n[3U5(aSUlUR5U5 UR9U5 UsSSS5 $![6a	 UUlef=f!,(df   g=f)	a>Rename files.

to_dir must exist in the inventory.

If to_dir exists and is a directory, the files are moved into
it, keeping their old names.

Note that to_dir is only the last component of the new name;
this doesn't change the directory.

For each entry in from_paths the move mode will be determined
independently.

The first mode moves the file in the filesystem and updates the
inventory. The second mode only updates the inventory without
touching the file on the filesystem.

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

move uses the second mode if 'after == False' and the source is
versioned but no longer in the working tree, and the target is not
versioned but present in the working tree.

move uses the first mode if 'after == False' and the source is
versioned and present in the working tree, and the target is not
versioned and not present in the working tree.

Everything else results in an error.

This returns a list of (from_path, to_path) pairs for each
entry that is moved.
Nz"You must supply a target directoryr��r�r�r��from_rel�from_id�	from_tail�from_parent_id�to_rel�to_tail�to_parent_idT)�	TypeErrorrr�
ValueErrorr�rhrrgr
�BzrMoveFailedError�
NotADirectoryry�NotInWorkingDirectoryr~�NotVersionedErrorr�r�rUr�r|r2�_RenameEntryr��_determine_mv_moderAr�_mover�r�)r%�
from_paths�to_dir�after�rename_entries�
rename_tuples�to_abs�to_inv�	to_dir_id�	to_dir_ier�r�r�r��
from_entryr�r��rename_entry�original_modifieds                   r&�move�InventoryWorkingTree.move�s���D���
��>��@�A�A��j�#�&�&��,��
�
!�
!�
#��\�\�&�)�F��=�=��(�(��/�/���� 4� 4�V� <����$�$�V�,�,��/�/���� <� <�V� D���!%� 6� 6�v� >��F�� ��/�/���� 8� 8�f� E����(�(��3�I��~�~��,��/�/���� 4� 4�V� <���
'��#�-�-�h�7��;�	�$(�$:�$:�8�$D�!���?� �3�3� �&�*B�*B��*Q���&�/�/��8�
�!+�!5�!5�� �)�)�&�<��3�@�@�%�#�'�#1�!�%�!*� A� ���%�%�l�3��$�$�h��%7�8�+'�0"�4�4�^�K�N� $� ;� ;��
��z�?�?�26�D�/��
�
�>�*�
�!�!�&�)� �y$�
#��l!�
�.?��+��
��m$�
#�s%�HJ3�(J�J3�J0�0J3�3
Kc�<�UR5 /n[R"U5SnURU5upgUcxURnUR
R
5nURU5up�Uc)[R"X[R"US95eURU5n
O$URU5upkURU5n
U
Rn[ R"R%U5up�URU
5unn[&R)UUUUUUUS9nUR+U5 UR-XC5nUc)[R."X[R"U
S95e[1SUUUU
U5 UR3U5 UR5U5 SSS5 g![Ra4 U	RU5R5n
URU
5 GN*f=f!,(df   g=f)aRename 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 not
versioned but 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.
rNr�r�z[rename_one:
  from_id   {%s}
  from_rel: %r
  to_rel:   %r
  to_dir    %r
  to_dir_id {%s}
)r�rrUr~r5r6r�r
�BzrRenameFailedErrorr�r�r6�copyr��_unpack_file_idr�r�r��splitr2r�r�r�r�rr�r�)r%r�r�r�r�r�r�r�r��basis_from_invr��from_inv_idr�r�r�r�r�r�s                  r&�
rename_one�InventoryWorkingTree.rename_one4s��,�
!�
!�
#��N� �)�)�(�3�B�7�I� $� 6� 6�x� @��H��� �.�.��!�[�[�3�3�5�
�*4�*F�*F�x�*P�'���?� �5�5� �&�*B�*B��*Q���-�!)�!3�!3�G�!<�J�)-�(<�(<�W�(E�%��%�/�/��<�
�'�1�1�N� �g�g�m�m�F�3�O�F� $� 6� 6�v� >��F�I�/�<�<�!��#�-���&�=��L�
�!�!�,�/�"�4�4�^�K�N�� ��/�/��f�&>�&>�F�&K���

�%������
�
�J�J�~�&��!�!�&�)�E$�
#��&���-�!/�!9�!9�'�!B�!G�!G�!I�J��L�L��,�-��'$�
#�s2�BH
�)G�:C?H
�AH
�H
�	H
�
H
�
Hc�"�\rSrSrSSjrSrg)�!InventoryWorkingTree._RenameEntryi�c
�p�XlX lX0lX@lXPlX`lXplX�lX�lgr")	r�r�r�r�r�r�r��	change_id�only_change_inv)
r%r�r�r�r�r�r�r�r�r�s
          r&r'�*InventoryWorkingTree._RenameEntry.__init__�s4��%�M�"�L�&�N�"0�� �K�"�L� ,��&�N�#2� r))	r�r�r�r�r�r�r�r�r�N)FF)r*r+r,r-r'r/r0r)r&r�r��s��"��	3r)r�c
�&�URnUGHGnURnURnURnUR	U5nSn	Uc)[
R"XW[
R"US95eUbtSn
U(a;UR5nUR5 URU5 SSS5 U
(d)[
R"XW[
R"US95eU(aEURU5(d+[
R"UU[R "USS95eSn	GOURU5(dURU5(aSn	O�URU5(aURU5(dSn	O�UR"(d;UR%5UR%5:XaURU5(aSn	OmURU5(dAURU5(d+[
R&"UU[
R("XW4S95e[
R*"XW5eX�lGMJ U$![
Ra
 SUlSn
GN�f=f!,(df   GN�=f)z�Determines for each from-to pair if both inventory and working tree
or only the inventory has to be changed.

Also does basic plausability tests.
FNr�Tz!New file has not been created yet)r��extra)�paths)r5r�r�r�r�r
r�r�r�r�rr6r��AlreadyVersionedErrorryrOrPrN�lowerr��PathsDoNotExist�RenameFailedFilesExistr�)r%r�r�rGr�r�r�r��to_idr��allowed�basiss            r&r��'InventoryWorkingTree._determine_mv_mode�sA���!�!��*�L�#�,�,�H�"�*�*�G�!�(�(�F��K�K��'�E�#�O����/�/��f�&>�&>�H�&M���� ���� �O�O�-�E����*�+�!�M�M�%�0�+�� �3�3� �&�*F�*F�F�*S�����(�(��0�0� �3�3� ��&�1�1�!'�/R����#'���&�&�x�0�0�T�5F�5F�v�5N�5N�"&���"�"�8�,�,�T�5F�5F�v�5N�5N�"'���'�'��N�N�$�����6��%�%�h�/�/�"'���(�(��2�2�4�;L�;L�V�;T�;T� �5�5� ���.�.�h�5G�H���!�7�7��I�I�+:�(�{+�|���S &���+�59�L�2�&*�G�+��+�*�s*�"J�$I�I>�:J�=I>�>J�
J	c��/nUH&nURU5 URU5 M( g![a URU5 ef=f)z�Moves a list of files.

Depending on the value of the flag 'only_change_inv', the
file will be moved on the file system or not.
N)�_move_entryr��_rollback_mover�)r%r��movedr�s    r&r��InventoryWorkingTree._move�sV����#�E�
�� � ��'�
�L�L���
$��!�
��#�#�E�*��
�s	�0�A
c
��UH�nUR[R"URURUR
URURURURUR55 M� g![Ra-n[R"SSSRU55UeSnAff=f)z?Try to rollback a previous move in case of an filesystem error.r�zyRollback failed. The working tree is in an inconsistent state. Please consider doing a 'bzr revert'. Error message is: {}N)r�rr�r�r�r�r�r�r�r�r�r
r�r�)r%r�r�r%s    r&r��#InventoryWorkingTree._rollback_move�s����E�
�� � ��,�,�����
�
��
�
��*�*��������,�,��-�-�	�����,�,�
��/�/���,�-3�F�1�I�
����
�s�A<B�C	�(C�C	c��URnURUR5nURUR5nX4:Xa,[R
"URURS5eUR(d[R"X45 UR(a,URUR5nURU5 URURURUR5 g![a4n[R
"URURUS5eSnAff=f)Nz Source and target are identical.r)r5rhr�r�r
r�r�rr�r�r�r�rhr�r�r�)r%r�rG�from_rel_abs�
to_rel_absr%r�s       r&r�� InventoryWorkingTree._move_entrys����!�!���|�|�E�N�N�3���\�\�%�,�,�/�
��%��+�+�������.P��
��$�$�
T����|�8��?�?��K�K����-�E��#�#�E�*��
�
�5�=�=�%�"4�"4�e�m�m�D���
T��/�/�������a�PQ�d�S�S��
T�s�D�
E	�/E�E	c���UR5 [5nUHHnURRU5nUc[R
"X05eUR
U5 MJ UH@nURRU5(dM%URRU5 MB [U5(aURUR5 SSS5 g!,(df   g=f)z�Remove the paths in paths from the current versioned set.

When a path is unversioned, all of its children are automatically
unversioned.

:param paths: The paths to stop versioning.
:raises NoSuchFile: if any path is not currently versioned.
N)r�rrBr�rOrPr��has_idrhrr�)r%r��file_idsr�r�s     r&�	unversion�InventoryWorkingTree.unversion+s����
!�
!�
#��u�H����/�/�1�1�$�7���?�(�3�3�D�?�?����W�%�	�
$���?�?�)�)�'�2�2��O�O�7�7��@�$��8�}�}��%�%�d�o�o�6�'$�
#�
#�s�A<C$�A
C$�$
C2c�8�URU5R$)zSee Tree.stored_kind.)r�r�r�s  r&�stored_kind� InventoryWorkingTree.stored_kindIs���}�}�T�"�'�'�'r)c#��# �UR5GHNupURS:waMURU5n[R"U5(dMF/n[
R"[
R"U55H�n[
R"U5nURRU5(aM;XRR;dML[R"U5upgXe:wa+U(a$XbR;aURU5 M�M�URU5 M� UR5 UHn[R"X5nUv� M GMQ g7f)adYield all unversioned files in this WorkingTree.

If there are any unversioned directories then only the directory is
returned, not all its children.  But if there are unversioned files
under a versioned subdirectory, they are returned.

Currently returned depth-first, sorted by name within directories.
This is the same order used by 'osutils.walkdirs'.
r�N)r�r�rhrrgr�r�fsencode�fsdecoderJ�is_control_filenamer@r�r�rr|)	r%r��	dir_entry�dirabs�fl�subf�	subf_normr��subps	         r&�extras�InventoryWorkingTree.extrasMs
��� $�7�7�9�O�D��~�~��,���\�\�$�'�F��=�=��(�(���B��
�
�2�;�;�v�#6�7���{�{�4�(���?�?�6�6�t�<�<���1�1�1�.5�.I�.I�$�.O�+�Y� �(�Z�$�,>�,>�>��I�I�i�0�?��	�	�$��8�
�G�G�I����'�'��3���
��1 :�s
�CE'�BE'c#��# �URU5nURS5(aUSSn[U5S-nURU5n[R
"X!5n[
U5nSn[
U5n	Sn
U
(aU(Gd�U(aUuup�n
OSuup�n
U(dYX�SS	:XaQ[U
5S
:�aB[U
S5nU[U
5:a'URR!X�S
5(aX�	U
(aSnO!U(aSnOU	S
S
U:�U	S
S
U:-
nUS
:�a9U
VVVVVs/sHunnnnnUUUUS4PM nnnnnnUU4v� [
U5nGO�US
:aEU	SVVVVVVs/sHunnnnnnUUSSU4PM nnnnnnnU	S
S
U4v� [
U5n	GOJ/n["R$"['U	SU
-[(R*"S
5S
9[(R*"S55H�unn[-U5n[U5S:Xa,UunnUR/US
USUSUSUS45 ML[US
5S:Xa0UR/US
S
US
SUS
SUS
SS45 M�[US
5S:Xa*UR/US
S
US
SSSUS
S45 M�[1S5e U	S
S
U4v� [
U5n	[
U5nU
(dGMU(dGM�gg![aVnUR[R:Xd)[RS:XaUR[:XdeSnSnSnAGNSnAff=f![a Sn	Sn
GNf=fs snnnnnf![a SnN�f=fs snnnnnnf![a Sn
N�f=f![a Sn
N�f=f![a SnN�f=f7f)a�Walk the directories of this tree.

returns a generator which yields items in the form:
        (current_directory_path,
         [(file1_path, file1_name, file1_kind, (lstat),
           file1_kind), ... ])

This API returns a generator, which is only valid during the current
tree transaction - within a single lock_read or lock_write duration.

If the tree is not locked, it may cause an error to be raised,
depending on the tree implementation.
rxNrrF�win32T)�NNNr�r)�.bzrr��unknownr\rr��zunreachable code)rh�endswithr�	_walkdirsrr�rhr�r�r�r�platform�ERROR_PATH_NOT_FOUNDrjrrJr��	itertools�groupbyr_�operator�
itemgetterrr��NotImplementedError)r%�prefix�disk_top�
top_strip_len�inventory_iterator�
disk_iterator�current_disk�
disk_finishedr%�current_inv�inv_finished�cur_disk_dir_relpath�cur_disk_dir_path_from_top�cur_disk_dir_content�
bzrdir_loc�	directionrdr�r�rL�top_path�dirblock�dkind�fileid�_relpath�subiterator�
path_elements�inv_row�disk_rows                             r&r��InventoryWorkingTree.walkdirsts�����<�<��'�����S�!�!����}�H��H�
��)�
�!�^�^�F�3���(�(��:�
�
	!��
�.�L�!�M�	 ��1�2�K� �L��m��!��F�)�(�)��F�)�(� �/�~�>�"�D��0�1�A�5�
"-�-A�CS�!T�J�!�C�,�%���/�/�=�=�,�8��;���1�<���	���	�(��^�A�.�1E�E���N�1�%�(<�<��	��1�}�DX��CW�?���4��x��h��d�D�9�CW���+�H�4�4�)�#'�
�#6�L��Q��IT�TU����HV�D���5�$����h�	�4��>�HV���"�!�n�Q�'��1�1�(�"&�'9�":�K���-6�->�->��#�A��)=�=�$�/�/��2���'�'��*�.�)�H�k�%)��$5�M��=�)�Q�.�,9�)��� ��� '��
� '��
� (��� (��� '��
����]�1�-�.�!�3� ��� -�a� 0�� 3� -�a� 0�� 3� -�a� 0�� 3� -�a� 0�� 3� $����]�1�-�.�!�3� ��� -�a� 0�� 3� -�a� 0�� 3� )� $� -�a� 0�� 3���2�2D�E�E�W.�X"�!�n�Q�'��1�1�(�"&�'9�":�K�)�#'�
�#6�L�g�,�m�m���	!����5�<�<�'��L�L�G�+����;O�0O���L� �M��	!���	 ��K��L�	 ��X��%�)�$(�M�)����%�(�#'�L�(��j%�(�#'�L�(��%�)�$(�M�)�s��A"O-�%
L�3
M=�B>O-�>N�O-�"N�-O-�N-�O-�-N7�8D4O-�-O	�9O�O-�O-�O-�
M:�$AM5�/O-�5M:�:O-�=N�O-�N�O-�N*�'O-�)N*�*
O-�7O�O-�O�O-�	O�O-�O�O-�O*�'O-�)O*�*O-c	#�6# �SnURU5up4Uc/nO	USUSUS4/nU(a�/nUR5nUSnUS(a	USS-nOSnURU5n	U	RS:XaPU	R	5H<up�URX�-U
URSURUR45 M> USU	R4U4v� [U5HnUSU:XdMURU5 M! U(aM�gg7f)aWalk the directories of this tree.

:param prefix: is used as the directrory to start with.
:returns: a generator which yields items in the form::

    ((curren_directory_path, fileid),
     [(file1_path, file1_name, file1_kind, None, file1_id,
       file1_kind), ... ])
r�Nr��rrxr)r~r�r�r��sorted_childrenr�r��reversed)
r%r�
_directoryrG�top_id�pendingr�
currentdir�relrootr�r��child�dirs
             r&r��InventoryWorkingTree._walkdirss���!�
��,�,�V�4����>��G���J��f�d�C�D�G���H� ����J���]�F��!�}�$�Q�-�#�-�����M�M�&�)�E��z�z�[�(�#(�#8�#8�#:�K�D��O�O�#�N� �!�J�J� �!�M�M�!�J�J�
�	�$;��a�=�%�-�-�0�(�:�:���)���q�6�Z�'��N�N�3�'�*�3�g�s�C3D�9D�Dc��UR5 URRU5 URR	SURR55 SSS5 g!,(df   g=f)z�Update the feature flags for this branch.

:param updated_flags: Dictionary mapping feature names to necessities
    A necessity can be None to indicate the feature should be removed
r�N)r�r9�_update_feature_flags�control_transport�	put_bytes�	as_string)r%�
updated_flagss  r&�update_feature_flags�)InventoryWorkingTree.update_feature_flags>sO���_�_�
��L�L�.�.�}�=��"�"�,�,�X�t�|�|�7M�7M�7O�P��
�
�s�AA*�*
A8c#�z# �[5nUGH&upVURU;a-URS:XaURUR5 MCURS:XafURU5(aP[RURURUR5nURUR5 URS:XaXU(aQURU5nURX#S9H*up�U(a[R"XX5n	OUn	X�4v� M, GM!XV4v� GM) g7f)z/See if directories have become tree-references.r�r��r�r�N)
rr�r�r�r�r]rorr�r&r�rr|)
r%�iteratorr�r��blocked_parent_idsr�r�r��subpath�full_subpaths
          r&�_check_for_tree_references�/InventoryWorkingTree._check_for_tree_referencesHs��� �U�� �H�D��|�|�1�1��7�7�k�)�&�*�*�2�:�:�6���w�w�+�%�$�*K�*K�D�*Q�*Q��,�,�R�Z�Z����"�,�,�O��"�&�&�r�z�z�2��w�w�*�*�~��.�.�t�4��#*�#>�#>�#1�$?�$�K�G��'.�'7�'7��'F��'+��&�*�*�$��h��/!�s�D9D;c�t>�[[U]XS9nUR5(dU$UR	X2US9$)zSee Tree.iter_entries_by_dir().)r�r�r4)r=rr�r[r9)r%r�r�r5rDs    �r&r��(InventoryWorkingTree.iter_entries_by_dirdsR�����d�?�)�@�
���+�+�-�-��O��2�2���3��
r)c#�X^# �UR5 UR(dSnO![RS:XaSSKmU4SjnOSnUH?nUbURU5(aUR
S5v� M1[XU5v� MA SSS5 g!,(df   g=f7f)aLook up canonical paths for multiple items.

:param paths: A sequence of paths relative to the root of the tree.
:return: A iterator over paths, with each item the corresponding input
    path adjusted to account for existing elements that match case
    insensitively.
c�"�UR5$r")r�)�xs r&�	normalize�;InventoryWorkingTree.get_canonical_paths.<locals>.normalize}s���7�7�9�$r)�darwinrNc�(>�TRSU5$)N�NFC)r@)r?�unicodedatas �r&r@rA�s���&�0�0���:�:r)rx)r�rNrrrEr��stripr)r%r�r@r�rEs    @r&�get_canonical_paths�(InventoryWorkingTree.get_canonical_pathsrs������^�^�
��&�&�%�����)�"�;�!�	����$��(9�(9�$�(?�(?��*�*�S�/�)�,�T��C�C�	��
�
�s�B*�A<B�	B*�
B'�#B*c�h�URU5nUcgURRU5S$)Nr)r�r6�get_reference_info)r%r�r6r�s    r&rJ�'InventoryWorkingTree.get_reference_info�s2���,�,�t�$���?���{�{�-�-�g�6�q�9�9r)c��URU5nUc[R"U5eURR	X2U5 gr")r�rOrPr6�set_reference_info)r%�	tree_path�branch_locationr�s    r&rM�'InventoryWorkingTree.set_reference_info�s:���,�,�y�)���?� �+�+�I�6�6����&�&�w��Kr)c�T�URRURU5XS9$)N)�possible_transports)r6�reference_parentr�)r%r�r6rRs    r&rS�%InventoryWorkingTree.reference_parent�s,���{�{�+�+��L�L����,�
�	
r)c� �UR5 [UR55S:�a
SSS5 gUcUR5nUR	U5nUR5(a1[
U5nURS:Xa[
U5nSSS5 g[SU5n[
[U55 SSS5 g![a SSS5 gf=f![a SSS5 gf=f!,(df   g=f)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
rNTr�Fc�6�USSS:g=(a USS:g$)Nr�rr�r r�r0)r�s r&�<lambda>�2InventoryWorkingTree.has_changes.<locals>.<lambda>�s"��a��d�1�g��2�K�q��t�|�7K�Kr))r�rr�r�r�supports_symlinksrhr�rj�filter�iter)r%�
_from_tree�changesrs    r&�has_changes� InventoryWorkingTree.has_changes�s���^�^�
��4�&�&�(�)�A�-���
��!�!�_�_�.�
��'�'�
�3�G��%�%�'�'�!�!�'�]�F��'�'�<�7�!%�g�����
�8!�K�W���!���g��'��G�
��%�!� �#�
�!��$%�!� �E�
�B!��C�
�sX�C?�9C?�3&C�#
C?�1C'�C?�
C$�C?�#C$�$C?�'
C<�1C?�;C<�<C?�?
D
c�n�URR5bUR5 X@RLnOUR	5 SnU(aURRU5nOX@RLaSnUR
XAX55UR5 $!UR5 f=f)a"Update a working tree along its branch.

This will update the branch if its bound too, which means we have
multiple trees involved:

- The new basis tree of the master.
- The old basis tree of the branch.
- The old basis tree of the working tree.
- The current working tree state.

Pathologically, all three may be different, and non-ancestors of each
other.  Conceptually we want to:

- Preserve the wt.basis->wt.state changes
- Transform the wt.basis to the new master basis.
- Apply a merge of the old branch basis to get any 'local' changes from
  it into the tree.
- Restore the wt.basis->wt.state changes.

There isn't a single operation at the moment to do that, so we:

- Merge current state -> basis tree of the master w.r.t. the old tree
  basis.
- Do a 'normal' merge of the old branch basis if it is relevant.

:param revision: The target revision to update to. Must be in the
    revision history.
:param old_tip: If branch.update() has already been run, the value it
    returned (old tip of the branch or None). _marker is used
    otherwise.
NF)r6�get_bound_locationr��_markerr�r^�_update_treer�)r%�change_reporterrRr�old_tip�	show_base�
update_branchs       r&r^�InventoryWorkingTree.update�s���N�;�;�)�)�+�7��O�O��#�|�|�3�M�� � �"�!�M�	���+�+�,�,�-@�A���l�l�*�"�G��$�$�W�x�S��K�K�M��D�K�K�M�s
�
AB"�"B4c
���UR5 /nUR5SnUcUR
R
5nU=(d [Rn[R"U5(d�X:wa�UR5nUR
RRU5n[RUR
UUUUUS9nU(a&URX45 [U5sSSS5 $Xc:wGaUR
RRU5n	U	RS5n
UR5nUR!5 URS5bURS5U
:wa!UR#U
5 UR%5 SSS5 UR
RR'5nUR)UR
R
5U5n
UR
RRU
5n[RUR
U	UUUUS9nUR+U5 X94/nUR5SSnUH9nUR-UUR
RRU545 M; [R"U5(d5UR-XR
RRU545 UR/U5 USSn[U5sSSS5 $![a [RnGNf=f!,(df   GN�=f!,(df   g=f)z�Update a tree to the master branch.

:param old_tip: if supplied, the previous tip revision the branch,
    before it was changed to the master branch's tip.
rN)�	this_treerdrfr�r)r�r��
IndexErrorr.r2r6r��is_nullr�rZr��merge�merge_inner�add_parent_treerr�r��set_root_idr��	get_graph�find_unique_lcar�r�r>)r%rerdrrf�nb_conflicts�last_rev�	base_treerM�to_tree�
to_root_idr�r�base_rev_id�parent_trees�mergesr�s                 r&rc�!InventoryWorkingTree._update_trees���$�
!�
!�
#��L�
7��.�.�0��3�����;�;�4�4�6���<��!<�!<�G� �(�(��1�1�g�6I�!�O�O�-�	�!�[�[�3�3�A�A�'�J�
�$�0�0��K�K���"�$3�'�
 1� �� ��(�(�'�)>�?��|�,�5$�
#�8�#��+�+�0�0�>�>�x�H��$�_�_�R�0�
����)���_�_�&��}�}�R�(�0�E�M�M�"�4E��4S��(�(��4��
�
��'����.�.�8�8�:��#�3�3��K�K�-�-�/����!�K�K�2�2�@�@��M�	�$�0�0��K�K���"�$3�'�
 1� ���&�&�x�0�"*� 3�4���,�,�.�q�r�2��%�F� �'�'�����!7�!7�!E�!E�f�!M�N��%�%�,�,�W�5�5� �'�'� �+�+�"8�"8�"F�"F�w�"O�P���%�%�l�3�'��?�1�-���|�$�W$�
#���
7�(�6�6��
7��>'�&��G$�
#�sO�M�L(�CM�AM�A	M	�'E7M�(M�M�M�M�	
M	�M�
M))r>r]r�rtrBrArN)�.NNNFNNr")FNTF)Frb)r�r�)NNNF)fr*r+r,r-�__doc__r'rCr?rVr@r^r\rqrvryr|r�r�r�r�r�r�r�r�r�r�r�r�r�rr&r*r>r4r�r6rYrdrRrr�r�rr�r�r�r�r�r�r�r�r�r�r�r�r�r�file_kind_from_stat_moder�r�r�r�r�r�r�r�r�r.�CURRENT_REVISIONrrUr/r<rQrtr�r�r�r�r�r�r�r�r�r�r�r�r�r1r9r�rGrJrMrSr^�objectrbr^rcr/�
__classcell__)rDs@r&r2r2jsK�����������$9�L,�(�3�
X��J�T�:�	!�/�/��"
�
�>��'�2S�1�Q� %�3�3�4|2�|1�*�9�<�6'�F�
V�
� �"�$(�$�
4� D�
�$G�A�:��
!�	�.� ,���8�8�W�-M�-M�,�8R��@�D�W�3� �=�*4A�3Q�3Q�5�n
�	S�#!�J(2�T1�hQV�K �Zg!�RX*�t3�3�.G�R � �4E�&7�<(�%�NZ)�x,(�\Q��8�D�4:�L�
�
+�Z�h�G�� ����
5�pLQ�]%�]%r)r2c�N�\rSrSrSrSrSr\S5r\S5r	S
Sjr
S	rg)�WorkingTreeFormatMetaDiricz?Base class for working trees that live in bzr meta directories.z
.bzrignorec�n�[R"U5 [RRU5 gr")rr'r	�	BzrFormatr_s r&r'�!WorkingTreeFormatMetaDir.__init__hs$���"�"�4�(����!�!�$�'r)c��URS5nURS5$![Ra [R
"WRS9ef=f)z=Return format name for the working tree object in controldir.Nr�)re)rKr�rOrPr
�
NoWorkingTreere)�klassrJr
s   r&�find_format_string�+WorkingTreeFormatMetaDir.find_format_stringlsR��	<�"�<�<�T�B�I��&�&�x�0�0���(�(�	<��&�&�I�N�N�;�;�	<�s	�!$�3Ac�R�URU5nUR[SU5$)z<Return the format for the working tree object in controldir.zworking tree)r��_find_formatr)r�rJ�
format_strings   r&�find_format�$WorkingTreeFormatMetaDir.find_formatus)���0�0��<�
��!�!�/�>�=�Q�Qr)Nc�r�[R"UUUUS9 [RRUUUUS9 g)N)�allow_unsupported�recommend_upgrader5)r�check_support_statusr	r�)r%r�r�r5s    r&r��-WorkingTreeFormatMetaDir.check_support_status{sE��	�.�.��/�/��		
�	���-�-��/�/��		.�	
r)r0)TN)r*r+r,r-r}rzr'�classmethodr�r�r�r/r0r)r&r�r�csE��I�"�O�(��<��<��R��R�BF�
r)r�)3r}r�rrr�rLr�bisectr�collectionsr�iorr�rr	�globalsr
rrr.r
rO�lockr�tracerrr$rrrrrrr�workingtreerrr�
inventorytreerrr.rWr�InternalBzrErrorrr2r�r�r0r)r&�<module>r�s���"
�
���	��
����������I���.�(�*�$� ����J�I�F�=��2������/�/��v%�;�(<�v%�r?&
�v�/�/�1B�&
r)

Youez - 2016 - github.com/yon3zu
LinuXploit