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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

p��g,���SrSSKrSSKJr SSKJrJr SSKJr "SS5r	"S	S
\	5r
"SS\
5r"S
S\	5rg)a�This module provides a transactional facility.

Transactions provide hooks to allow data objects (i.e. inventory weaves or
the revision-history file) to be placed in a registry and retrieved later
during the same transaction. Transactions in bzr are not atomic - they
depend on data ordering of writes, so we do not have commit or rollback
facilities at the transaction level.

Read only transactions raise an assert when objects are listed as dirty
against them - preventing unintended writes.

Write transactions preserve dirty objects in the cache, though due to the
write ordering approach we use for consistency 'dirty' is a misleading term.
A dirty object is one we have modified.

Both read and write transactions *may* flush unchanged objects out of
memory, unless they are marked as 'precious' which indicates that
repeated reads cannot be obtained if the object is ejected, or that
the object is an expensive one for obtaining.
�N�)�errors)�IdentityMap�NullIdentityMap)�mutterc�&�\rSrSrSrS\4SjrSrg)�Transaction�.zBase class for transactions.�returnc�,�[UR5e�N)�NotImplementedError�	writeable��selfs �5/usr/lib/python3/dist-packages/breezy/transactions.pyr�Transaction.writeable1s��!�$�.�.�1�1��N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�boolr�__static_attributes__rrrr	r	.s��&�2�4�2rr	c�Z^�\rSrSrSrSrU4SjrSrSSjrSr	Sr
S	rS
rSr
U=r$)
�ReadOnlyTransaction�5z*A read only unit of work for data objects.c��g)�Clean up this transaction.Nrrs r�finish�ReadOnlyTransaction.finish8��rc�>�[TU]5 [5Ul[	5Ul/UlSUl[	5Ulg)N���)	�super�__init__r�map�set�_clean_objects�_clean_queue�_limit�_precious_objects�r�	__class__s �rr(�ReadOnlyTransaction.__init__;s:���
�����=���!�e���������!$���rc��XR;$)z"Return True if an_object is clean.)r+�r�	an_objects  r�is_clean�ReadOnlyTransaction.is_cleanC����/�/�/�/rc���URRU5 URRU5 U(aURRU5 UR5 g)z�Register an_object as being clean.

If the precious hint is True, the object will not
be ejected from the object identity map ever.
N)r+�addr,�appendr.�_trim�rr4�preciouss   r�register_clean�"ReadOnlyTransaction.register_cleanGsL��	
�����	�*���� � ��+���"�"�&�&�y�1��
�
�rc�.�[R"U5e)z"Register an_object as being dirty.)r�ReadOnlyObjectDirtiedErrorr3s  r�register_dirty�"ReadOnlyTransaction.register_dirtySs���/�/�	�:�:rc�R�US:a[U5eXlUR5 g)zSet a new cache size.r&N)�
ValueErrorr-r;)r�sizes  r�set_cache_size�"ReadOnlyTransaction.set_cache_sizeWs"���"�9��T�"�"����
�
�rc���URS:d&UR[UR5-
S:�ag[UR5UR-
nSnU(GaU[UR5:a�[RS:�aSnOSn[R
"URU5U::a�URUUR;adURUnURRU5 URU	URRU5 [SU5 US-nOUS-
nU(aU[UR5:aM�gggg)zTrim the cache back if needed.rN)����zremoved object %rr)r-�lenr+�sys�version_info�getrefcountr,r.�remover)�
remove_objectr)r�needed�offset�
ref_threshold�removeds     rr;�ReadOnlyTransaction._trim^s.���;�;��?�d�k�k�C��0C�0C�,D�D�q�H���T�(�(�)�D�K�K�7������#�d�&9�&9�":�:����7�*� !�
�!"�
����� 1� 1�&� 9�:�m�K��%�%�f�-�T�5K�5K�K��+�+�F�3���#�#�*�*�7�3��%�%�f�-����&�&�w�/��*�G�4��!����!���1��#�d�&9�&9�":�:�f�:�frc��g)z+Read only transactions do not allow writes.Frrs rr�ReadOnlyTransaction.writeable~s��r)r+r,r-r.r)�F)rrrrrr"r(r5r>rBrGr;rr�
__classcell__�r0s@rrr5s4���4�)�'�0�
�;���@�rrc�D^�\rSrSrSrSrU4SjrSrSrSr	Sr
U=r$)	�WriteTransaction�zzA write transaction.

- caches domain objects
- clean objects can be removed from the cache
- dirty objects are retained.
c�\�URHn[USS5nUcMU"5 M g�r!�transaction_finishedN��_dirty_objects�getattr�r�thing�callbacks   rr"�WriteTransaction.finish��,���(�(�E��u�&<�d�C�H��#��
�)rc�@>�[TU]5 [5Ulgr
)r'r(r*rer/s �rr(�WriteTransaction.__init__�s���
����!�e��rc��XR;$)z"Return True if an_object is dirty.�rer3s  r�is_dirty�WriteTransaction.is_dirty�r7rc��URRU5 URU5(aAURR	U5 UR
UR
R
U5	UR5 g)z�Register an_object as being dirty.

Dirty objects are not ejected from the identity map
until the transaction finishes and get informed
when the transaction finishes.
N)rer9r5r+rRr,�indexr;r3s  rrB�WriteTransaction.register_dirty�sc��	
�����	�*��=�=��#�#����&�&�y�1��!�!�$�"3�"3�"9�"9�)�"D�E��
�
�rc��g)z Write transactions allow writes.Trrs rr�WriteTransaction.writeable����rro)rrrrrr"r(rprBrrr\r]s@rr_r_�s&�����$�0���rr_c�N^�\rSrSrSrSrU4SjrS
SjrSrSr	Sr
S	rU=r$)�PassThroughTransaction�z]A pass through transaction.

- nothing is cached.
- nothing ever gets into the identity map.
c�\�URHn[USS5nUcMU"5 M grbrdrgs   rr"�PassThroughTransaction.finish�rkrc�^>�[TU]5 [5Ul[	5Ulgr
)r'r(rr)r*rer/s �rr(�PassThroughTransaction.__init__�s"���
����"�$���!�e��rc��g)znRegister an_object as being clean.

Note that precious is only a hint, and PassThroughTransaction
ignores it.
Nrr<s   rr>�%PassThroughTransaction.register_clean�r$rc�:�URRU5 g)z^Register an_object as being dirty.

Dirty objects get informed
when the transaction finishes.
N)rer9r3s  rrB�%PassThroughTransaction.register_dirty�s��	
�����	�*rc��g)z#Do nothing, we are passing through.Nr)r�ignoreds  rrG�%PassThroughTransaction.set_cache_size�r$rc��g)z'Pass through transactions allow writes.Trrs rr� PassThroughTransaction.writeable�rwr)rer)r[)
rrrrrr"r(r>rBrGrrr\r]s@rryry�s+�����$�
�+�2��rry)
rrO�r�identitymaprr�tracerr	rr_ryrrr�<module>r�sK��$�*��5��2�2�K�+�K�\&�*�&�R'�[�'r

Youez - 2016 - github.com/yon3zu
LinuXploit