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

p��g���~�SrSSKJrJr SSKJr SSKJr SSKJ	r	 "SS\5r
\"S	5r"S
S\\5rg)
zInter-object utility class.�)�Generic�TypeVar�)�BzrError)�LogicalLockResult)�get_named_objectc��\rSrSrSrSrSrg)�NoCompatibleInter�zLNo compatible object available for operations from %(source)r to %(target)r.c��XlX lg�N��source�target��selfrrs   �./usr/lib/python3/dist-packages/breezy/inter.py�__init__�NoCompatibleInter.__init__s������rN)�__name__�
__module__�__qualname__�__firstlineno__�_fmtr�__static_attributes__�rrr
r
s��V�	�rr
�Tc���\rSrSr%Sr\\S'\\S'\\S\S'S\S\4Sjr	Sr
\S\S\4S	j5r\S
5r
\S5rSrS
r\S5r\S5rSr\S5rSrg)�InterObject�'a$This class represents operations taking place between two objects.

Its instances have methods like join or copy_content or fetch, and contain
references to the source and target objects these operations can be
carried out between.

Often we will provide convenience methods on the objects which carry out
operations with another of similar type - they will always forward to
a subclass of InterObject - i.e.
InterVersionedFile.get(other).method_name(parameters).

If the source and target objects implement the locking protocol -
lock_read, lock_write, unlock, then the InterObject's lock_read,
lock_write and unlock methods may be used.

When looking for an inter, the most recently registered types are tested
first.  So typically the most generic and slowest InterObjects should be
registered first.
rrzInterObject[T]�_optimisersc��XlX lg)amConstruct a default InterObject instance. Please use 'get'.

Only subclasses of InterObject should call
InterObject.__init__ - clients should call InterFOO.get where FOO
is the base type of the objects they are interacting between. I.e.
InterVersionedFile or InterRepository.
get() is a convenience class method which will create an optimised
InterFOO if possible.
Nrrs   rr�InterObject.__init__Ds�����rc�t�U"5 U"5 g![a URR5 ef=f)z@Take out two locks, rolling back the first if the second throws.N)�	Exceptionr�unlock)r�lock_source�lock_targets   r�_double_lock�InterObject._double_lockQs5���
�	��M���	�
�K�K��� ��		�s��&7c��[[UR55H[up4[U[5(a![USUS5nX@RU*'UR
X5(dMSU"X5s $ [X5e)a]Retrieve a Inter worker object for these objects.

:param source: the object to be the 'source' member of
               the InterObject instance.
:param target: the object to be the 'target' member of
               the InterObject instance.

If an optimised worker exists it will be used otherwise
a default Inter worker instance will be created.
rr)�	enumerate�reversedr"�
isinstance�tupler�
is_compatibler
)�klassrr�i�providers     r�get�InterObject.get]s{��%�X�e�.?�.?�%@�A�K�A��(�E�*�*�+�H�Q�K��!��E��(0�!�!�1�"�%��%�%�f�5�5���/�/�B� ��/�/rc�,�[UR5er
)�NotImplementedErrorr1)�clsrrs   rr1�InterObject.is_compatibleqs��!�#�"3�"3�4�4rc#�# �URH2n[U[5(a[USUS5v� M.Uv� M4 g7f)Nrr)r"r/r0r)r2r4s  r�iter_optimisers�InterObject.iter_optimisersus<����)�)�H��(�E�*�*�&�x��{�H�Q�K�@�@���	*�s�AAc��URURRURR5 [	UR
5$)z�Take out a logical read lock.

This will lock the source branch and the target branch. The source gets
a read lock and the target a read lock.
)r*r�	lock_readrrr'�rs rr?�InterObject.lock_read}s7��	
���$�+�+�/�/����1F�1F�G� ����-�-rc��URURRURR5 [UR5$)z�Take out a logical write lock.

This will lock the source branch and the target branch. The source gets
a read lock and the target a write lock.
)r*rr?r�
lock_writerr'r@s rrC�InterObject.lock_write�s7��	
���$�+�+�/�/����1G�1G�H� ����-�-rc�:�URRU5 g)z"Register an InterObject optimiser.N�r"�append�r2�	optimisers  r�register_optimiser�InterObject.register_optimiser����	��� � ��+rc�<�URRX45 gr
rF)r2�module_name�member_names   r�register_lazy_optimiser�#InterObject.register_lazy_optimiser�s��	��� � �+�!;�<rc��URR5 URR5 g!URR5 f=f)z'Release the locks on source and target.N)rr'rr@s rr'�InterObject.unlock�s8��	!��K�K��� ��K�K��� ��D�K�K��� �s	�7�Ac�:�URRU5 g)z$Unregister an InterObject optimiser.N)r"�removerHs  r�unregister_optimiser� InterObject.unregister_optimiser�rLrrN)rrrr�__doc__r�__annotations__�list�typerr*�classmethodr5r1r<r?rCrJrPr'rVrrrrr r 's����(
�I�
�I��d�+�,�-�-�
�q��!��	��0�1�0�a�0��0�&�5��5�����.�.��,��,��=��=�!��,��,rr N)
rX�typingrr�errorsr�lockr�pyutilsrr
rr rrr�<module>ras?��""�#��#�%�����C�L��|,�'�!�*�|,r

Youez - 2016 - github.com/yon3zu
LinuXploit