403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.17
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__/groupcompress_repo.cpython-313.pyc
�

p��g+���SrSSKrSSKJrJrJrJrJrJr SSKJ	r
 SSKJrJ
r
JrJrJr SSKJr SSKJrJr SS	KJrJr SS
KJr SSKJrJrJrJrJ r J!r!J"r"J#r#J$r$ "S
S\5r%"SS\#5r&"SS\5r'"SS\'5r("SS\'5r)"SS\"5r*"SS\ 5r+"SS\5r,"SS5r-Sr.S r/"S!S"\!5r0"S#S$\05r1g)%zGRepository formats using CHK inventories and groupcompress compression.�N�)�
controldir�debug�errors�osutils�trace�ui)�revision)�chk_map�chk_serializer�	inventory�pack�
versionedfile)�index)�BTreeBuilder�BTreeGraphIndex)�GroupCompressVersionedFiles�
_GCGraphIndex)�StreamSource�)	�NewPack�Pack�PackCommitBuilder�Packer�PackRepository�RepositoryFormatPack�RepositoryPackCollection�ResumedPack�_DirectPackAccessc�$�\rSrSrSSjrSrSrg)�GCPack�)Nc
�^�URnURbU"SS9nOSn[R"TU"SS9U"SS9U"SSS9U"SS9US9 UTlUR
TlURTlURTl
URTlUTl
[R"5TlSTlSTl[R&"S5U-Tl[*R*"5TlTRR/TR(TRS	9TlS
[2R4;ak[6R8"S[*R:"5TRR<TR([*R*"5TR,-
5 /S/TlSTR>TR0R@TR RB4U4S
jjnUTl"[FRH"TRD5Tl%TRJRM5 STl'STl(g)a4Create 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: An optional file mode to create the new files with.
Nr)�reference_listsrr)r$�key_elements)�	chk_index�)�moderz0%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)Nrr�)�append�len�_cache_limit�join)�data�flush�_buffer�_write�_update�selfs     ��?/usr/lib/python3/dist-packages/breezy/bzr/groupcompress_repo.py�_write_data�$GCPack.__init__.<locals>._write_data�so���
�A�J���d�#��A�J�#�d�)�#�J��q�z�D�-�-�-���x�x���
�+���t����
� �!�W���
�	27r*�open))�_index_builder_classr&r�__init__�_pack_collection�_index_class�index_class�_upload_transport�upload_transport�_index_transport�index_transport�_pack_transport�pack_transport�
_file_moder�md5�_hash�index_sizesr-�
rand_chars�random_name�time�
start_time�open_write_stream�write_streamr�debug_flagsr�mutter�ctime�baser1�write�updater6r�ContainerWriter�_writer�begin�_state�name)r4�pack_collection�
upload_suffix�	file_mode�index_builder_classr&r6s`      r5r:�GCPack.__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�&�&�&��L�L�B��
�
���%�%�*�*�� � ��	�	��d�o�o�-�
��A�w�����L�L��$�$�*�*��J�J�%�%�	%�"'����+�+�D�,<�,<�=��������������	r*c��g)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>)
N��r4s r5�_check_references�GCPack._check_references���r*)r1r-rDrFr;rWr6rUr=rGrArXrCrIrKr?rM)�N)�__name__�
__module__�__qualname__�__firstlineno__r:ra�__static_attributes__r_r*r5r!r!)s��o�br*r!c� �\rSrSrSrSrSrg)�
ResumedGCPack�c��g)z7Make sure our external compression parents are present.Nr_r`s r5ra�ResumedGCPack._check_references�rcr*c��[5$�N)�set)r4rs  r5�_get_external_refs� ResumedGCPack._get_external_refs�s���u�r*r_N)rerfrgrhrarrrir_r*r5rkrk�s
��F�r*rkc�^�\rSrSrSrSU4SjjrSrSSjrSSjrSSjr	Sr
S	rS
rSr
SrS
rSrSrSrSrU=r$)�GCCHKPacker�z<This class understand what it takes to collect a GCCHK repo.c�>�[TU]UUUUUS9 XlURc[	S5eSUl/Ul/UlSUlSUl	g)N)�revision_ids�reload_funcz,pack_collection.chk_index should not be NoneF)
�superr:r;r&�AssertionError�_gather_text_refs�
_chk_id_roots�_chk_p_id_roots�
_text_refs�
revision_keys)r4rY�packs�suffixrxry�	__class__s      �r5r:�GCCHKPacker.__init__�sm���	������%�#�	�	
�!0���$�$�,� �!O�P�P�!&������!������!��r*c�*^^^^�UUUU4SjnU"5$)Nc3�># �TRTSS5n[U5H+upTbTRTUS-[T55 Uv� M- g7f)N�
groupcompressTr)�get_record_stream�	enumeraterSr,)�	substream�idx�record�keys�message�pb�	source_vfs   ����r5�	pb_stream�3GCCHKPacker._get_progress_stream.<locals>.pb_stream�sM����!�3�3�D�/�4�P�I�(��3����>��I�I�g�s�Q�w��D�	�:��� 4�s�AAr_)r4r�r�r�r�r�s ```` r5�_get_progress_stream� GCCHKPacker._get_progress_stream�s���	�	��{�r*c�D^^^^^�[T5mUUUUU4SjnU"5$)z7Filter the texts of inventories, to find the chk pages.c3�># �[5n[5nTRT	SS5n[U5GHup4URS5n[R
R
SXTR5nT
bT
RSUT
5 URR5nXp;a,TRRU5 URU5 URnUc[S5eUR5nXq;a,URU5 TRRU5 Uv� GM UR!5 UR!5 g7f)Nr�T�lines�inv� Parent id -> file_id map not set)rqr�r��get_bytes_asr
�CHKInventory�deserialise�keyrS�id_to_entryr}r+�add�parent_id_basename_to_file_idr{r~�clear)�id_roots_set�p_id_roots_set�streamr�r�r��chk_invr��p_id_mapr�r�r4r��
total_keyss         �����r5�_filtered_inv_stream�BGCCHKPacker._get_filtered_inv_stream.<locals>._filtered_inv_stream�s%�����5�L� �U�N��0�0����M�F�(��0����+�+�G�4��#�0�0�<�<�T�5�*�*�U���>��I�I�e�S�*�5��)�)�-�-�/���*��&�&�-�-�c�2� �$�$�S�)�"�@�@���#�(�)K�L�L��l�l�n���,�"�&�&�s�+��(�(�/�/��4���# 1�(
��� �� � �"�s�EE)r,)r4r�r�r�r�r�r�s``` ` @r5�_get_filtered_inv_stream�$GCCHKPacker._get_filtered_inv_stream�s!�����Y�
�	#�	#�6$�%�%r*c#�^^^^^	^
# �[U5m
[U5m	S/mTR(a[5TlSUUU	UUU
4SjjnU"TRTR5HnUv� M	 T?TR
Vs/sHofT	;dM
UPM nnT?U"US5HnUv� M	 T	(aG[R"ST
[T	55 TRcTRT	SS5nUv� gggs snf7f)NrFc3�*>^^^^^^# �UmT(a0mTRT5 [5mUUU4SjmU4SjmU	UUUUU
U
U4SjnU"5v� /m[T5H#nTRTR	U55 M% T(aM~gg7f)Nc��>�URR5HGupUT;dM
UT;dMTRU/5RU5 TR	U5 MI grp)�_items�items�
setdefaultr+r�)�node�prefix�value�keys_by_search_prefix�	next_keys�remaining_keyss   ���r5�handle_internal_node�ZGCCHKPacker._get_chk_streams.<locals>._get_referenced_stream.<locals>.handle_internal_nodesU���)-���):�):�)<�
��!�	�1�e�~�6M�1�<�<�V�R�H�O�O�PU�V�%�M�M�%�0�*=r*c�>�URS5H4upTRR[R"U55 M6 grp)�	iteritemsrr�r�_bytes_to_text_key)r��_file_id�bytesr4s   �r5�handle_leaf_node�VGCCHKPacker._get_chk_streams.<locals>._get_referenced_stream.<locals>.handle_leaf_node"s8���,0�>�>�$�+?������+�+�G�,F�,F�u�,M�N�,@r*c3�># �T
RTSS5nUH�nURS:XaMURS5n[R"X!R
SS9n[
U[R5(a	T"U5 OT(aT"U5 TS==S-
ss'T	bT	RSTST5 Uv� M� g7f)	Nzas-requestedT�absent�fulltext)�search_key_funcrrzchk node)	r��storage_kindr�r�_deserialiser��
isinstance�InternalNoderS)r�r�r�r��counter�cur_keysr�r��parse_leaf_nodesr�r�r�s    ��������r5�next_stream�QGCCHKPacker._get_chk_streams.<locals>._get_referenced_stream.<locals>.next_stream(s�����&�8�8��>�SW�X�F�"(��!�.�.�(�:�%� &� 3� 3�J� ?�� '�3�3�!�:�:�t� ��&�d�G�,@�,@�A�A�0��6�-�,�T�2���
�a��
��>��I�I�j�'�!�*�j�I�$��'#)�s�CC)�difference_updaterq�sorted�extend�pop)�	root_keysr�r�r�r�r�r�r�r�r�r�r�r4r�r�s `  @@@@@������r5�_get_referenced_stream�<GCCHKPacker._get_chk_streams.<locals>._get_referenced_streams���� �H��(*�%��0�0��:��E�	�
1�O�%�%�."�m�#���$�%:�;�F��O�O�$9�$=�$=�f�$E�F�<�w�(�s�BB�BzDThere were %d keys in the chk index, %d of which were not referenced�	unorderedT�F)
r,rqr|rr}r~rrOrxr�)r4r�r�r�r�r�r��chk_p_id_rootsr�r�r�s`` `    @@@r5�_get_chk_streams�GCCHKPacker._get_chk_streams�s���� ��Y�
��T����#���!�!�!�e�D�O�>	G�>	G�@-����� 6� 6�
�F��L�
�
��
*.�)=�)=�W�)=�#��AV�#�)=��W�� �,�^�U�C�F��L�D���L�L�V���N�#�
�
� � �(�"�4�4�^�[�RV�W����)�
��	X�s�A?D�	D�D�A,Dc	��US-n0n[XPRS9nU(a�URc[S5e[	URU5nURR5XW'UR
SS9 URURRXpRR55 URnO\/n	URH2n
[	X�5nU
R
"5X['U	RU5 M4 [R"U	5nSn[[UUUUR R"R$S9UUS9nU$)	z>Build a VersionedFiles instance on top of this group of packs.�_index)ryNzNo new pack has been setT)�for_size)�add_callback�parents�	is_locked��access�delta)r�_reload_func�new_packr{�getattr�access_tuple�set_optimize�
set_writerrU�	add_nodesr�r+�
_mod_index�CombinedGraphIndexrrr;�repor�)
r4�
index_namer�r��	for_write�
index_to_packr�rr��indicesr�	sub_index�vfs
             r5�	_build_vf�GCCHKPacker._build_vfcs5���(�*�
��
�"�=�>O�>O�P����}�}�$�$�%?�@�@��D�M�M�:�6�E�#'�=�=�#=�#=�#?�M� ������-�����
�
�%�%�u�m�m�.H�.H�.J�
�!�?�?�L��G��
�
��#�D�5�	�+/�+<�+<�+>�
�(����y�)�#��1�1�'�:�E��L�
(���)���/�/�4�4�>�>�	
���	
���	r*c�L�URXUSS9nURXUSS9nXE4$)z+Build the source and target VersionedFiles.F�r�T)r�)r4r�r�r�r��	target_vfs      r5�
_build_vfs�GCCHKPacker._build_vfs�s3���N�N�:���N�O�	��N�N�:���N�N�	��#�#r*c�T�[R"S[U5U5 URR	SRU5U5 [RR5nU"XXG5nURUSSS9Hu n	M SSS5 g!,(df   g=f)Nzrepacking %d %szrepacking {}TF��	random_id�reuse_blocks)
rrOr,r�rS�formatr	�
ui_factory�nested_progress_bar�_insert_record_stream)
r4r�r�r�r��vf_to_stream�	pb_offset�child_pbr��_s
          r5�_copy_stream�GCCHKPacker._copy_stream�s���	���&��D�	�7�;������~�,�,�W�5�y�A�
�]�]�
.�
.�
0�H�!�)�7�E�F�!�7�7��$�U�8����1���1�
0�
0�s�+%B�
B'c���URSSS5upUR(dUR5UlURUUURSURS5 g)Nr
TF�	revisionsr)r�r�r�rr��r4r�r�s   r5�_copy_revision_texts� GCCHKPacker._copy_revision_texts�s[��#���z�4��G��	��!�!�!*���!1�D������������%�%�
�
	
r*c���URSSS5upUR5n[UR5R	U5nU(axUR
RRRnURU5nUR	U5nU(a%[U5n[SRU55eURUUUSURS5 g)Nr
Tz,We are missing inventories for revisions: {}�inventoriesr)r�r�rqr��
differencer;r�rr��get_parent_mapr��
ValueErrorr�rr�)r4r�r��inventory_keys�missing_inventories�	inv_index�pmap�really_missings        r5�_copy_inventory_texts�!GCCHKPacker._copy_inventory_texts�s���#���{�D�$�G��	�#���)��!�$�"4�"4�5�@�@��P����-�-�2�2�>�>�E�E�I��+�+�,?�@�D�0�;�;�D�A�N��&,�^�&<�#� �B�I�I�+����
	
��������)�)�
�
	
r*c�(�URSSS5$)N�chkF)r�r`s r5�_get_chk_vfs_for_copy�!GCCHKPacker._get_chk_vfs_for_copy�s�����u�e�U�3�3r*c���UR5upUR5n[R"S[	UR
5[	UR5[	U55 URRSS5 [RR5nURXUS9HnURUSSS9Hu nM M  SSS5 g!,(df   g=f)NzErepacking chk: %d id_to_entry roots, %d p_id_map roots, %d total keysz
repacking chk��r�TFr�)rr�rrOr,r}r~r�rSr	r�rr�r)r4r�r�r�rr�rs       r5�_copy_chk_texts�GCCHKPacker._copy_chk_texts�s���#�9�9�;��	��^�^�%�
�
���S���"�"�#���$�$�%��
�O�		
�	
�������*�
�]�]�
.�
.�
0�H��/�/�	�(�/�S��%�;�;��d��<��D�A�q���T�1�
0�
0�s�%3C!�!
C/c��URSSS5upUR5nURXUSURS5 g)N�textT�texts�)r�r�rr�)r4r�r��	text_keyss    r5�_copy_text_texts�GCCHKPacker._copy_text_texts�sE��#���v�t�T�B��	��N�N�$�	�����)�W�d�6O�6O�QR�	
r*c���URSSS5upUR5nURUR5 UR	UUUSUR
S5 g)N�	signatureF�
signatures�)r�r��intersectionr�rr�)r4r�r��signature_keyss    r5�_copy_signature_texts�!GCCHKPacker._copy_signature_texts�s]��#���{�E�5�I��	�"���)���#�#�D�$6�$6�7���������%�%�
�
	
r*c��URRSSS5 UR5UlURR	S5 UR5 UR
5 UR5 UR5 UR5 URR5 URUR5(dURR5 gURR5 [UR5S:Xa}URSnUR URR"R%5:Xa<[&R("SUR 5 URR5 gURRSSS5 URR+5 UR,R/UR5 UR$)	N�	repackingr�irz+single pack %s was already optimally packedzfinishing repack�)r�rS�	open_packr��set_write_cache_sizerrr r'r/ra�	_use_pack�abort�finish_contentr,r�rXrF�	hexdigestrrO�finishr;�allocate)r4�old_packs  r5�_create_pack_from_packs�#GCCHKPacker._create_pack_from_packs�se�������{�A�q�)����(��
��
�
�*�*�;�7��!�!�#��"�"�$����������"�"�$��
�
�'�'�)��~�~�d�m�m�,�,��M�M���!���
�
�$�$�&��t�z�z�?�a���z�z�!�}�H��}�}��
�
� 3� 3� =� =� ?�?����A�8�=�=���
�
�#�#�%�������)�1�a�0��
�
�������&�&�t�}�}�5��}�}�r*)r}r~r|r;rr�r�)NNrpr�)rerfrgrh�__doc__r:r�r�r�r�r�rrrrr r'r/r>ri�
__classcell__�r�s@r5ruru�s]���F�NR�"�*�&�Bk�Z"�H$�
�
� 
�D4��&

�
��r*ruc�>^�\rSrSrSrU4SjrSrSrSrSr	U=r
$)�GCCHKReconcilePackeriz�A packer which regenerates indices etc as it copies.

This is used by ``brz reconcile`` to cause parent text pointers to be
regenerated.
c�B>�[TU]"U0UD6 SUlSUlg)NFT)rzr:�
_data_changedr|�r4�args�kwargsr�s   �r5r:�GCCHKReconcilePacker.__init__s%���
���$�)�&�)�"���!%��r*c���URSSS5upURUUURSURS5 UR	5UR:waSUlgg)Nr
Trr)r�rr�r�r�rFr
s   r5r�*GCCHKReconcilePacker._copy_inventory_texts"sg��#���{�D�$�G��	�����������)�)�
�
	
��>�>��t�1�1�1�!%�D��2r*c
�^^^�TRSSS5umn[R"S[TR55 TR
R
SS5 TRRnTRSSSSS9nURUR55nUR5VVVs0sH'upVUS	[UVs/sHowS	PM	 sn5_M) nnnnAURS
U5n	TRTR5n
/n0m/n[R n
TRHBn[X�5nX�4:XaSnX�nUU:XaUR#U5 M6STlUTU'MD A	A
UUU4SjnUR)U"55 g
s snfs snnnf![&a UR#U5 STlM�f=f)
z1Generate what texts we should have and then copy.r#Tzrepacking %d textszrepacking textsr%r
Fr�rNr_c3�># �TRTRSS5nUH+nURT;aTURUlUv� M- g7f)Nr�F)r�rr�r�)r�r��new_parent_keysr4r�s  ���r5�_update_parents_for_texts�HGCCHKReconcilePacker._copy_text_texts.<locals>._update_parents_for_textsesN�����0�0�����%��F�!���:�:��0�%4�V�Z�Z�%@�F�N���!�s�AA)r�rrOr,rr�rSr;r�r�rr�r��tuple�_generate_text_key_index�
_mod_revision�
NULL_REVISIONr+rF�KeyError�insert_record_stream)r4r�r��revision_vf�
ancestor_keys�kr��p�	ancestors�ideal_index�file_id_parent_map�ok_keys�discarded_keysrUr��
ideal_parents�source_parentsrPrOr�s`                 @@r5r'�%GCCHKReconcilePacker._copy_text_texts/s����#���v�t�T�B��	�9�
���)�3�t���+?�@������(�!�,��$�$�)�)���n�n�Z��u��n�M��#�2�2�;�3C�3C�3E�F�
�DQ�CV�CV�CX�
�CX�Z�Q�A�a�D�%�w�/�w�!�1��w�/�0�0�CX�	�
�
��3�3�D�)�D��&�5�5�d�o�o�F��������%�3�3�
��?�?�C�

9� %�k�&6� 7�
�
!�$4�4�$&�M�!3�!8�� �N�2��N�N�3�'�
*.�D�&�+8�O�C�(�-#�0
��	�	�&�&�'@�'B�C��e0��
��*�
*��%�%�c�*�%)��"�
*�s*�;F)�F$�F)�
F0�$F)�0"G�Gc�H�UR5=(a UR$�zAOverride _use_pack to check for reconcile having changed content.��
data_insertedrF�r4r�s  r5r7�GCCHKReconcilePacker._use_packp����%�%�'�>�D�,>�,>�>r*)rFr|)rerfrgrhr@r:rr'r7rirArBs@r5rDrDs#����&�
&�?D�B?�?r*rDc�P^�\rSrSrSrU4SjrSrSrSrS
Sjr	Sr
S	rU=r$)�GCCHKCanonicalizingPackeriuz�A packer that ensures inventories have canonical-form CHK maps.

Ideally this would be part of reconcile, but it's very slow and rarely
needed.  (It repairs repositories affected by
https://bugs.launchpad.net/bzr/+bug/522637).
c�4>�[TU]"U0UD6 SUlg�NF)rzr:rFrGs   �r5r:�"GCCHKCanonicalizingPacker.__init__}s���
���$�)�&�)�"��r*c	���URRSRU5U5 [RR5n[
U"XX655 SSS5 g!,(df   g=f)zrCreate and exhaust a stream, but don't insert it.

This is useful to get the side-effects of generating a stream.
zscanning {}N)r�rSr�r	r�r�list)r4r�r�r�rrrs       r5�_exhaust_stream�)GCCHKCanonicalizingPacker._exhaust_stream�sN��
	
�����}�+�+�G�4�i�@�
�]�]�
.�
.�
0�H���i�w�A�B�1�
0�
0�s�
A&�&
A4c� ^^^�TRSSS5upTR5ummUR5nTRXSTRS5 [
R
T5 SUUU4SjjnTRUUUSUS5 g)Nr
Trrc�,>�TRXX#TT5$rp)�'_get_filtered_canonicalizing_inv_stream)r�r�r�r�r4�
source_chk_vf�
target_chk_vfs    ���r5�chk_canonicalizing_inv_stream�VGCCHKCanonicalizingPacker._copy_inventory_texts.<locals>.chk_canonicalizing_inv_stream�s����?�?���m�]��
r*r%rp)r�rr�rrr�rur r)r4r�r�rryrwrxs`    @@r5r�/GCCHKCanonicalizingPacker._copy_inventory_texts�s����#���{�D�$�G��	�'+�'A�'A�'C�$�
�}�"���)��	
����}�d�6S�6S�UV�	
�	�#�#�D�)�	�	�
	
�������)�
�
	
r*c��grpr_r`s r5r �)GCCHKCanonicalizingPacker._copy_chk_texts�s��r*c�x^^^^^^^�[T5m[R"T5mUUUUUUU4SjnU"5$)zTFilter the texts of inventories, regenerating CHKs to make sure they
are canonical.
c	3�`># �TRTSS5nSn[U5GH�up#URS5n[RRTXCR5nTbTRSUT5 URR5 UcD[RnUR5H upXuRR:XdM  O [RRTUURRR US9nURR
5URR
5:wan["R$"SR'UR(URR
5SURR
5S55 ST
lUR,n	U	R5 UR,n
U	R
5U
R
5:waZ["R$"SR'UR(U	R
5SU
R
5S55 ST
l[.R0"URUR2UR4UR75SS	9v� GM� g7f)
Nr�Tr�r���maximum_size�search_key_namezKNon-canonical CHK map for id_to_entry of inv: {} (root is {}, should be {})rzUNon-canonical CHK map for parent_id_to_basename of inv: {} (root is {}, should be {}))�chunks_are_lines)r�r�r�r
r�r�r�rSr��_ensure_rootr�search_key_registryr��_search_key_func�from_inventory�
_root_node�
_maximum_sizerrOr��revision_idrFr�r�ChunkedContentFactoryr��sha1�to_lines)r�r�r�r�r�r��search_key_reg�func�
canonical_invr��canon_p_id_mapr�r�r4rwr�rxr�s           �������r5r��_GCCHKCanonicalizingPacker._get_filtered_canonicalizing_inv_stream.<locals>._filtered_inv_stream�sC�����0�0����M�F�"�O�(��0����+�+�G�4��#�0�0�<�<�!�5�*�*����>��I�I�e�S�*�5��#�#�0�0�2�"�*�%,�%@�%@�N�1?�1E�1E�1G�-���#6�#6�#G�#G�G�!�2H�!*� 6� 6� E� E�!��!(�!4�!4�!?�!?�!M�!M�$3�	!F�!�
��&�&�*�*�,�
�0I�0I�0M�0M�0O�O��L�L�5�5;�V�#�/�/�#�/�/�3�3�5�a�8�)�5�5�9�9�;�A�>�6��*.�D�&�"�@�@���%�%�'�!.�!L�!L���<�<�>�^�%7�%7�%9�9��L�L�=�=C�V�#�/�/�$�L�L�N�1�-�*�.�.�0��3�>��*.�D�&�#�9�9��J�J��N�N��K�K�!�*�*�,�%)���Y 1�s
�CJ.�GJ.)r,r�NoDupeAddLinesDecorator)	r4r�r�r�r�rwrxr�r�s	``` ``` @r5rv�AGCCHKCanonicalizingPacker._get_filtered_canonicalizing_inv_stream�s4�����Y�
�%�=�=�m�L�
�5	�5	�r$�%�%r*c�H�UR5=(a UR$rerfrhs  r5r7�#GCCHKCanonicalizingPacker._use_pack�rjr*)rF)NNN)
rerfrgrhr@r:rrrr rvr7rirArBs@r5rlrlus5����#�C�
�<
�
TX�B&�H?�?r*rlc�*�\rSrSr\r\r\r	\r
SrSrg)�GCRepositoryPackCollectioni�c�8�/nURRRRnUR	5nURR
RnURRRnURRRnURU5n[U5n[U5n	U	RU5 U	(a+URSR[U	555 U$[U5n
UR5HnU
RU5 M U
R!URU
55 U
R#U5nU
V
s/sHo�SPM	 nn
UV
s/sHo�SPM	 nn
[%URX�5nUR'5nURU5nUR)U5nU(a+URSR[U555 U$URRR+5nURRR,Ul[.R0"UUR2UR45n[5n[7UU[.R85HnM [.R0"UUR>UR@5nUHunnM URU5nUR)U5nU(a)URSR[U555 U$s sn
fs sn
f![:R<a URS5 N�f=f![:R<a URS5 N�f=f)z�Detect missing inventories or chk root entries for the new revisions
in this write group.

:returns: list of strs, summarising any problems found.  If the list is
    empty no problems were found.
z$inventories missing for revisions {}���zhmissing referenced chk root keys: {}.Run 'brz reconcile --canonicalize-chks' on the affected repository.z(missing chk node(s) for id_to_entry mapsz:missing chk node(s) for parent_id_basename_to_file_id mapszmissing text keys: {!r})!r�r	r��_key_dependencies�get_new_keysr�	chk_bytesr$rrqr�r+r�r��valuesrS�intersection_update�symmetric_difference�_build_interesting_key_sets�all_keysr�without_fallbacksr�r�iter_interesting_nodes�interesting_root_keys�uninteresting_root_keys�_filter_text_keysr�r�NoSuchRevision�interesting_pid_root_keys�uninteresting_pid_root_keys)r4�problems�key_deps�new_revisions_keys�no_fallback_inv_index�no_fallback_chk_bytes_index�no_fallback_texts_index�inv_parent_map�corresponding_invs�missing_corresponding�all_inv_keys�parent_inv_keys�parent_invs_only_keysr��inv_ids�parent_invs_only_ids�
root_key_info�expected_chk_roots�present_chk_roots�missing_chk_roots�chk_bytes_no_fallbacks�chk_diffr&�_record�_interesting_rec�_interesting_map�present_text_keys�missing_text_keyss                            r5�_check_new_inventories�1GCRepositoryPackCollection._check_new_inventories�sF�����9�9�&�&�-�-�?�?��%�2�2�4�� $�	�	� 5� 5� <� <��&*�i�i�&9�&9�&@�&@�#�"&�)�)�/�/�"8�"8��.�=�=�>P�Q�� ��0�� #�$6� 7���/�/�0B�C� ��O�O�6�=�=��0�1��
�
�O��-�.��-�4�4�6�O�����0� 7�	�(�(�!�0�0��>�	
�!-� A� A�BT� U��&2�3�l�s�r�7�l��3�3H�I�3H�C�B��3H��I�3��I�I�w�
�
�+�3�3�5��7�F�F��
��/�9�9�:K�L����O�O��$�f�V�,=�%>�?�
��O�"&���!4�!4�!F�!F�!H��26�)�)�2E�2E�2V�2V��/��1�1�"��/�/��1�1�
��
�E�	�	H�,��)�W�%?�%?������1�1�"��3�3��5�5�
��
	�6>�2� �"2��7?�4�B�B�9�M��%�0�0�1B�C����O�O�5�<�<�V�DU�=V�W�X����i4��I��@�$�$�	H��O�O�F�G�	H���$�$�	��O�O�L�
�	�s0�/L<�M�
"M�M1�%M.�-M.�1%N�Nr_N)
rerfrgrhr!�pack_factoryrk�resumed_pack_factoryru�normal_packer_class�optimising_packer_classr�rir_r*r5r�r��s���L�(��%��)��^r*r�c�^�\rSrSrSrU4SjrSrSrSSjrSr	Sr
S	rS
rSSjr
SrS
rSrSrU4SjrSSjrSrSrU=r$)�CHKInventoryRepositoryi\z;subclass of PackRepository that uses CHK based inventories.c�&>�[T	U]XX4U5 URRS5n[	UURUURRS5URRS5UR
URURRS9Ul	[[URRRURRRSURSS9URRR S9Ul[[URR$RURR$RSURSSS	9URR$R SS
9Ul[[URR(RURR(RSURSS9URR(R SS
9Ul[[URR,RURR,RSURSS9URR,R S9Ul[[URR0RURR0RSURSS9URR0R S9UlURR4R6n[8R:R=U5nX�R2lSUl SUl!SUl"SUl#SUl$g)
z+Overridden to change pack collection class.r��uploadr�)�
use_chk_indexTF)r�r�r��inconsistency_fatal)r�)r�r�r��track_external_parent_refs�track_new_keysr�rN)%rzr:�
_transport�cloner�r\r=�_format�
supports_chksr;rr�inventory_index�combined_indexr�r��data_accessr�revision_indexr	�signature_indexr+�
text_indexr$r&r��_serializerr�rr��getr��_write_lock_count�_transaction�_reconcile_does_inventory_gc�_reconcile_fixes_text_parents�_reconcile_backsup_inventory)
r4r��a_controldir�
control_files�_commit_builder_classr�rAr�r�r�s
         �r5r:�CHKInventoryRepository.__init___s����	����=��	
��/�/�/�/�	�:�� :���O�O���O�O�!�!�(�+��O�O�!�!�'�*��'�'�����,�,�4�4�	!
���7���%�%�5�5�D�D�!�2�2�B�B�O�O���.�.�$)�
��(�(�8�8�D�D�	
���5���%�%�4�4�C�C�!�2�2�A�A�N�N���.�.�+/�#�

��(�(�7�7�C�C��
���6���%�%�5�5�D�D�!�2�2�B�B�O�O���.�.�$)�
��(�(�8�8�D�D��

���1���%�%�0�0�?�?�!�2�2�=�=�J�J���.�.�$)�
��(�(�3�3�?�?�	
��
�5���%�%�/�/�>�>�!�2�2�<�<�I�I���.�.�$)�
��(�(�2�2�>�>�	
����,�,�2�2�B�B��!�5�5�9�9�/�J��*9���'�"#��� ���,0��)�-1��*�,1��)r*c���URRn[RR	UR
UURURS9nUR5nURXUSS9$)z�Add inv to the repository after checking the inputs.

This function can be overridden to allow different inventory styles.

:seealso: add_inventory, for the contract.
r�F��
check_content)
r�r�r
r�r�r�r�r�r��_inventory_add_lines)r4r�r�r��
serializer�result�	inv_liness       r5�_add_inventory_checked�-CHKInventoryRepository._add_inventory_checked�sw���\�\�-�-�
��'�'�6�6��N�N��#�0�0�&�6�6�	7�
���O�O�%�	��(�(��)�5�)�
�	
r*c��URRn[R"UR5nX$lURn0n0nUH�up�p�Ub[SRX�455eU	c[SRU
55eU	S:Xa	X�l	SnO)URRS5n
URU
4nU"U5nU
4nX�U'X�U'M� URURUUURS9 U$)z�This will mutate new_inv directly.

This is a simplified form of create_by_apply_delta which knows that all
the old values must be None, so everything is a create.
zCInvalid delta, somebody tried to delete {!r} from the NULL_REVISIONz<Invalid delta, delta from NULL_REVISION has no new_path {!r}rd)r*r*zutf-8)r�)r�r�r
r�r�r��_entry_to_bytesrr��root_idrX�encode�	parent_id�_populate_from_dictsr�r�)r4r�r�r��new_inv�entry_to_bytes�id_to_entry_dict�parent_id_basename_dict�old_path�new_path�file_id�entry�parent_id_basename_key�utf8_entry_name�	new_valuer�s                r5�_create_inv_from_null�,CHKInventoryRepository._create_inv_from_null�s*���\�\�-�-�
��(�(��)C�)C�D��)�� �0�0����"$��27�.�H���#� �.�.4�f�h�5H�.I����� �(�(.��w�����2�~�")��)3�&�"'�*�*�"3�"3�G�"<��*/�/�/�?�)K�&�&�u�-�I��*�C�$-�S�!�>E�$:�;�-38�0	�$�$��N�N��#�#�0�0�		%�	
��r*c���UR5(d[SRU55e[R"U5 SnUb[U[R5(d�U[R:XaVURX#5nURc[R"5eUR5n	URX4U	SS9U4$URU5nUR!5 UR"nUR%X#US9n
U
R5n	URX4U	SS9U
4UbUR'5 $$!UbUR'5 ff=f)a�Add a new inventory expressed as a delta against another revision.

:param basis_revision_id: The inventory id the delta was created
    against.
:param delta: The inventory delta (see Inventory.apply_delta for
    details).
:param new_revision_id: The revision id that the inventory is being
    added for.
:param parents: The revision ids of the parents that revision_id is
    known to have and are in the repository already. These are supplied
    for repositories that depend on the inventory graph for revision
    graph access, as well as for those that pun ancestry with delta
    compression.
:param basis_inv: The basis inventory if it is already known,
    otherwise None.
:param propagate_caches: If True, the caches for this inventory are
  copied to and updated for the result if possible.

:returns: (validator, new_inv)
    The validator(which is a sha1 digest, though what is sha'd is
    repository format specific) of the serialized inventory, and the
    resulting inventory.
z{!r} not in write groupNFr�)�propagate_caches)�is_in_write_groupr{r�rT�check_not_reserved_idr�r
r�rUrr�r�RootMissingr�r��
revision_tree�	lock_read�root_inventory�create_by_apply_delta�unlock)r4�basis_revision_idr��new_revision_idr��	basis_invr�
basis_treer�r�r�s           r5�add_inventory_by_delta�-CHKInventoryRepository.add_inventory_by_delta�sm��@�%�%�'�'� �!:�!A�!A�$�!G�H�H��+�+�O�<��
���J�y�)�:P�:P�$Q�$Q� �M�$?�$?�?��4�4�U�L���?�?�*� �,�,�.�.�#�,�,�.�	��0�0�#�i�u�1�����"�/�/�0A�B�
��$�$�&�&�5�5�	�
	$��4�4��9I�5��F����)�I��,�,��)�5�-�����%��!�!�#�&��z�%��!�!�#�&�s�2E	�	Ec�X�[RRURX!45$rp)r
r�r�r�)r4r�r�s   r5�_deserialise_inventory�-CHKInventoryRepository._deserialise_inventory3s!���%�%�1�1�$�.�.�%��X�Xr*c#�# �UcSnUVs/sHo34PM nnURRXBS5n0nUH@nURS:waURS5XgR'M2SXgR'MB UHFnXhn	U	cSUS4v� M[
RRURX�5US4v� MH gs snf7f)z$Iterate over many inventory objects.Nr�Tr�r�r�)	rr�r�r�r�r
r�r�r�)
r4rx�orderingr�r�r�r$r�r�r�s
          r5�_iter_inventories�(CHKInventoryRepository._iter_inventories6s������"�H�2>�?�,�;��,��?��!�!�3�3�D�D�I�����F��"�"�h�.�$*�$7�$7��$@��j�j�!�$(��j�j�!�	�
�C��J�E��}��S��W�o�%��*�*�6�6�t�~�~�u�R���G�����@�s�
C�C�B8Cc�V�URRURU55$)z%Get serialized inventory as a string.)r��write_inventory_to_lines�
get_inventory)r4r�s  r5�_get_inventory_xml�)CHKInventoryRepository._get_inventory_xmlLs+�����8�8����{�+�
�	
r*c�R�URRU5n[U5nU$rp)rrrq)r4r��
parent_map�present_inventory_keyss    r5�_find_present_inventory_keys�3CHKInventoryRepository._find_present_inventory_keysWs(���%�%�4�4�]�C�
�!$�Z���%�%r*c���UR5n[RRn0n[R
R
5nUVs/sHow4PM nnURU5n	URU	5n
U
Vs1sHo�SiM	 nn[U5n
U
RU5 [X
U5nURnURnURn[R "UUUUS9HBunnUH6unnU"U5unnnU(dUS:XaM!UUR#U5 M8 MD SSS5 U$s snfs snf![$a
 U1UU'Mef=f!,(df   U$=f)a�Find the file ids and versions affected by revisions.

:param revisions: an iterable containing revision ids.
:param _inv_weave: The inventory weave from this repository or None.
    If None, the inventory weave will be opened automatically.
:return: a dictionary mapping altered file-ids to an iterable of
    revision_ids. Each altered file-ids has the exact revision_ids that
    altered it listed explicitly.
r�rrdN)�supports_rich_rootr
r��_bytes_to_utf8name_keyr	r�r�_find_parent_keys_of_revisionsr"rqrSr�r�r�r�rr�r�rV)r4rx�
_inv_weave�	rich_root�
bytes_to_info�file_id_revisionsr��rr��parent_keys�present_parent_inv_keysrZ�present_parent_inv_ids�inventories_to_readr�r�r�r�r�r��_namer��	name_utf8r�r�s                         r5�fileids_altered_by_revision_ids�6CHKInventoryRepository.fileids_altered_by_revision_ids\s����+�+�-�	�!�.�.�E�E�
���
�]�]�
.�
.�
0�B�+7�8�<�a�T�<�M�8��=�=�m�L�K�
'+�&G�&G��&T�#�5L�%M�5L���e�5L�"�%M�"%�l�"3���&�&�'=�>�7��+A��M�%2�$G�$G�!�&3�&K�&K�#����I�")�"@�"@��0�2I�b�#����%*�L�E�5�8E�e�8L�5�Y���
%��b�� �C�)�'�2�6�6�{�C�%*�#�#1�@!� ��?9��&N��,$�C�6A�]�)�'�2�C��=1�
0�@!� �sO�E(�E�(E(�E�BE(�!E�5E(�
E(�E%	�!E(�$E%	�%E(�(
E7c�|�URR5 0nUR5n[RR5nUR
5n[U5n[URU55H�upgURSXe5 UR5Hrup�U(dU	RUR:XaM(U	RU	R4n
URU
S5 U	RUR :XdMnSX'Mt M� UsSSS5 $!,(df   g=f)a8Find the text key references within the repository.

:return: A dictionary mapping text keys ((fileid, revision_id) tuples)
    to whether they were referred to by the inventory of the
    revision_id that they contain. The inventory texts from all present
    revision ids are assessed to generate this report.
zFinding text referencesFTN)r	r�r%r	r�r�all_revision_idsr,r��iter_inventoriesrS�iter_entriesr�r�r
r�r�)r4r��
rich_rootsr��all_revs�total�posr�rr�r�s           r5�find_text_key_references�/CHKInventoryRepository.find_text_key_references�s���	
���������,�,�.�
�
�]�]�
.�
.�
0�B��,�,�.�H���M�E�%�d�&;�&;�H�&E�F����	�	�3�S�@� #� 0� 0� 2�H�A�%�%�-�-�3�;�;�*F� � �=�=�%�.�.�9�C��%�%�c�5�1��~�~����8�&*���
!3�G��1�
0�
0�s�CD-�
D-�-
D;c��SSKJn UR5 U"USSS9nUR5sSSS5 $!,(df   g=f)zGReconcile this repository to make sure all CHKs are in canonical
form.
r)�PackReconcilerT)�thorough�canonicalize_chksN)�	reconciler@�
lock_write)r4r@�
reconcilers   r5�reconcile_canonicalize_chks�2CHKInventoryRepository.reconcile_canonicalize_chks�s7��	.�
�_�_�
�'��t�t�T�J��'�'�)��
�
�s	�9�
Ac�<�[XU5nURU5$rp)rDr�r4�
collectionr��	extension�revsr��packers       r5�_reconcile_pack�&CHKInventoryRepository._reconcile_pack�s��%�j��C���{�{�2��r*c�<�[XX45nURU5$rp)rlrrIs       r5�_canonicalize_chks_pack�.CHKInventoryRepository._canonicalize_chks_pack�s��*�:�i�N���{�{�2��r*c�>�URRUR:Xa[X5$[TU]U5$)z3Return a source for streaming from this repository.)r�r��GroupCHKStreamSourcerz�_get_source)r4�	to_formatr�s  �r5rU�"CHKInventoryRepository._get_source�s8����<�<�#�#�y�'<�'<�<�
(��8�8��w�"�9�-�-r*c#�X# �UR5(d
[5eURnUcURUR	55nUHSup4UcURU4/5n[
SXS455n[
UR5nXg:wdMMX6U4v� MU g7f)a=Find revisions with different parent lists in the revision object
and in the index graph.

:param revisions_iterator: None, or an iterator of (revid,
    Revision-or-None). This iterator controls the revisions checked.
:returns: an iterator yielding tuples of (revison-id, parents-in-index,
    parents-in-revision).
Nc3�*# �UH	oSv� M g7f)r�Nr_)�.0�parents  r5�	<genexpr>�MCHKInventoryRepository._find_inconsistent_revision_parents.<locals>.<genexpr>�s���/�)=�v�r�
�)=�s�)r�r{r	�iter_revisionsr6rrR�
parent_ids)r4�revisions_iteratorr��revidr
r �parents_according_to_index�parents_according_to_revisions        r5�#_find_inconsistent_revision_parents�:CHKInventoryRepository._find_inconsistent_revision_parents�s�����~�~��� �"�"�
�^�^���%�!%�!4�!4�T�5J�5J�5L�!M��1�O�E�����*�*�U�H�:�6�J�).�/�)3�H�)=�/�*�&�-2�(�2E�2E�,F�)�)�J��:W�X�X� 2�s�BB*�B*c�p�[UR55nU(a[R"S5eg)Nz(Revision index has inconsistent parents.)rqrdr�
BzrCheckError)r4�inconsistenciess  r5�(_check_for_inconsistent_revision_parents�?CHKInventoryRepository._check_for_inconsistent_revision_parents�s/���t�G�G�I�J����&�&�'Q�R�R�r*)r;r�r�r�r�r�r�rr	r+r$rnrp)rerfrgrhr@r:r�rrrrrr"r3r=rFrNrQrUrdririrArBs@r5r�r�\sl���E�U2�n
�(*�d��;$�zY��,	
�&�
-!�^�:*���.�Y�2S�Sr*r�c�N^�\rSrSrSrU4SjrS
SjrSrSrSr	Sr
S	rU=r$)rTi�z=Used when both the source and target repo are GroupCHK repos.c�j>�[TU]X5 SUlSUlSUlSUlSUlg)z5Create a StreamSource streaming from from_repository.Nr�)rzr:�_revision_keys�
_text_keys�_text_fetch_orderr}r~)r4�from_repositoryrVr�s   �r5r:�GroupCHKStreamSource.__init__�s7���
����4�"������!0���!���#��r*c�F^^^�/Tl/TlUUU4SjnSU"54$)zGet a stream of inventory texts.

When this function returns, self._chk_id_roots and self._chk_p_id_roots
should be populated.
c3�># �[5n[5nTRRnURT
SS5nUGH#nURS:Xa*T	(aM[
R"TUR5eURS5n[RRSXTR5nURR5nXp;a,TRRU5 URU5 UR nUc[#S5eUR5nXq;a,URU5 TR$RU5 Uv� GM& UR'5 UR'5 g7f)Nr�Tr�r�r�)rqrprr�r�rr�r�r�r
r�r�r�r}r+r�r�r{r~r�)r�r�r�r�r�r�r�r�r��allow_absentrr4s         ���r5r��HGroupCHKStreamSource._get_inventory_stream.<locals>._filtered_inv_stream�sF�����5�L� �U�N��,�,�8�8�I��0�0���RV�W�F� ���&�&�(�2�#� �$�3�3�D�&�*�*�E�E��+�+�G�4��#�0�0�<�<�T�5�*�*�U���)�)�-�-�/���*��&�&�-�-�c�2� �$�$�S�)�"�@�@���#�(�)K�L�L��l�l�n���,�"�&�&�s�+��(�(�/�/��4���'!�,
��� �� � �"�s�F	Fr)r}r~)r4rrtr�s``` r5�_get_inventory_stream�*GroupCHKStreamSource._get_inventory_stream�s+��� ���!���	#�<�3�5�6�6r*c#�^^^	^
# �[5TlUR[R5 U(d[5m
[5m	O�TR
R
U5nUVs/sHo3SPM	 nn[5m
[5m	TR
RU5HUnT
RURR55 T	RURR55 MW TR
RmUUU
4SjnSU"54v� UUU	4SjnSU"54v� gs snf7f)Nr�c3��># �[R"TTRT5n[UTR[R
5HnUcMUv� M STlg7frp)rr�r}r�rnr�)�interesting_nodesr�r�r4r�s  ���r5�_filter_id_to_entry�KGroupCHKStreamSource._get_filtered_chk_streams.<locals>._filter_id_to_entry.s^���� '� >� >��4�-�-�/F�!��,�!�4�?�?�G�4N�4N����%� �L�	�"&�D��s�AA#�A#r�c3�># �[R"TTRT5HupUcM
Uv� M STlg7frp)rr�r~)r�r�r�r4r�s  ���r5�(_get_parent_id_basename_to_file_id_pages�`GroupCHKStreamSource._get_filtered_chk_streams.<locals>._get_parent_id_basename_to_file_id_pages<sB����")�"@�"@��4�/�/�1L�#����%� �L�	#�$(�D� �s
�)A�A)
rqrn�discardrTrUrpr"r7r�r�r�r�r�)r4�excluded_revision_keys�present_keysrZ�present_idsr�r{r~r�r�r�s`       @@@r5�_get_filtered_chk_streams�.GroupCHKStreamSource._get_filtered_chk_streamss�����%����&�&�}�'B�'B�C�%�&)�e�#�*-�%�'� �/�/�L�L�&��L�+7�7�,�Q�R�5�,�K�7�&)�e�#�*-�%�'��+�+�<�<�[�I��'�+�+�C�O�O�,?�,?�,A�B�+�/�/��0Q�0Q�0U�0U�0W�X�J��(�(�2�2�	�
	&��.�0�0�0�	(��C�E�E�E��?8�s�A*E
�0E�>CE
c��URRRURURS5nSU4$)NFr$)rpr$r�rnro)r4�text_streams  r5�_get_text_stream�%GroupCHKStreamSource._get_text_streamGs>���*�*�0�0�B�B��O�O�T�3�3�U�
����%�%r*c	#�# �SnUR5n[RR5nURnURR[
U55 URU5HnUSU"XEUS54v� M UVs/sHow4PM snUlURnURUR5n	URRR5 URRR5 URRR5 URRR!5 UR#UR5n
U
SU"XEU
S54v� URR$R5 UR'U	5HnUSU"XEUS54v� M URR(R5 UR+5n
U
SU"XEU
S54v� URR,R5 UR/SUR0UR05 SSS5 gs snf!,(df   g=f7f)Nc3��# �SnUHUnX1R:Xa:URU5 URSURUR5 SnUS-
nUv� MW g7f)z1Yield records from stream while showing progress.r�EstimaterN)�STEP�	incrementrS�current�max)r��rcr��countr�s     r5�wrap_and_count�7GroupCHKStreamSource.get_stream.<locals>.wrap_and_countPsU����E� ���G�G�#��L�L��'��I�I�j�"�*�*�b�f�f�=��E���
����
!�s�AA!rr�Done)�get_keysr	r�r�_record_counter�setupr,�_fetch_revision_textsrmrpr'r	�clear_cacher+�_unstacked_provider�
disable_cache�enable_cachervrr�r�r�r$rSr�)r4�searchr�rxr�r��stream_info�rev_id�	from_repor-�ss           r5�
get_stream�GroupCHKStreamSource.get_streamOs���		����(��
�]�]�
.�
.�
0�B��%�%�B�� � �&�&�s�<�'8�9�#�9�9�,�G��"�1�~�~�b�k�!�n�'M�N�N� H�;G�"H�<��9�<�"H�D���,�,�I�#�B�B�4�CV�CV�W�K�� � �*�*�6�6�8�� � �+�+�7�7�9�� � �4�4�B�B�D�� � �4�4�A�A�C��*�*�4�+>�+>�?�A��Q�4����!��5�6�6�� � �,�,�8�8�:�#�=�=�k�J��"�1�~�~�b�k�!�n�'M�N�N� K�� � �*�*�6�6�8��%�%�'�A��Q�4����!��5�6�6�� � �&�&�2�2�4��I�I�f�b�f�f�b�f�f�-�31�
0��
#I�1�
0�s0�2J
�A I<�I7� GI<�.	J
�7I<�<
J
�J
c#�j# �[5nUH=nUSS:wa[SRUS55eURUSS5 M? UR(dUR
(a[S5eUR
USS9v� UR[55Shv�N gN7f)NrrzHThe only missing keys we should be filling in are inventory keys, not {}rzTCannot call get_stream_for_missing_keys until all of get_stream() has been consumed.T)rt)rqr{r�r�r}r~rvr�)r4�missing_keys�missing_inventory_keysr�s    r5�get_stream_for_missing_keys�0GroupCHKStreamSource.get_stream_for_missing_keysws����"%����C��1�v��&�$�@�@F��s�1�v����
#�&�&�s�1�2�w�/�
 �����!5�!5� �@��
��(�(�)?�d�(�S�S��1�1�#�%�8�8�8�s�B)B3�+B1�,B3)r}r~rmrornr�)
rerfrgrhr@r:rvr�r�r�r�rirArBs@r5rTrT�s-���G�$�'7�R-F�^&�&.�P9�9r*rTc�,�\rSrSrSrSrSrSrSrg)�_InterestingKeyInfoi�c�|�[5Ul[5Ul[5Ul[5Ulgrp)rqr�r�r�r�r`s r5r:�_InterestingKeyInfo.__init__�s*��%(�U��"�),���&�'*�u��$�+.�5��(r*c�L�URRUR5$rp)r��unionr�r`s r5�all_interesting�#_InterestingKeyInfo.all_interesting�s���)�)�/�/��0N�0N�O�Or*c�L�URRUR5$rp)r�r�r�r`s r5�all_uninteresting�%_InterestingKeyInfo.all_uninteresting�s���+�+�1�1�$�2R�2R�S�Sr*c�\�UR5RUR55$rp)r�r�r�r`s r5r��_InterestingKeyInfo.all_keys�s%���#�#�%�+�+�D�,B�,B�,D�E�Er*)r�r�r�r�N)	rerfrgrhr:r�r�r�rir_r*r5r�r��s��1�P�T�Fr*r�c��[5nURUS5H�nURR5nURR5nUR
U;a8URRU5 URRU5 MURRU5 URRU5 M� U$)Nr�)r�r7r�r�r�r�r�r�r�r�r�)r��
inventory_ids�parent_only_inv_idsr�r��root_key�pid_root_keys       r5r�r��s���
 �
"�F��$�$�]�K�@���?�?�&�&�(���8�8�<�<�>���?�?�1�1��*�*�.�.�x�8��.�.�2�2�<�@��(�(�,�,�X�6��,�,�0�0��>�A��Mr*c
#�# �URnUH,upEU"UVVs/sH
upgU"U5PM snn5 Uv� M. gs snnf7f)z\Iterate the result of iter_interesting_nodes, yielding the records
and adding to text_keys.
N)rS)�interesting_nodes_iterabler&�bytes_to_text_key�text_keys_updater�r��n�bs        r5r�r��sF���!�'�'��3�
���5�A�5�4�1�+�A�.�5�A�B���4��A�s�A�A�Ac��\rSrSrSr\rSrSr\	r
Sr\RrSr\r\rSrSrSrSrSrSrSr\"\\5r\S5rS	rS
r g)�RepositoryFormat2ai�z;A CHK repository that uses the bencode revision serializer.Tr�Fc�@�[RRS5$)N�2a�r�format_registry�make_controldirr`s r5�_get_matching_bzrdir�'RepositoryFormat2a._get_matching_bzrdir�s���)�)�9�9�$�?�?r*c��grpr_�r4r�s  r5�_ignore_setting_bzrdir�)RepositoryFormat2a._ignore_setting_bzrdir����r*c��g)Ns6Bazaar repository format 2a (needs bzr 1.16 or later)
r_��clss r5�get_format_string�$RepositoryFormat2a.get_format_string�s��Ir*c��g)�.See RepositoryFormat.get_format_description().zHRepository format 2a - rich roots, group compression and chk inventoriesr_r`s r5�get_format_description�)RepositoryFormat2a.get_format_description�s
��
W�	
r*r_N)!rerfrgrhr@r��repository_class�supports_external_lookupsr�rr��rich_root_datar�chk_bencode_serializerr��_commit_inv_deltasrr\rr=�_fetch_order�_fetch_uses_deltas�fast_deltas�pack_compresses�supports_tree_referencer�r��property�_matchingcontroldir�classmethodr�r�rir_r*r5r�r��s���E�-�� $���M�-���N� �7�7�K���&��!�K��L����K��O�"��@�
�#�#7�9O�P���J��J�
r*r�c�T�\rSrSrSrSrSr\"\\5r\	S5r
SrSrSr
Srg	)
�RepositoryFormat2aSubtreei�z2A 2a repository format that supports nested trees.c�@�[RRS5$)Nzdevelopment-subtreer�r`s r5r��.RepositoryFormat2aSubtree._get_matching_bzrdir�s���)�)�9�9�:O�P�Pr*c��grpr_r�s  r5r��0RepositoryFormat2aSubtree._ignore_setting_bzrdir�r�r*c��g)NsBazaar development format 8
r_r�s r5r��+RepositoryFormat2aSubtree.get_format_string�s��/r*c��g)r�zUDevelopment repository format 8 - nested trees, group compression and chk inventoriesr_r`s r5r��0RepositoryFormat2aSubtree.get_format_description�s��
4�	
r*Tr_N)rerfrgrhr@r�r�r�r�r�r�r��experimentalr�rir_r*r5r�r��sE��<�Q�
�#�#7�9O�P���0��0�
��L�"�r*r�)2r@rJrdrrrrrr	r
rT�bzrrrr
rrrr��bzr.btree_indexrr�bzr.groupcompressrr�bzr.vf_repositoryr�	pack_reporrrrrrrrrr!rkrurDrlr�r�rTr�r�r�r�r�r_r*r5�<module>r�s���"N��<�<�(�I�I�%�;�J�,�
�
�
�y�W�y�~�K��`�&�`�F\?�;�\?�~}?��}?�@d�!9�d�NDS�^�DS�Nl9�<�l9�^F�F�"��*
�-�*
�Z#� 2�#r*

Youez - 2016 - github.com/yon3zu
LinuXploit