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

p��g�f���SSKrSSKrSSKJr \"\"5S5 SSKJrJrJr SSKJr	 SSK
Jr SSK
Jr
 SS	KJr SS
KJr SSKJrJr SSKJrJrJr S
SKJrJr S
SKJr S
SKJrJrJ r  "SS\RB5r""SS\"5r#"SS\ 5r$"SS5r%"SS\%5r&"SS\&5r'"SS\%5r("SS 5r)"S!S"5r*"S#S$5r+"S%S&\5r,"S'S(\5r-"S)S*\"5r."S+S,5r/g)-�N�)�lazy_importz�
import contextlib
import time

from breezy import (
    config,
    debug,
    graph,
    osutils,
    transactions,
    ui,
    )
from breezy.bzr import (
    pack,
    )
from breezy.bzr.index import (
    CombinedGraphIndex,
    )
)�errors�lockable_files�lockdir)�	transport)�btree_index)�index)�only_raises)�LogicalLockResult)�RepositoryWriteLockResult�
_LazyListJoin)�mutter�note�warning�)�MetaDirRepository�RepositoryFormatMetaDir)�
Serializer)�MetaDirVersionedFileRepository�$MetaDirVersionedFileRepositoryFormat�VersionedFileCommitBuilderc�&�\rSrSrSrSrSrSrSrg)�RetryWithNewPacks�=z�Raised when we realize that the packs on disk have changed.

This is meant as more of a signaling exception, to trap between where a
local error occurred and the code that can actually handle the error and
code that can retry appropriately.
TzNPack files have changed, reload and retry. context: %(context)s %(orig_error)sc�z�[RRU5 XlX lX0lUSUlg)a
Create a new RetryWithNewPacks error.

:param reload_occurred: Set to True if we know that the packs have
    already been reloaded, and we are failing because of an in-memory
    cache miss. If set to True then we will ignore if a reload says
    nothing has changed, because we assume it has already reloaded. If
    False, then a reload with nothing changed will force an error.
:param exc_info: The original exception traceback, so if there is a
    problem we can raise the original error (value from sys.exc_info())
rN)r�BzrError�__init__�context�reload_occurred�exc_info�
orig_error)�selfrr r!s    �6/usr/lib/python3/dist-packages/breezy/bzr/pack_repo.pyr�RetryWithNewPacks.__init__Ks1��	��� � ��&���.�� �
�"�1�+���)rr!r"r N)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__�internal_error�_fmtr�__static_attributes__�r&r$rr=s����N�	Y�	�&r&rc� �\rSrSrSrSrSrSrg)�
RetryAutopack�`z�Raised when we are autopacking and we find a missing file.

Meant as a signaling exception, to tell the autopack code it should try
again.
Tz[Pack files have changed, reload and try autopack again. context: %(context)s %(orig_error)sr/N�r'r(r)r*r+r,r-r.r/r&r$r1r1`�����N�	/�	r&r1c�6�\rSrSrSrSSjrSrSrg)�PackCommitBuilder�oz�Subclass of VersionedFileCommitBuilder to add texts with pack semantics.

Specifically this uses one knit object rather than one knit object per
added text, reducing memory and object pressure.
Nc��[R"UUUUUUUUUU	U
S9 [RURR
R5Ulg)N)�	timestamp�timezone�	committer�revprops�revision_id�lossy�owns_transaction)rr�graph�Graph�_pack_collection�
text_index�combined_index�_file_graph)r#�
repository�parents�configr9r:r;r<r=r>r?s           r$r�PackCommitBuilder.__init__vs[��	#�+�+���������#��-�	
�!�;�;��'�'�2�2�A�A�
��r&c��UVs/sHo1U4PM nnURRU5Vs1sHoUSiM	 sn$s snfs snf)Nr)rE�heads)r#�file_id�revision_idsr=�keys�keys      r$�_heads�PackCommitBuilder._heads�sL��:F�G�,�;�+�&�,��G�"&�"2�"2�"8�"8��">�?�">�3�A��">�?�?��H��?s
�
A�A)rE)NNNNNFT)r'r(r)r*r+rrPr.r/r&r$r6r6os)����������
�<@r&r6c��\rSrSrSrSSSSSS.rSS
jrSrSrS
r	Sr
SrSrSr
SrSrSrSrSrSrSrg	)�Pack�z�An in memory proxy for a pack and its indices.

This is a base class that is not directly used, instead the classes
ExistingPack and NewPack are used.
)�.cix�)�.rixr)�.iixr)�.tixr)�.six�)�chk�revision�	inventory�text�	signatureNc�@�XlX lX0lX@lXPlg)a�Create a pack instance.

:param revision_index: A GraphIndex for determining what revisions are
    present in the Pack and accessing the locations of their texts.
:param inventory_index: A GraphIndex for determining what inventories are
    present in the Pack and accessing the locations of their
    texts/deltas.
:param text_index: A GraphIndex for determining what file texts
    are present in the pack and accessing the locations of their
    texts/deltas (via (fileid, revisionid) tuples).
:param signature_index: A GraphIndex for determining what signatures are
    present in the Pack and accessing the locations of their texts.
:param chk_index: A GraphIndex for accessing content by CHK, if the
    pack has one.
N)�revision_index�inventory_indexrC�signature_index�	chk_index)r#rbrcrCrdres      r$r�
Pack.__init__�s ��.-��.��$��.��"�r&c�:�URUR54$)�6Return a tuple (transport, name) for the pack content.)�pack_transport�	file_name�r#s r$�access_tuple�Pack.access_tuple�s���"�"�D�N�N�$4�4�4r&c��0nSURUR5URRR4SURUR5URRR44HCup#nURSUR
U555nU(dM6[U5X'ME U(a1SSKJ	n [R"SRX"U555eg)aMake sure our external references are present.

Packs are allowed to have deltas whose base is not in the pack, but it
must be present somewhere in this collection.  It is not allowed to
have deltas based on a fallback repository.
(See <https://bugs.launchpad.net/bzr/+bug/288751>)
�texts�inventoriesc3�,# �UH
upp4Uv� M g7f�Nr/)�.0�idx�k�v�rs     r$�	<genexpr>�)Pack._check_references.<locals>.<genexpr>�s���/�(I�n�s�q��(I���r)�pformatzTNewly created pack file {!r} has delta references to items not in its repository:
{}N)
�_get_external_refsrCrBrDrc�
difference�iter_entries�sorted�pprintr{r�
BzrCheckError�format)r#�
missing_items�
index_name�
external_refsr
�missingr{s       r$�_check_references�Pack._check_references�s����
���'�'����8��%�%�0�0�?�?�
���'�'��(<�(<�=��%�%�5�5�D�D�
�
1
�,�J�u�$�.�.�/�(-�(:�(:�=�(I�/��G��w�,2�7�O�
�)�!1
�"�&��&�&�3�39�6�$��
�@V�3W��
�r&c� �URS-$)z'Get the file name for the pack on disk.�.pack)�namerks r$rj�Pack.file_name�s���y�y�7�"�"r&c�6�URR5$rr)rb�	key_countrks r$�get_revision_count�Pack.get_revision_count�s���"�"�,�,�.�.r&c�4�U[RUS-$)z8Get the disk name of an index type for pack name 'name'.r�rS�index_definitions)r#�
index_typer�s   r$r��Pack.index_name�s���d�,�,�Z�8��;�;�;r&c�.�[RUS$)z>Get the position in a index_size array for a given index type.rr�)r#r�s  r$�index_offset�Pack.index_offset�s���%�%�j�1�!�4�4r&c�&�URSU5$)z!The inv index is the name + .iix.r^�r��r#r�s  r$�inventory_index_name�Pack.inventory_index_name�������{�D�1�1r&c�&�URSU5$)z&The revision index is the name + .rix.r]r�r�s  r$�revision_index_name�Pack.revision_index_names�����z�4�0�0r&c�&�URSU5$)z'The signature index is the name + .six.r`r�r�s  r$�signature_index_name�Pack.signature_index_namer�r&c�&�URSU5$)z"The text index is the name + .tix.r_r�r�s  r$�text_index_name�Pack.text_index_names�����v�t�,�,r&c��SnUS:XaSnURURURXR5URURU5US9nUS:Xa[RUl[XS-U5 g)NFr\T��unlimited_cache�_index)
�index_class�index_transportr�r��index_sizesr�r	�_gcchk_factory�
_leaf_factory�setattr)r#r�r�r
s    r$�_replace_index_with_readonly�!Pack._replace_index_with_readonlys��������"�O�� � �� � ��O�O�J�	�	�2����T�.�.�z�:�;�+�	!�
�����"-�"<�"<�E����8�+�U�3r&c�p�[U[5(d[U5e[U5[U5:$rr)�
isinstancerS�	TypeError�id�r#�others  r$�__lt__�Pack.__lt__s-���%��&�&��E�"�"��$�x�"�U�)�#�#r&c��[[U5URURURUR
UR45$rr)�hash�typerbrcrCrdrerks r$�__hash__�
Pack.__hash__sD����T�
��#�#��$�$�����$�$����

�	
�		
r&)rercrbrdrCrr)r'r(r)r*r+r�rrlr�rjr�r�r�r�r�r�r�r�r�r�r.r/r&r$rSrS�sl����� �� ����
#�:5� �D#�/�<�5�2�1�2�-�4�$�


r&rSc�<�\rSrSrSrS
SjrSrSrSrSr	S	r
g)�ExistingPacki,z>An in memory proxy for an existing .pack and its disk indices.Nc�|�[RUUUUUU5 X lXlSUUUUUU4;a
[	5eg)z�Create an ExistingPack object.

:param pack_transport: The transport where the pack file resides.
:param name: The name of the pack on disk in the pack_transport.
N)rSrr�ri�AssertionError)r#rir�rbrcrCrdres        r$r�ExistingPack.__init__/s^��	
�
�
�������
	
��	�,���������

�
�!�"�"�
r&c�4�URUR:H$rr)�__dict__r�s  r$�__eq__�ExistingPack.__eq__Rs���}�}����.�.r&c�.�URU5(+$rr)r�r�s  r$�__ne__�ExistingPack.__ne__Us���;�;�u�%�%�%r&c��SRURRURR[	U5UR
UR5$)Nz<{}.{} object at 0x{:x}, {}, {})r��	__class__r(r'r�rir�rks r$�__repr__�ExistingPack.__repr__XsF��0�7�7��N�N�%�%��N�N�#�#��t�H�����I�I�
�	
r&c�B�[[U5UR45$rr)r�r�r�rks r$r��ExistingPack.__hash__as���T�$�Z����+�,�,r&)r�rirr)r'r(r)r*r+rr�r�r�r�r.r/r&r$r�r�,s$��H��!#�F/�&�
�-r&r�c�8�\rSrSrS	SjrSrSrSrSrSr	g)
�ResumedPackieNc��[RUUUUUUUU
S9 X`lX�l/SQUlSU4SU4SU4SU4/nU
b.URSU
45 URRS5 UH/up�UR
U5nU
RURU'M1 U	RUl	X�l
S	Ulg)
zCreate a ResumedPack object.�re�NNNNr]r^r_r`Nr\�resumed)r�r�upload_transportr�r��appendr��_size�_index_classr�rB�_state)r#r�rbrcrCrdr�rir��pack_collectionre�indicesr�r
�offsets               r$r�ResumedPack.__init__fs���	�����������	�		
�!1��.��3���
��(�
�/�*�
�Z� �
�/�*�	
��� ��N�N�E�9�-�.����#�#�D�)�!(��J��&�&�z�2�F�',�{�{�D���V�$�")�+�7�7��� /����r&c���URS:Xa[RU5$URS:XaURUR	54$[UR5e)N�finishedr�)r�rSrlr�rjr�rks r$rl�ResumedPack.access_tuple�sR���;�;�*�$��$�$�T�*�*�
�[�[�I�
%��(�(�$�.�.�*:�:�:� ����-�-r&c�^�URRUR55 URURUR
UR/nURbURUR5 UH(nURRUR5 M* grr)r��deleterjrbrcrCrdrer��
_transport�_name)r#r�r
s   r$�abort�ResumedPack.abort�s������$�$�T�^�^�%5�6����� � ��O�O�� � �	
���>�>�%��N�N�4�>�>�*��E����#�#�E�K�K�0�r&c��UR5 /SQnURbURS5 UHOnURX R5nSU-nUR
R
X45 URU5 MQ SUR5-nUR
R
UR5U5 SUl	g)N)r]r^r_r`r\z../indices/�	../packs/r�)
r�rer�r�r�r��mover�rjr�)r#�index_typesr��old_name�new_names     r$�finish�ResumedPack.finish�s������ �D���>�>�%����u�%�%�J����z�9�9�=�H�$�x�/�H��!�!�&�&�x�:��-�-�j�9�	&�
����!1�1�����"�"�4�>�>�#3�X�>� ��r&c�$�URS5$)z�Return compression parents for this index that are not present.

This returns any compression parents that are referenced by this index,
which are not contained *in* this index. They may be present elsewhere.
r)�external_references�r#r
s  r$r|�ResumedPack._get_external_refs�s���(�(��+�+r&)rBr�r�r�r�r�rr)
r'r(r)r*rrlr�r�r|r.r/r&r$r�r�es!���) �X.�1�!�,r&r�c�`�\rSrSrSrSSjrSrSrSrSr	SS	jr
S
rSrSr
SS
jrSrg)�NewPacki�z5An in memory proxy for a pack which is being created.Nc
�x^�URnURbU"SS9nOSn[RTU"SS9U"SS9U"SSS9U"SS9US9 UTlUR
TlURTlURTl
URTlUTl
[R5TlSTlSTl[R'S5U-Tl[*R+5TlTRR/TR(TRS	9TlS
[2R4;a^[7S[*R95TRR:TR([*R+5TR,-
5 /S/TlSTR<TR0R>TR R@4U4S
jjnUTl![DRGTRB5Tl$TRHRK5 STl&STl'g)a%Create a NewPack instance.

:param pack_collection: A PackCollection into which this is being inserted.
:param upload_suffix: An optional suffix to be given to any temporary
    files created during the pack creation. e.g '.autopack'
:param file_mode: Unix permissions for newly created file.
Nr)�reference_listsrr)r��key_elementsr����mode�packz0%s: create_pack: pack stream open: %s%s t+%6.3fsFc��>�USRU5 US==[U5-
ss'USTR:�dU(a,SRUS5nU"U5 U"U5 /S/USS&gg)Nrrr&)r��len�_cache_limit�join)�bytes�flush�_buffer�_write�_updater#s     �r$�_write_data�%NewPack.__init__.<locals>._write_dataso���
�A�J���e�$��A�J�#�e�*�$�J��q�z�D�-�-�-��������,���u�
���� �!�W���
�	27r&�open)(�_index_builder_classrerSrrBr�r��_upload_transportr��_index_transportr��_pack_transportri�
_file_mode�osutils�md5�_hashr�r�
rand_chars�random_name�time�
start_time�open_write_stream�write_stream�debug�debug_flagsr�ctime�baser�write�updater	r��ContainerWriter�_writer�beginr�r�)r#r��
upload_suffix�	file_mode�index_builder_classrer	s`      r$r�NewPack.__init__�s����.�B�B���$�$�0�+�A�>�I��I��
�
����2�

 ��2�
 ���B�
 ��2��!	�	
�$!0���*�7�7��� /� A� A���.�?�?���-�=�=���#����[�[�]��
� ���
���"�-�-�b�1�M�A����)�)�+��� �1�1�C�C����4�?�?�D�
����U�&�&�&��B��
�
���%�%�*�*�� � ��	�	��d�o�o�-�
��A�w�����L�L��$�$�*�*��J�J�%�%�	%�"'����+�+�D�,<�,<�=��������������	r&c��SUlURR5 URR	UR
5 g)zCancel creating this pack.�abortedN)r�r�closer�r�rrks r$r��
NewPack.abort+s5����������!����$�$�T�%5�%5�6r&c���URS:Xa[RU5$URS:XaURUR4$[UR5e)rhr�r)r�rSrlr�rr�rks r$rl�NewPack.access_tuple3sQ���;�;�*�$��$�$�T�*�*�
�[�[�F�
"��(�(�$�*:�*:�:�:� ����-�-r&c�f�[UR5=(d� URR5=(dq URR5=(dP UR
R5=(d/ URSL=(a URR55$)z)True if data has been added to this pack.N)�boolr�rcr�rCrdrerks r$�
data_inserted�NewPack.data_inserted<s�����#�#�%�
K��#�#�-�-�/�
K����(�(�*�
K��#�#�-�-�/�
K����d�*�I�t�~�~�/G�/G�/I�
�	
r&c���URbgURR5 URS(aUR	SSS9 UR
R
5Ulg)Nrr&T)r)r�r!�endrr	r�	hexdigestrks r$�finish_content�NewPack.finish_contentFsQ���9�9� ���������<�<��?����S���-��J�J�(�(�*��	r&c	���UR5 U(dUR5 /SQUlURSURSU5 URSUR
SU5 URSURSU5 URSURSU5 URb9URRS5 URS	URS
U5 URRURRRS5S9 URS
-nU(dSU-nUR R#UR$U5 SUlS[(R*;a`[-S[.R15UR R2UR$U[.R/5UR4-
5 gg)z�Finish the new pack.

This:
 - finalises the content
 - assigns a name (the md5 of the content, currently)
 - writes out the associated indices
 - renames the pack into place.
 - stores the index size tuple for the pack in the index_sizes
   attribute.
r�r]r^r_z
file textsr`zrevision signaturesNr\zcontent hash bytes�repository.fdatasync��want_fdatasyncr�r�r�r�z1%s: create_pack: pack finished: %s%s->%s t+%6.3fs)r4r�r��_write_indexrbrcrCrdrer�rr)rB�config_stack�getr�r�r�rr�rrrrrrr)r#�suspendr�s   r$r��NewPack.finishNs���	
������"�"�$�4������*�d�&9�&9�:�w�O����+�t�';�';�[�'�R����&�$�/�/�<��I������-�-�/D�g�	
��>�>�%����#�#�D�)����e�T�^�^�5I�7�S�������0�0�=�=�A�A�&��	 �	
� �9�9�w�&���"�X�-�H����"�"�4�#3�#3�X�>� ����U�&�&�&��C��
�
���%�%�*�*�� � ���	�	��d�o�o�-�

�'r&c��URS(afSRURS5nURRU5 URRU5 /S/URSS&gg)zFlush any current data.rr&rN)rrrrrr)r#rs  r$r�
NewPack.flush�s_���<�<��?��H�H�T�\�\�!�_�-�E����#�#�E�*��J�J���e�$�!�1�g�D�L�L��O�	r&c�"�UR5$rr)�_external_referencesr�s  r$r|�NewPack._get_external_refs�s���)�)�+�+r&c��Xlgrr)r)r#�sizes  r$�set_write_cache_size�NewPack.set_write_cache_size�s�� �r&c	���URXR5nU(a
URnOURnUR	5nUR5nUR
XPRS9n	U	RU5 U	RURRRS5S9 [U5URURU5'S[ R";a_[%S[&R)5UURR*UR,[&R'5UR.-
5 UR1U5 g)z�Write out an index.

:param index_type: The type of index to write - e.g. 'revision'.
:param index: The index object to serialise.
:param label: What label to give the index e.g. 'revision'.
r�r7r8r�z.%s: create_pack: wrote %s index: %s%s t+%6.3fsN)r�r�r�r�r��readrrrr)rBr;r<rr�r�rrrrrrrrr�)
r#r�r
�labelr=r�r�index_tempfile�index_bytesrs
          r$r:�NewPack._write_index�s���_�_�Z���;�
���-�-�I��,�,�I������$�)�)�+�� �2�2�:�O�O�2�T�����;�'�����0�0�=�=�A�A�&��	�	
�
;>�k�:J�����*�*�:�6�7��U�&�&�&��@��
�
����%�%�*�*�� � ��	�	��d�o�o�-�

�	
�)�)�*�5r&)rrrrrBr�r	r!r�r�r�r�rirrr�r)�N�F)r'r(r)r*r+rr�rlr/r4r�rr|rFr:r.r/r&r$r�r��s:��?�h�T7�.�
�+�;�z&�,�!�$6r&r�c�:�\rSrSrSrS
SjrSrSrSrSr	S	r
g)�AggregateIndexi�a�An aggregated index for the RepositoryPackCollection.

AggregateIndex is reponsible for managing the PackAccess object,
Index-To-Pack mapping, and all indices list for a specific type of index
such as 'revision index'.

A CombinedIndex provides an index on a single key space built up
from several on-disk indices.  The AggregateIndex builds on this
to provide a knit access layer, and allows having up to one writable
index within the collection.
Nc�|�Xl0Ul[/US9Ul[	URXS9UlSUlg)z�Create an AggregateIndex.

:param reload_func: A function to call if we find we are missing an
    index. Should have the form reload_func() => True if the list of
    active pack files has changed.
��reload_func)rT�
flush_funcN)�_reload_func�
index_to_pack�CombinedGraphIndexrD�_DirectPackAccess�data_access�add_callback)r#rTrUs   r$r�AggregateIndex.__init__�sC��(�����0���M���,����K�
���!��r&c��UR5URU'URRSXR5 g)z�Add index to the aggregate, which is an index for Pack pack.

Future searches on the aggregate index will seach this new index
before all previously inserted indices.

:param index: An Index for the pack.
:param pack: A Pack instance.
rN)rlrWrD�insert_indexr��r#r
r�s   r$�	add_index�AggregateIndex.add_index�s7��%)�$5�$5�$7����5�!����(�(��E�9�9�=r&c��URb$[SRXR55eURX5 URRURXR55 URUlg)z�Add an index which is able to have data added to it.

There can be at most one writable index at any time.  Any
modifications made to the knit are put into this index.

:param index: An index from the pack parameter.
:param pack: A Pack instance.
Nz*{} already has a writable index through {})	r[r�r�r`rZ�
set_writerr!rl�	add_nodesr_s   r$�add_writable_index�!AggregateIndex.add_writable_index�sq�����(� �<�C�C��+�+���
�	
���u�#����#�#�D�L�L�%�9J�9J�9L�M�!�O�O��r&c���URRSSS5 URR5 URR
SS2	URRSS2	SUlg)z(Reset all the aggregate data to nothing.N�NN)rZrcrW�clearrD�_indices�_index_namesr[rks r$ri�AggregateIndex.clears\�����#�#�D�$��=���� � �"����(�(��+����,�,�Q�/� ��r&c�`�URU	URRRU5nURRU	URRU	UR
bA[
USS5UR
:Xa%SUlURRSSS5 ggg)zgRemove index from the indices used to answer queries.

:param index: An index from the pack parameter.
Nrdrh)	rWrDrjr
rkr[�getattrrZrc)r#r
�poss   r$�remove_index�AggregateIndex.remove_index
s���

���u�%��!�!�*�*�0�0��7�����(�(��-����,�,�S�1����)���{�D�1�T�5F�5F�F� $�D�����'�'��d�L�A�G�
*r&)rVr[rDrZrWrh)r'r(r)r*r+rr`rerirpr.r/r&r$rQrQ�s!��
�
!�>�,�*!�Br&rQc�X�\rSrSrSrSSjrSSjrSrSrSr	S	r
S
rSrSr
S
rg)�PackerizCreate a pack from packs.Nc�j�X lX0lX@lSUlXlXPlSUlSUlg)a�Create a Packer.

:param pack_collection: A RepositoryPackCollection object where the
    new pack is being written to.
:param packs: The packs to combine.
:param suffix: The suffix to use on the temporary files for the pack.
:param revision_ids: Revision ids to limit the pack to.
:param reload_func: A function to call if a pack file/index goes
    missing. The side effect of calling this function should be to
    update self.packs. See also AggregateIndex
N)�packs�suffixrM�new_packrBrV�_revision_keys�_text_filter)r#r�rurvrMrTs      r$r�Packer.__init__s;���
���(����
� /��'��#���!��r&c�d�URRb9[R"SR	UR
R55eURbU[UR5S:Xag[UR5Ul[SUR55Ul
Uc$[RR5UlOXlUR5UcURR!5 $$!UcURR!5 ff=f)a,Create a new pack by reading data from other packs.

This does little more than a bulk copy of data. One key difference
is that data with the same item key across multiple packs is elided
from the output. The new pack is written into the current pack store
along with its indices, and the name added to the pack names. The
source packs are not altered and are not required to be in the current
pack collection.

:param pb: An optional progress bar to use. A nested bar is created if
    this is None.
:return: A Pack object, or None if nothing was copied.
Nz6call to {}.pack() while another pack is being written.rc3�&# �UHo4v� M	 g7frrr/)rs�revids  r$rx�Packer.pack.<locals>.<genexpr>Xs���.W�EV�E�x�EV�s�)rB�	_new_packrrr�r�r'rMr�	frozenset�
revision_keys�ui�
ui_factory�nested_progress_bar�pb�_create_pack_from_packsr�)r#r�s  r$r��Packer.pack:s���$� � �*�*�6��/�/�H�O�O��N�N�+�+���
�
���(��4�$�$�%��*��$-�d�.?�.?�$@��!�%.�.W�T�EV�EV�.W�%W��"�
�:��m�m�7�7�9�D�G��G�	#��/�/�1��z���� � �"���r�z���� � �"��s�!D� D/c��URRURURURRRR5S9nURRSS9 URRSS9 URRSS9 URRSS9 U$)z)Open a pack for the pack we are creating.�r#r$F��combine_backing_indices)rB�pack_factoryrv�repo�
controldir�_get_file_moderb�set_optimizercrCrd�r#rws  r$�	open_pack�Packer.open_packcs����(�(�5�5��!�!��+�+��+�+�0�0�;�;�J�J�L�6�
��	���,�,�U�,�K�� � �-�-�e�-�L����(�(��(�G�� � �-�-�e�-�L��r&c�,�[UR5e)z#Copy revision data to the new pack.)�NotImplementedError�_copy_revision_textsrks r$r��Packer._copy_revision_textsrs��!�$�";�";�<�<r&c�,�[UR5e)z�Copy the inventory texts to the new pack.

self._revision_keys is used to determine what inventories to copy.

Sets self._text_filter appropriately.
)r��_copy_inventory_textsrks r$r��Packer._copy_inventory_textsvs��"�$�"<�"<�=�=r&c�,�[UR5err)r��_copy_text_textsrks r$r��Packer._copy_text_textss��!�$�"7�"7�8�8r&c�,�[UR5err)r�r�rks r$r��Packer._create_pack_from_packs�s��!�$�">�">�?�?r&c	�l�S[R;a�[S[R	5UR
RRURRURRR5[R5URR-
5 gg)Nr�z:%s: create_pack: file texts copied: %s%s %d items t+%6.3fs)
rrrrrrBr
rrwrrCr�rrks r$�_log_copied_texts�Packer._log_copied_texts�sy���U�&�&�&��L��
�
���%�%�7�7�<�<��
�
�)�)��
�
�(�(�2�2�4��	�	��d�m�m�6�6�6�

�'r&c�"�UR5$)z�Return True if new_pack should be used.

:param new_pack: The pack that has just been created.
:return: True if the pack should be used.
)r/r�s  r$�	_use_pack�Packer._use_pack�s���%�%�'�'r&)
rBrVrxryrwrur�rMr�rvrhrr)r'r(r)r*r+rr�r�r�r�r�r�r�r�r.r/r&r$rsrss;��#�NR�!�8'#�R
�=�>�9�@�	�(r&rsc�t�\rSrSr%Sr\\\S'\\\S'\\	\S'\\	\S'Sr
SrS	rS
r
SrSrS4SjrSrSrSrS5SjrSrSrSrSrSrSrSrSrS6SjrSrSrSr Sr!S r"S!r#S7S"jr$S#r%S$r&S%r'S&r(S8S'jr)S(r*S)r+S*r,S4S+jr-S,r.S-r/S.r0S/r1S0r2S1r3S2r4S3r5g
)9�RepositoryPackCollectioni�zZManagement of packs within a repository.

:ivar _names: map of {pack_name: (index_size,)}
r��resumed_pack_factory�normal_packer_class�optimising_packer_classc	��XlX lX0lX@lXPlX`lXplSSSSSS.Ul/UlSUl	0Ul
SUlSUlURn	[URU	5Ul[URU	5Ul[URU	5Ul[URU	5UlUR UR"UR$UR&/n
U(a7[URU	5UlU
R+UR(5 OSUlU
Vs/sHo�R,PM nnUH-n
U
R/[1U5R3U
/55 M/ /Ul[6R9URR:5Ulgs snf)a)Create a new RepositoryPackCollection.

:param transport: Addresses the repository base directory
    (typically .bzr/repository/).
:param index_transport: Addresses the directory containing indices.
:param upload_transport: Addresses the directory into which packs are written
    while they're being created.
:param pack_transport: Addresses the directory of existing complete packs.
:param index_builder_class: The index builder class to use.
:param index_class: The index class to use.
:param use_chk_index: Whether to setup and manage a CHK index.
rrrr[rV)rWrXrYrZrUN)r�rrr
rrr��_suffix_offsetsru�_names�_packs_by_name�_packs_at_loadr�_flush_new_packrQ�reload_pack_namesrbrcrCrdrer�rD�set_sibling_indices�setr}�_resumed_packsrH�
LocationStackrr;)r#r�rr�r�rir%r��
use_chk_indexr�all_indices�agg_idx�all_combined�combined_idxs              r$r�!RepositoryPackCollection.__init__�s���0�	�"�� /��!1��-��$7�!�'��()�1�a��TU�V�����
���� ���"�������$�$��,�T�-C�-C�U�K���-�d�.D�.D�e�L���(��)?�)?��G���-�d�.D�.D�e�L������� � ��O�O�� � �	
���+�D�,B�,B�E�J�D�N����t�~�~�.�"�D�N�?J�J�k�7�.�.�k��J�(�L��,�,��L�!�,�,�l�^�<�
�)�
!���"�0�0����1D�1D�E����Ks�
G
c�b�SRURRUR5$)Nz{}({!r}))r�r�r'r�rks r$r��!RepositoryPackCollection.__repr__�s#��� � ����!8�!8�$�)�)�D�Dr&c�~�URUR;a$[SRUR55eURRU5 XRUR'URRURU5 URRURU5 URRURU5 URRURU5 URb'URRURU5 gg)z`Make a Pack object available to the repository to satisfy queries.

:param pack: A Pack object.
z!pack {} already in _packs_by_nameN)r�r�r�r�rur�rbr`rcrCrdre�r#r�s  r$�add_pack_to_memory�+RepositoryPackCollection.add_pack_to_memory�s���
�9�9��+�+�+� �!D�!K�!K�D�I�I�!V�W�W��
�
���$��)-���D�I�I�&����%�%�d�&9�&9�4�@����&�&�t�';�';�T�B����!�!�$�/�/�4�8����&�&�t�';�';�T�B��>�>�%��N�N�$�$�T�^�^�T�:�&r&c�x�/nUR5H#nURURU55 M% U$)z�Return a list of all the Pack objects this repository has.

Note that an in-progress pack being created is not returned.

:return: A list of Pack objects for all the packs in the repository.
)�namesr��get_pack_by_name)r#�resultr�s   r$�	all_packs�"RepositoryPackCollection.all_packs�s5�����J�J�L�D��M�M�$�/�/��5�6�!��
r&c�J�UR5$![a Of=fM#)awPack the pack collection incrementally.

This will not attempt global reorganisation or recompression,
rather it will just ensure that the total number of packs does
not grow without bound. It uses the _max_pack_count method to
determine if autopacking is needed, and the pack_distribution
method to determine the number of revisions in each pack.

If autopacking takes place then the packs name collection will have
been flushed to disk - packing requires updating the name collection
in synchronisation with certain steps. Otherwise the names collection
is not flushed.

:return: Something evaluating true if packing took place.
)�_do_autopackr1rks r$�autopack�!RepositoryPackCollection.autopacks4�� �
��(�(�*�*�� �
��
��s��
 � c	���URRR5n[UR5nURU5U:�agUR
U5n/nUR5H-nUR5nUS:XaMURXe45 M/ URXC5n[U5n[UV	s/sHn	[U	S5PM sn	5n
[UV	s/sHo�SPM	 sn	5n[S[U5UUU
UU5 URUURUR S9n[S[U55 U$s sn	fs sn	f)Nrrz}Auto-packing repository %s, which has %d pack files, containing %d revisions. Packing %d files into %d affecting %d revisions��packer_classrTz$Auto-packing repository %s completed)rbrDr�rr��_max_pack_count�pack_distributionr�r�r��plan_autopack_combinations�sumr�str�_execute_pack_operationsr��_restart_autopack)
r#�total_revisions�total_packsr��existing_packsr��revision_count�pack_operations�
num_new_packs�po�
num_old_packs�num_revs_affectedr�s
             r$r��%RepositoryPackCollection._do_autopack sa���-�-�<�<�F�F�H���$�+�+�&������0�K�?�� �2�2�?�C�����N�N�$�D�!�4�4�6�N���"���!�!�>�"8�9�%��9�9��
���O�,�
��/�B�/�B�S��A��Z�/�B�C�
��� A��2�A��� A�B���
�
��I������
	
��.�.���1�1��.�.�/�
��
	�5�s�4�y�A��
��'C�� As�	E�1E!Nc�v�UHNupE[U5S:XaMU"XSUS9nUR5nUc gUHnURU5 M MP /n	UHup�U	R
U5 M URSU	S9nU$![a) URbURR	5 ef=f)z�Execute a series of pack operations.

:param pack_operations: A list of [revision_count, packs_to_combine].
:param packer_class: The class of packer to use
:return: The new pack names.
rz	.autopackrSNT)�clear_obsolete_packs�obsolete_packs)rr�rrwr��_remove_pack_from_memory�extend�_save_pack_names)r#r�r�rT�_revision_countru�packerr�r��to_be_obsoleted�_s           r$r��1RepositoryPackCollection._execute_pack_operationsQs���'6�"�O��5�z�Q���!�$�{��T�F�	
�������~�����-�-�d�3��#'6�*��'�H�A��"�"�5�)�(��&�&�!%�o�'�
���
��)%�
�
�?�?�.��O�O�)�)�+��
�s�B�3B8c�T�URbURR5 ggrr)rrrks r$r��(RepositoryPackCollection._flush_new_packus!���>�>�%��N�N� � �"�&r&c�L�URRR5 g)z�Acquire the mutex around the pack-names index.

This cannot be used in the middle of a read-only transaction on the
repository.
N)r��
control_files�
lock_writerks r$�
lock_names�#RepositoryPackCollection.lock_namesys��	
�	�	���*�*�,r&c��URRR=(d [UR5S:�(+$)z!Is the collection already packed?r)r��_format�pack_compressesrr�rks r$�_already_packed�(RepositoryPackCollection._already_packed�s.���I�I�%�%�5�5�O�#�d�k�k�:J�Q�:N�P�Pr&c�l�UR5 [UR5nUR5(agURR
R
5n[S[U5UUU5 URU5 U(aUR5 gg![a M:f=f)z!Pack the pack collection totally.NzUPacking repository %s, which has %d pack files, containing %d revisions with hint %r.)�
ensure_loadedrr�r�rbrDr�rr��_try_pack_operations�RetryPackOperations�_clear_obsolete_packs)r#�hint�clean_obsolete_packsr�r�s     r$r��RepositoryPackCollection.pack�s��������$�+�+�&�����!�!���-�-�<�<�F�F�H��	�
4���I����
	
��
��)�)�$�/�
���&�&�(� ��	'�
��
�s�:B%�%
B3�2B3c��S///nUR5HMnUbURU;dMUSS==UR5-
ss'USSRU5 MO UR	UUR
URS9 g)zLCalculate the pack operations based on the hint (if any), and
execute them.
rN���rr�)r�r�r�r�r�r��_restart_pack_operations)r#r�r�r�s    r$r��-RepositoryPackCollection._try_pack_operations�s���
�r�7�)���N�N�$�D��|�t�y�y�D�0� ��#�A�&�$�*A�*A�*C�C�&���#�A�&�-�-�d�3�%�	
�%�%���5�5��5�5�	&�	
r&c�@�[U5[U5::a/$URSS9 S///n[U5(a�URS5upEXBS:�a&US:�aXBS-nUS:�aUS	OU*US'US:�aMOLUSS==U-
ss'USSRU5 USSUS:�aUS	URS//5 [U5(aM�Sn/nUHup�Xh-
nUR	U	5 M [U5S:Xa[S5eXg//$)z�Plan a pack operation.

:param existing_packs: The packs to pack. (A list of (revcount, Pack)
    tuples).
:param pack_distribution: A list with the number of revisions desired
    in each pack.
T)�reverserrrzEWe somehow generated an autopack with a single pack file being moved.)r�sort�popr�r�r�)
r#r�r�r��next_pack_rev_count�	next_pack�final_rev_count�final_pack_list�num_revs�
pack_filess
          r$r��3RepositoryPackCollection.plan_autopack_combinations�ss���~��#�&7�"8�8��I����D��)��r�7�)���.�!�!�
.<�-?�-?��-B�*��"��&:�:�*�A�-�'�Q�+?�?�'�*�a�/�-�a�0�1D�/C�)�!�,�*�A�-�� ��#�A�&�*=�=�&���#�A�&�-�-�i�8�"�2�&�q�)�->�q�-A�A�)�!�,�#�*�*�A�r�7�3�3�.�!�!�8����$3� �H��'�O��"�"�:�.�%4����1�$� �W��
�!�2�3�3r&c���URR5(d [R"UR5eURc�0Ul[5UlUR5HTupnUSRS5nURU5URU'URRXC45 MV SnOSnUR5 U$)zdEnsure we have read names from disk.

:return: True if the disk names had not been previously read.
r�asciiTF)r��	is_lockedr�ObjectNotLockedr�r�r��_iter_disk_pack_index�decode�_parse_index_sizes�addr�)r#r�rO�valuer�r�s      r$r��&RepositoryPackCollection.ensure_loaded�s����y�y�"�"�$�$��(�(����3�3��;�;���D�K�"%�%�D��&*�&@�&@�&B�"��U��1�v�}�}�W�-��$(�$;�$;�E�$B����D�!��#�#�'�'��
�6�'C��F��F������
r&c�D�[SURS555$)zParse a string of index sizes.c3�8# �UHn[U5v� M g7frr)�int)rs�digitss  r$rx�>RepositoryPackCollection._parse_index_sizes.<locals>.<genexpr>s���A�/@�V�S��[�[�/@�s�� )�tuple�split)r#rs  r$r�+RepositoryPackCollection._parse_index_sizes�s���A�u�{�{�4�/@�A�A�Ar&c
�p�URU$![a� URUS5nURUS5nURUS5nURUS5nURbURUSSS9nOSn[	UR
UUUUUU5nUR
U5 Us$f=f)	zfGet a Pack object by name.

:param name: The name of the pack - e.g. '123456'
:return: A Pack object.
rWrXrYrZNrUT)�is_chk)r��KeyError�_make_indexrer�rr�)r#r��	rev_index�	inv_index�	txt_index�	sig_indexrer�s        r$r��)RepositoryPackCollection.get_pack_by_names���	��&�&�t�,�,���	��(�(��v�6�I��(�(��v�6�I��(�(��v�6�I��(�(��v�6�I��~�~�)� �,�,�T�6�$�,�G�	� �	�!��$�$��������F�
�#�#�F�+��M�'	�s��B!B5�4B5c
��[R"SU5(d#[R"URU/S5eURUSSS9nURUSSS9nURUSSS9nURUSSS9nURbURUS
SSS9nOS	nURUUUUUURURURUUS9
nURU5 URR!U5 U$![Ra2n[R"URU/[U55UeS	nAff=f)
zpGet a suspended Pack object by name.

:param name: The name of the pack - e.g. '123456'
:return: A Pack object.
z[a-f0-9]{32}zMalformed write group tokenrWT)�resumerXrYrZNrU)r+r"r�)�re�matchr�UnresumableWriteGroupr�r$rer�r
rr�_mod_transport�
NoSuchFiler�r�r�r�)	r#r�r%r&r'r(rer��es	         r$�_resume_pack�%RepositoryPackCollection._resume_packsk���x�x���-�-��.�.��	�	�D�6�#@��
�	Q��(�(��v�d�(�C�I��(�(��v�d�(�C�I��(�(��v�d�(�C�I��(�(��v�d�(�C�I��~�~�)� �,�,�T�6�$�t�,�T�	� �	��.�.�������&�&��$�$��%�%��#�/��F�	
����'����"�"�6�*��
��	�(�(�	Q��.�.�t�y�y�4�&�#�a�&�I�q�P��	Q�s�BD�E�-E�Ec�2�UR5 URUR;a0[R"SRURU55e[
UR5URUR'URU5 g)z�Allocate name in the list of packs.

:param a_new_pack: A NewPack instance to be added to the collection of
    packs for this repository.
zPack {!r} already exists in {}N)	r�r�r�rrr�rr�r�)r#�
a_new_packs  r$�allocate�!RepositoryPackCollection.allocateFsr��	
�����?�?�d�k�k�)��/�/�0�7�7�
����N��
�(-�Z�-C�-C�'D����J�O�O�$����
�+r&c�X�URURSS5R5$)z�Iterate over the contents of the pack-names index.

This is used when loading the list from disk, and before writing to
detect updates from others during our write operation.
:return: An iterator of the index contents.
�
pack-namesN)r�r�iter_all_entriesrks r$r�.RepositoryPackCollection._iter_disk_pack_indexTs&��� � �����t�D�U�U�W�Wr&c�X�URUnX-nU(a(URnURU5RnOURnUR
UUnUR
XvX�S9n	U(a2UR[RLa[RU	l
U	$)Nr�)r�r
�stat�st_sizerr�r�r	�BTreeGraphIndexr�r�)
r#r�rvr+r"�size_offsetr�r�
index_sizer
s
          r$r$�$RepositoryPackCollection._make_index]s����*�*�6�2���]�
���.�.�I�"���
�3�;�;�J��-�-�I����T�*�;�7�J��!�!��:�"�
���d�'�'�;�+F�+F�F�"-�"<�"<�E���r&c�^�U(dg[U5nSnUHnU[U5-
nM U$)z�Return the maximum number of packs to use for total revisions.

:param total_revisions: The total number of revisions in the
    repository.
rr)r�r)r#r�rr��digits     r$r��(RepositoryPackCollection._max_pack_countms6�����_�%�����E��c�%�j� �F���
r&c�H�[URR55$)z)Provide an order to the underlying names.)rr�rNrks r$r��RepositoryPackCollection.names{s���d�k�k�&�&�(�)�)r&c��UH�nURRUR5SUR5-5 /SQnURbURS5 UH=nURRURU-SUR-U-5 M? M� g![Rau URRS5 O![Ra Of=fURRUR5SUR5-5 N�f=f![R[R4a%n[SRU55 SnAGN:SnAff=f![R[R4a&n[SRU55 SnAGMcSnAff=f)a�Move a number of packs which have been obsoleted out of the way.

Each pack and its associated indices are moved out of the way.

Note: for correctness this function should only be called after a new
pack names index has been written without these pack names, and with
the names of packs that contain the data previously available via these
packs.

:param packs: The packs to obsolete.
:param return: None.
z../obsolete_packs/z.couldn't rename obsolete pack, skipping it:
{}N)rXrZrYrWrUz/couldn't rename obsolete index, skipping it:
{})rir�rjr/r0�mkdir�
FileExistsr�	PathError�TransportErrorrr�rer�rr�)r#rur�r1�suffixesrvs      r$�_obsolete_packs�(RepositoryPackCollection._obsolete_packss����D�
T�
��'�'�,�,����(�*>����AQ�*Q��&8�H��~�~�)�����'�"��Y��)�)�.�.��	�	�F�*�,@�4�9�9�,L�v�,U��#�3��&�0�0�	���+�+�1�1�2F�G��)�4�4������'�'�,�,����(�*>����AQ�*Q��	���$�$�f�&;�&;�<�
T��H�O�O�PQ�R�S�S��
T���(�(�&�*?�*?�@�Y��M�T�T�UV�W�X�X��Y�sk�;B-�+9F�-D6�C�D6�C5�2D6�4C5�5>D6�3D9�5D6�6D9�9$F�E=�=F�$G�)G
�
Gc���US:XaS/$[[U55n/n[U5H6upESU-n[[	U55HnURU5 M M8 [
[U55$)z�Generate a list of the number of revisions to put in each pack.

:param total_revisions: The total number of revisions in the
    repository.
r�
)�reversedr��	enumerate�rangerr��list)r#r�rr��exponent�countrE�_poss        r$r��*RepositoryPackCollection.pack_distribution�sr���a���3�J��#�o�.�/����(��0�O�H��x�<�D��c�%�j�)���
�
�d�#�*� 1��H�V�$�%�%r&c�$�URUS-4$)z@Return a tuple with the transport and file name for a pack name.r�)rr�s  r$�_pack_tuple�$RepositoryPackCollection._pack_tuple�s���#�#�T�G�^�3�3r&c���URRUR5 URRUR5 UR	U5 UR
R
U5 g)z~Remove pack from the packs accessed by this repository.

Only affects memory state, until self._save_pack_names() is invoked.
N)r�rr�r��_remove_pack_indicesru�remover�s  r$r��1RepositoryPackCollection._remove_pack_from_memory�sP��
	
������	�	�"�������	�	�*��!�!�$�'��
�
���$�r&c���[RH5nUS-n[X5nUcM[X5nURU5 M7 g![a U(aMNef=f)zRemove the indices for pack from the aggregated indices.

:param ignore_missing: Suppress KeyErrors from calling remove_index.
r�N)rSr�rnrpr#)r#r��ignore_missingr��	attr_name�aggregate_index�
pack_indexs       r$r^�-RepositoryPackCollection._remove_pack_indices�se��
�0�0�J�"�X�-�I�%�d�6�O��*�$�T�5�
��#�0�0��<�
1�� ��%� ���s�A�A!�A!c�h�URR5 URR5 URR5 URR5 UR
bUR
R5 SUlSUl/Ul0Ul	SUl
g)zClear all cached data.N)rbrirdrCrcrerr�rur�r�rks r$�reset�RepositoryPackCollection.reset�s���	
���!�!�#����"�"�$����������"�"�$��>�>�%��N�N� � �"���������
� ���"��r&c�L�URRR5 g)z.Release the mutex around the pack-names index.N)r�r��unlockrks r$�
_unlock_names�&RepositoryPackCollection._unlock_names�s���	�	���&�&�(r&c���[5nUR5H+up#nURUSRS5U45 M- [U5n[5nURR5H.upxURUSR
SU5545 M0 URU-
n	X`R-
n
URU	5 URU
5 XX�4$)a/Read the pack names from disk, and compare it to the one in memory.

:return: (disk_nodes, deleted_nodes, new_nodes)
    disk_nodes    The final set of nodes that should be referenced
    deleted_nodes Nodes which have been removed from when we started
    new_nodes     Nodes that are newly introduced
rrrc3�,# �UH
nSU-v� M g7f)s%dNr/)rsrEs  r$rx�<RepositoryPackCollection._diff_pack_names.<locals>.<genexpr>s���.N���u�t�|��rz)
r�rrrr��itemsrr��difference_updater)r#�
disk_nodesr�rOr�orig_disk_nodes�
current_nodesr��sizes�
deleted_nodes�	new_nodess           r$�_diff_pack_names�)RepositoryPackCollection._diff_pack_names�s����U�
�"&�"<�"<�">��F���N�N�C��F�M�M�'�2�E�:�;�#?��j�/����
��;�;�,�,�.�K�D����t�T�Y�Y�.N��.N�%N�O�P�/�
�+�+�m�;�
�!�$7�$7�7�	�	�$�$�]�3����)�$��)�D�Dr&c�X�/n/n/n[U5nUR5HAnURU;dMURUR5 UR	U5 MC UH�upxURU5n	XpR;afX�RU:waRUR	URU55 X�RU'URU5 URU5 M�M�X�RU'URU5 URU5 M� X#U4$)z�Given the correct set of pack files, update our saved info.

:return: (removed, added, modified)
    removed     pack names removed from self._names
    added       pack names added to self._names
    modified    pack names that had changed value
)�dictr�r�r�r�rr�r�)
r#rs�removed�added�modified�	new_namesr�r�rrvs
          r$�&_syncronize_pack_names_from_disk_nodes�?RepositoryPackCollection._syncronize_pack_names_from_disk_nodess
����������$�	��N�N�$�D��y�y�	�)����t�y�y�)��-�-�d�3�%�
&�K�D��+�+�E�2�E��{�{�"��K�K��-�-��1�1�$�2G�2G��2M�N�(-�K�K��%��)�)�$�/��O�O�D�)�.�%*���D�!��%�%�d�+����T�"�+&�,�x�'�'r&c��/nUR5 UR5nUR5upVpxUH'up�URU	R	S54U
5 M) UR
R
SUR5URRR5S9 XPlU(a5SnU(aUVs1sHo�RiM nnURU5nUR5 URU5 U(a4UVs/sHo�RU;dMUPM nnUR!U5 UV
s/sHo�SPM	 sn
$s snf!UR5 f=fs snfs sn
f)a�Save the list of packs.

This will take out the mutex around the pack names list for the
duration of the method call. If concurrent updates have been made, a
three-way merge between the current list and the current in memory list
is performed.

:param clear_obsolete_packs: If True, clear out the contents of the
    obsolete_packs directory.
:param obsolete_packs: Packs that are obsolete once the new pack-names
    file has been written.
:return: A list of the names saved that were not previously on disk.
rr9r�Nr)r�rry�add_node�encoder�put_filer�r�r�r�r�r�r�rlr�rN)r#r�r��already_obsolete�builderrsrwrxrtr�r�to_preserve�o�new_nodes              r$r��)RepositoryPackCollection._save_pack_names@sf��������	!��/�/�1�G��%�%�'�
D�Z�	� *���� � �$�+�+�g�"6�!8�%�@� *��N�N�#�#����� ��Y�Y�)�)�8�8�:�
$�
�
#-��#�"��!�3A�"B�>�a�6�6�>�K�"B�#'�#=�#=�k�#J� ���� ��3�3�J�?��*��)�a�V�V�;K�-K��>�
��
� � ��0�,5�6�I����I�6�6��!#C��
��� ����7s0�B5E'�	E"�E'�E<�4E<�F�"E'�'E9c���UR5nU(agUR5up#pEXPlURU5upgn[	U=(d U=(d U5$)a#Sync our pack listing with what is present in the repository.

This should be called when we find out that something we thought was
present is now missing. This happens when another process re-packs the
repository, etc.

:return: True if the in-memory list of packs has been altered at all.
T)r�ryr�r�r.)	r#�
first_readrsrwrxrtr}r~rs	         r$r��*RepositoryPackCollection.reload_pack_namesusg���'�'�)�
���
�!�!�#�	@��I�.��%)�%P�%P��&
�"����G�0�u�0��1�1r&c��UR5(de[URS[R"55e�z:Reload the pack names list, and restart the autopack code.F)r�r1r��sysr!rks r$r��*RepositoryPackCollection._restart_autopack�s/���%�%�'�'�
��D�I�I�u�c�l�l�n�=�=r&c��UR5(de[URS[R"55er�)r�r�r�r�r!rks r$r�1RepositoryPackCollection._restart_pack_operations�s/���%�%�'�'�
�!�$�)�)�U�C�L�L�N�C�Cr&c���/nURRS5nUc
[5nURS5nUHJn[RU5upgUS:XaURU5 Xa;aM8URU5 ML U$![R
a Us$f=f![R[R4a%n[SRU55 SnAM�SnAff=f)z�Delete everything from the obsolete-packs directory.

:return: A list of pack identifiers (the filename without '.pack') that
    were found in obsolete_packs.
r�N�.r�z.couldn't delete obsolete pack, skipping it:
{})r�cloner��list_dirr/r0r�splitextr�r�rrKrLrr�)	r#�preserve�found�obsolete_pack_transport�obsolete_pack_files�filenamer��extr1s	         r$r��.RepositoryPackCollection._clear_obsolete_packs�s�����"&�.�.�"6�"6�7G�"H�����u�H�	�"9�"B�"B�3�"G��,�H��(�(��2�I�D��g�~����T�"����
U�'�.�.�x�8�,�����(�(�	��L�	���$�$�f�&;�&;�<�
U��I�P�P�QR�S�T�T��
U�s)�B�8B+�B(�'B(�+$C4�C/�/C4c��URR5(d[R"U5eUR	USURR
R
5S9UlURRURRUR5 URRURRUR5 URRURRUR5 URRRSS9 URRURRUR5 URb�URRURRUR5 URRURR R"lURRRSS9 URRURR&R"lURRURR(R"lURRURR*R"lURRURR,R"lg)Nr�r�Fr�)r��is_write_lockedr�NotWriteLockedr�r�r�rrbrercrCr�rdrer[�	chk_bytesr��
_add_callbackrp�	revisions�
signaturesrorks r$�_start_write_group�+RepositoryPackCollection._start_write_group�s���y�y�(�(�*�*��'�'��-�-��*�*���4�9�9�3G�3G�3V�3V�3X�+�
���	
���.�.��N�N�)�)�4�>�>�	
�	
���/�/��N�N�*�*�D�N�N�	
�	
���*�*�4�>�>�+D�+D�d�n�n�U����!�!�.�.�u�.�M����/�/��N�N�*�*�D�N�N�	
��>�>�%��N�N�-�-�d�n�n�.F�.F����W�7;�~�~�7R�7R�D�I�I���&�&�4��N�N�$�$�1�1�%�1�P�59�5I�5I�5V�5V��	�	���$�$�2�37�3F�3F�3S�3S��	�	���"�"�0�48�4H�4H�4U�4U��	�	���#�#�1�/3���/K�/K��	�	�����,r&c� �URbt[R5nUR[USS5 URUR
URSS9 URR
5 SSS5 URHKn[R5nURUR
USS9 UR
5 SSS5 MM URSS2	g!,(df   Ny=f!,(df   M=f)NrT)rb)r�
contextlib�	ExitStack�callbackr�r^r�r�)r#�stack�resumed_packs   r$�_abort_write_group�+RepositoryPackCollection._abort_write_group�s����>�>�%��%�%�'�5����w��k�4�@�
����-�-�t�~�~�d������$�$�&�(�!�/�/�L��%�%�'�5�����-�-�|�D����"�"�$�(�'�0�
����"�#(�'��(�'�s�AC-�%,C>�-
C;�>
D
	c�j�URHnURU5 M URSS2	grr)r�r^)r#r�s  r$�_remove_resumed_pack_indices�5RepositoryPackCollection._remove_resumed_pack_indices�s.�� �/�/�L��%�%�l�3�0�����"r&c��/$)z�Detect missing inventories in this write group.

:returns: list of strs, summarising any problems found.  If the list is
    empty no problems were found.
r/rks r$�_check_new_inventories�/RepositoryPackCollection._check_new_inventories�s	���	r&c���[5nSURR4SURR4SURR4SURR
44H:up#UR
5nURUVs/sHoR4U-PM
 sn5 M< U(a9[R"SRUR[U555eUR5nU(a*SRU5n[R"SU-5eURUR5 SnURR!5(a?URR#5 UR%UR5 SUlS	nO!URR'5 SUlUR(HPn	SUR*U	R,'UR/U	5 U	R#5 UR%U	5 S	nMR UR(SS2	U(a)UR15n
U
(dUR35$U
$/$s snf)
Nr�rpror�z5Repository {} has missing compression parent(s) {!r} �
z&Cannot add revision(s) to repository: FT)r�r�r�rpror��#get_missing_compression_parent_keysrrr�r�rr�rr^rr/r�r6r�r�r�r�r�r�r�)r#�all_missing�prefix�versioned_filer�rO�problems�problems_summary�any_new_contentr�r�s           r$�_commit_write_group�,RepositoryPackCollection._commit_write_groups���e��
�$�)�)�-�-�.�
�D�I�I�1�1�2�
�d�i�i�o�o�&�
�4�9�9�/�/�0�	'
�"�F�%�H�H�J�G����7�C�7�C�	�C��7�C�D�'
���&�&�G�N�N��I�I�v�k�2���
�
�.�.�0���#�y�y��2���&�&�8�;K�K��
�	
�!�!�$�.�.�1����>�>�'�'�)�)��N�N�!�!�#��M�M�$�.�.�)�!�D�N�"�O��N�N� � �"�!�D�N� �/�/�L�.2�D�K�K��)�)�*��)�)�,�7����!��M�M�,�'�"�O�0�
����"���]�]�_�F���,�,�.�.��M��	��Q Ds�
I%
c��URVs/sHoRPM nnURUR5 URR	5(aFURRSS9 UR
URR5 SUlO!URR5 SUlUR5 U$s snf)NT)r=)	r�r�r^rr/r�r�r�r�)r#r��tokenss   r$�_suspend_write_group�-RepositoryPackCollection._suspend_write_group3s���(,�(;�(;�<�(;��)�)�(;��<��!�!�$�.�.�1��>�>�'�'�)�)��N�N�!�!�$�!�/��M�M�$�.�.�-�-�.�!�D�N��N�N� � �"�!�D�N��)�)�+��
��=s�Cc�8�UHnURU5 M grr)r2)r#r��tokens   r$�_resume_write_group�,RepositoryPackCollection._resume_write_groupAs���E����e�$�r&)rr�rr�rrr�r�r�r�r
rer;rcrur�rbrdrCrrr�NF)FFrO�FN)6r'r(r)r*r+r�r��__annotations__r�rsrr�r�r�r�r�r�r�r�r�r�r�r�r�rr�r2r6rr$r�r�rNr�r[r�r^rhrlryr�r�r�r�rr�r�r�r�r�r�r�r�r.r/r&r$r�r��s���
�w�-���{�+�+��f��%�!�&�\�)�CF�JE�;� 
��0/�b"�H#�-�Q�)�6
�$34�j�.B��:%�N,�X�� �*�,Y�\&� 4� ��"#�*)�E�@)(�V37�j2�<>�D��4L�:#�.#�
�1�f�%r&r�c��\rSrSr%Sr\\\S'\\S'Sr	Sr
SrSrS	r
S
rSrSrS
rSrSrSrSSjrSrSrSrSSjrSSjrSr\"\R<\R>5S5r Sr!g)�PackRepositoryiFa�Repository with knit objects stored inside pack containers.

The layering for a KnitPackRepository is:

Graph        |  HPSS    | Repository public layer |
===================================================
Tuple based apis below, string based, and key based apis above
---------------------------------------------------
VersionedFiles
  Provides .texts, .revisions etc
  This adapts the N-tuple keys to physical knit records which only have a
  single string identifier (for historical reasons), which in older formats
  was always the revision_id, and in the mapped code for packs is always
  the last element of key tuples.
---------------------------------------------------
GraphIndex
  A separate GraphIndex is used for each of the
  texts/inventories/revisions/signatures contained within each individual
  pack file. The GraphIndex layer works in N-tuples and is unaware of any
  semantic value.
===================================================

�_commit_builder_class�_serializerc�H�[R"XX#5 X@lXPlSUlUR
R(a)[RUR55Ul
O[RU5Ul
URR5 g)NT)rrr�r��_reconcile_fixes_text_parentsr��supports_external_lookupsr@�CachingParentsProvider� _make_parents_provider_unstacked�_unstacked_provider�
disable_cache)r#r��a_controldirr�r�r�s      r$r�PackRepository.__init__fs{��	�"�"�4�,�N�%:�"�&��-1��*��<�<�1�1�',�'C�'C��5�5�7�(�D�$�(-�'C�'C�D�'I�D�$�� � �.�.�0r&c��UR5 URR5Vs/sHoSPM	 snsSSS5 $s snf!,(df   g=f)z"See Repository.all_revision_ids().rN)�	lock_readr�rN)r#rOs  r$�_all_revision_ids� PackRepository._all_revision_idsusC��
�^�^�
�&*�n�n�&9�&9�&;�<�&;�s��F�&;�<��
��<��
�s�A
�A�A
�A
�
Ac��URRRR5 URR5 grr)r�r��_key_dependenciesrirBr�rks r$r��!PackRepository._abort_write_groupzs0�������/�/�5�5�7����0�0�2r&c��URR(dUR$[R	[UR/UR55$rr)r�r�r�r@�StackedParentsProviderr�_fallback_repositoriesrks r$�_make_parents_provider�%PackRepository._make_parents_provider~sG���|�|�5�5��+�+�+��+�+��4�3�3�4�d�6Q�6Q�R�
�	
r&c���UR5(dgURR5 URR	5 URR5 grr)rrBr�r�r��enable_cacherks r$�
_refresh_data�PackRepository._refresh_data�sH���~�~�������/�/�1�� � �.�.�0�� � �-�-�/r&c�8�URR5 grr)rBr�rks r$r��!PackRepository._start_write_group�s�����0�0�2r&c��URR5nURRRR5 URR5 URR5 U$rr)	rBr�r�r�r�rir�r�r�)r#r�s  r$r��"PackRepository._commit_write_group�s]���$�$�8�8�:�������/�/�5�5�7�	
� � �.�.�0�� � �-�-�/��r&c��URR5nURRRR5 SUlU$rr)rBr�r�r�r�ri�_write_group)r#r�s  r$�suspend_write_group�"PackRepository.suspend_write_group�s?���&�&�;�;�=�������/�/�5�5�7� ����
r&c�F�UR5 URRU5 URRH2nURRRUR5 M4 g![Ra UR5 ef=frr)r�rBr�rr.r�r�r�r��scan_unvalidated_indexrb)r#r�r�s   r$r��"PackRepository._resume_write_group�s������!�	��!�!�5�5�f�=��)�)�8�8�D��N�N�!�!�8�8��9L�9L�M�9���+�+�	��#�#�%��	�s�A:�:&B c�p�UR(aUR$URR5$rr)�_write_lock_count�_transactionr��get_transactionrks r$r��PackRepository.get_transaction�s,���!�!��$�$�$��%�%�5�5�7�7r&c�\�UR=(d URR5$rr)r�r�rrks r$r�PackRepository.is_locked�s"���%�%�G��);�);�)E�)E�)G�Gr&c��UR$rr)r�rks r$r��PackRepository.is_write_locked�s���%�%�%r&Nc�<�UR5nUR(dU(a[R"U5eU=RS-
slURS:Xa[R5UlU(d�S[R;aURS:Xa[SU5 SUl	URR5 URHnUR5 M UR5 [!UR"S5$)zYLock the repository for writes.

:return: A breezy.repository.RepositoryWriteLockResult.
r�relock�wz%r was write locked againN)rr�r�
ReadOnlyError�transactions�WriteTransactionr�rr�
_prev_lockrr�r�r�r�r�r
rk)r#r��lockedr�s    r$r��PackRepository.lock_write�s���
���!���%�%�&��&�&�t�,�,����!�#���!�!�Q�&� ,� =� =� ?�D����5�,�,�,����C�1G��0�$�7�!�D�O��$�$�1�1�3��3�3����� �4�
��� �(����d�;�;r&c���UR5nUR(aU=RS-
slOURR5 U(d�S[R
;aURS:Xa[SU5 SUlURR5 URHnUR5 M UR5 [UR5$)zJLock the repository for reads.

:return: A breezy.lock.LogicalLockResult.
rrrwz%r was read locked again)rr�r�r�rrrrr�r�r�r�rrk)r#rr�s   r$r��PackRepository.lock_read�s���
���!���!�!��"�"�a�'�"����(�(�*���5�,�,�,����C�1G��/��6�!�D�O��$�$�1�1�3��3�3����� �4���� � ����-�-r&c�,�[UR5err)r��leave_lock_in_placerks r$r�"PackRepository.leave_lock_in_place�s��!�$�":�":�;�;r&c�,�[UR5err)r��dont_leave_lock_in_placerks r$r�'PackRepository.dont_leave_lock_in_place�s��!�$�"?�"?�@�@r&c��UR5 URRXS9 SSS5 g!,(df   g=f)z�Compress the data within the repository.

This will pack all the data to a single pack. In future it may
recompress deltas or do other such expensive operations.
)r�r�N)r�rBr�)r#r�r�s   r$r��PackRepository.pack�s6���_�_�
��!�!�&�&��
'�
��
�
�s	�4�
Ac��SSKJn UR5 U"XS9nUR5sSSS5 $!,(df   g=f)zReconcile this repository.r)�PackReconciler)�thoroughN)�	reconcilerr�)r#r�rr�
reconcilers     r$r�PackRepository.reconcile�s1��-�
�_�_�
�'��@�J��'�'�)��
�
�s	�7�
Ac�,�[UR5err)r��_reconcile_pack)r#�
collectionru�	extension�revsr�s      r$r�PackRepository._reconcile_pack�s��!�$�"6�"6�7�7r&c��URS:XajURb]UR5 URR	5 SUlSUl[R"SRU55eUR(aJU=RS-slUR(d#UR
nSUlUR5 OURR5 UR5(d>URR	5 URHnUR5 M gg)Nrrz6Must end write group before releasing write lock on {})r�r��abort_write_groupr�r�r�rrr�r�r�rkrr�)r#�transactionr�s   r$rk�PackRepository.unlock�s����!�!�Q�&�4�+<�+<�+H��"�"�$��$�$�2�2�4� $�D��%&�D�"��/�/�H�O�O�PT�U��
��!�!��"�"�a�'�"��)�)�"�/�/��$(��!��"�"�$�����%�%�'��~�~����$�$�2�2�4��3�3�����
�4� r&)r�rr�r�r�r�r�r�rrr�)"r'r(r)r*r+r�rr�rrr�r�r�r�r�r�r�r�r�rr�r�r�rrr�rrrr�LockNotHeld�
LockBrokenrkr.r/r&r$r�r�Fs����8 � :�;�;���
1�=�
3�
�0�3���N�8�H�&�<�,.�(<�A�	�*�8���#�#�V�%6�%6�7��8�r&r�c���\rSrSr%Sr\\\S'\\\S'\	\S'Sr
\\S'Sr\\S	'Sr
\\S
'\\R\S'\\\S'Sr\\S
'Sr\\S'Sr\\S'Sr\\S'SSjrSSjrSrg)�RepositoryFormatPackia�Format logic for pack structured repositories.

This repository format has:
 - a list of packs in pack-names
 - packs in packs/NAME.pack
 - indices in indices/NAME.{iix,six,tix,rix}
 - knit deltas in the packs, knit indices mapped to the indices.
 - thunk objects to support the knits programming API.
 - a format marker of its own
 - an optional 'shared-storage' flag
 - an optional 'no-working-trees' flag
 - a LockDir lock
�repository_classr�r�T�supports_ghostsFr��
supports_chksr%r��_fetch_uses_deltas�fast_deltas�supports_funky_characters�%revision_graph_can_have_wrong_parentsc�$�[SURR5 /SQnUR5nSUR	54/nSUR54/nUR
XXVU5 URUSS9nURXqU5 U$)z�Create a pack based repository.

:param a_controldir: bzrdir to contain the new repository; must already
    be initialized.
:param shared: If true the repository will be initialized as a shared
               repository.
zcreating repository in %s.)r�r�ru�uploadr9r�T)r��_found)	rrrr%r��get_format_string�_upload_blank_contentr�_run_post_repo_init_hooks)r#r��shared�dirsr��files�
utf8_filesrFs        r$�
initialize�RepositoryFormatPack.initialize=s���	�+�\�-C�-C�-H�-H�I�?���*�*�,������ 0�1�2����!7�!7�!9�:�;�
��"�"�<�u�&�Q��Y�Y�L��Y�F�
��&�&�z��H��r&Nc��U(d[R"U5 UbUnOURS5n[R"US[
R5nURUUUURURS9$)z�See RepositoryFormat.open().

:param _override_transport: INTERNAL USE ONLY. Allows opening the
                            repository at a slightly different url
                            than normal. I.e. during 'upgrade'.
N�lock)r�r�r�r�r�)
r�find_format�get_repository_transportr�
LockableFilesr�LockDirr'r�r�)r#r�r0�_override_transport�repo_transportr�s      r$r�RepositoryFormatPack.openPs����#�/�/��=��*�0�N�)�B�B�4�H�N�&�4�4��F�G�O�O�
�
��$�$��%�'�"&�"<�"<��(�(�%�
�	
r&r/rOr�)r'r(r)r*r+r�r�r�rrr(r.r�r)�
_mod_index�GraphIndexBuilder�objectr*r+r,r-r8rr.r/r&r$r&r&s���� �>�*�*� � :�;�;��� �O�T� �&+��t�+��M�4���j�:�:�;�;��f���#���#��K���&*��t�*�26�)�4�6��&
r&r&c� �\rSrSrSrSrSrSrg)r�iiz�Raised when we are packing and we find a missing file.

Meant as a signaling exception, to tell the RepositoryPackCollection.pack
code it should try again.
TzWPack files have changed, reload and try pack again. context: %(context)s %(orig_error)sr/Nr3r/r&r$r�r�ir4r&r�c�F�\rSrSrSrSSjrSrSrSrSr	S	r
S
rSrg)
rYixz:Access to data in one or more packs with less translation.Nc�D�SUlSUlXlX lX0lg)aOCreate a _DirectPackAccess object.

:param index_to_packs: A dict mapping index objects to the transport
    and file names for obtaining data.
:param reload_func: A function to call if we determine that the pack
    files have moved and we need to reload our caches. See
    breezy.repo_fmt.pack_repo.AggregateIndex for more details.
N)�_container_writerr:rjrV�_flush_func)r#�index_to_packsrTrUs    r$r�_DirectPackAccess.__init__{s%��"&��� ���&�
�'��%�r&c�Z�URRX2/5upEURXE4$)a�Add raw knit bytes to a storage area.

The data is spooled to the container writer in one bytes-record per
raw data item.

:param key: key of the data segment
:param size: length of the data segment
:param raw_data: A bytestring containing the data.
:return: An opaque index memo For _DirectPackAccess the memo is
    (index, pos, length), where the index field is the write_index
    object supplied to the PackAccess object.
)rI�add_bytes_recordr:)r#rOrE�raw_data�p_offset�p_lengths      r$�add_raw_record� _DirectPackAccess.add_raw_record�s1��"�3�3�D�D�X�UW�X����!�!�8�6�6r&c�
�SRU5n[U[5(d#[SR	[U555e/nSnUH/upVUR
URXVX$XF-/55 XF-
nM1 U$)a�Add raw knit bytes to a storage area.

The data is spooled to the container writer in one bytes-record per
raw data item.

:param sizes: An iterable of tuples containing the key and size of each
    raw data segment.
:param raw_data: A bytestring containing the data.
:return: A list of memos to retrieve the record later. Each memo is an
    opaque index memo. For _DirectPackAccess the memo is (index, pos,
    length), where the index field is the write_index object supplied
    to the PackAccess object.
r&zdata must be plain bytes was {}r)rr�rr�r�r�r�rR)r#�	key_sizesrOr�r�rOrEs       r$�add_raw_records�!_DirectPackAccess.add_raw_records�s����8�8�H�%���(�E�*�*� �1�8�8��h��H��
�����"�I�C��M�M��#�#�C��&�-�0P�/Q�R�
�
�N�F�	#�
�
r&c�@�URbUR5 gg)z_Flush pending writes on this access object.

This will flush any buffered writes to a NewPack.
N)rJrks r$r�_DirectPackAccess.flush�s!��
���'�����(r&c#�# �/nSnUH;upEnX4:XaWRXV45 MUbURUW45 UnXV4/nM= UbURUW45 UHQupHURUup�[RX�U5nUR5Hup�U"S5v� M MS g![a2nURce[	US[
R"5S9UeSnAff=f![RaAnURce[	U	RU
5S[
R"5S9UeSnAff=f7f)a*Get the raw bytes for a records.

:param memos_for_retrieval: An iterable containing the (index, pos,
    length) memo for retrieving the bytes. The Pack access method
    looks up the pack to use for a given record in its index_to_pack
    map.
:return: An iterator over the bytes of the records.
NT)r r!F)
r�rjr#rVrr�r!r��make_readv_reader�iter_recordsr/r0�abspath)r#�memos_for_retrieval�
request_lists�
current_indexr
r��length�current_list�offsetsr�pathr1�readerr��	read_funcs               r$�get_raw_records�!_DirectPackAccess.get_raw_records�sh����
��
�%8�!�E�6��%��#�#�V�$4�5� �,�!�(�(�-��)F�G� %�
�!'� 0�1��&9��$�� � �-��!>�?�+�N�E�
�"&�-�-��"6��	�

��/�/�	��I��)/�)<�)<�)>�%�F�#�D�/�)�*?�!,���

��$�$�,��'��4�#�,�,�.�����

��"�,�,�	
��$�$�,��'��%�%�d�+�$)� �\�\�^���	��	
�sH�A#E
�&B6�89C5�1E
�6
C2�-C-�-C2�2E
�5E
�	<E�E
�
E
c�>�UbX0RU'XlX lg)z$Set a writer to use for adding data.N)rjrIr:)r#�writerr
�transport_packnames    r$rc�_DirectPackAccess.set_writer�s ����#5�M�M�%� �!'��!�r&c��SnURcSnO(UR5(dUR(dSnU(aURSeg)a2Try calling the reload function, or re-raise the original exception.

This should be called after _DirectPackAccess raises a
RetryWithNewPacks exception. This function will handle the common logic
of determining when the error is fatal versus being temporary.
It will also make sure that the original exception is raised, rather
than the RetryWithNewPacks exception.

If this function returns, then the calling function should retry
whatever operation was being performed. Otherwise an exception will
be raised.

:param retry_exc: A RetryWithNewPacks exception.
FNTr)rVr r!)r#�	retry_exc�is_errors   r$�reload_or_raise�!_DirectPackAccess.reload_or_raise�sR�������$��H��"�"�$�$��,�,� ����$�$�Q�'�'�r&)rIrJrjrVr:rh)
r'r(r)r*r+rrRrVrrgrcrpr.r/r&r$rYrYxs)��D�
&�7� �8�2�h"�(r&rY)0r,r�r�globalsrNrrrrr/�bzrr	r
rC�
decoratorsrr;rrFr
r�tracerrrrr�
serializerr�
vf_repositoryrrrrrr1r6rSr�r�r�rQrsr�r�r&r�rYr/r&r$�<module>rxs��"
�
�%���I���,/�.�*��%�$�$�A�)�)�B�"���&����&�F�%��'@�2�'@�TP
�P
�f6-�4�6-�rV,�,�V,�r6�d�6�DXB�XB�v{(�{(�|j%�j%�ZM�3�M�`P
�?�P
�f�+��\(�\(r&

Youez - 2016 - github.com/yon3zu
LinuXploit