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

p��g�G���SrSSKrSSKJrJr SSKJr SSKJr SSK	J
r
 "SS	5r"S
S5rSSjr
SS
jr"SS5r"SS5rg)�google�N�)�errors�ui)�gettext)�
NULL_REVISION)�mutterc�:�\rSrSrSrS	SjrSrSrSrSr	g)
�RepoFetcher�#z�Pull revisions and texts from one repository to another.

This should not be used directly, it's essential a object to encapsulate
the logic in InterRepository.fetch().
Nc
���XlX lUR5UlX0lXPlX@lURR5 [S[UR5[URR5[UR5[URR55 UR5 SSS5 g!,(df   g=f)aCreate a repo fetcher.

Args:
  last_revision: If set, try to limit to the data this revision
    references.
  fetch_spec: A SearchResult specifying which revisions to fetch.
    If set, this overrides last_revision.
  find_ghosts: If True search the entire history for ghosts.
z3Using fetch logic to copy between %s(%s) and %s(%s)N)�
to_repository�from_repository�	_get_sink�sink�_last_revision�_fetch_spec�find_ghosts�	lock_readr	�str�_format�_RepoFetcher__fetch)�selfrr�
last_revisionr�
fetch_specs      �2/usr/lib/python3/dist-packages/breezy/bzr/fetch.py�__init__�RepoFetcher.__init__*s���&+��.��!�+�+�-��	�+��%��&��
�
!�
!�
+�
+�
-��E��D�(�(�)��D�(�(�0�0�1��D�&�&�'��D�&�&�.�.�/�
�
�L�L�N�.�
-�
-�s
�BC�
C%c���SUl0Ul[RR	5nS=UlUlUR[S5SS5 UR5n[S[U55 UR5(a
SSS5 gUR[S5SS5 URU5 SSS5 g!,(df   g=f)	z�Primary worker function.

This initialises all the needed variables, and then fetches the
requested revisions, finally clearing the progress bar.
rFzFinding revisionsrzfetching: %sNzFetching revisions�)�count_total�file_ids_namesr�
ui_factory�nested_progress_bar�show_pct�
show_count�updater�_revids_to_fetchr	r�is_empty�_fetch_everything_for_search)r�pb�
search_results   r�__fetch�RepoFetcher.__fetchNs������ ���
�]�]�
.�
.�
0�B�*/�/�B�K�"�-��I�I�g�1�2�A�q�9� �1�1�3�M��>�3�}�#5�6��%�%�'�'��
1�
0�
�I�I�g�2�3�Q��:��-�-�m�<�1�
0�
0�s�A&C�-C�
C c��URRR(aQURRR(d,[R
"URURS5e[RR5nURS5 URRURR5nURU5nURRnURS5 URRXE/5upgU(aQURS5 URU5nURS5 URRXEU5upgU(a[SR!U55eU(a[SR!U55eURS5 URR#5 S	S	S	5 g	!,(df   g	=f)
z.Fetch all data for the given set of revisions.zdifferent rich-root supportzGet stream sourcezInserting streamzMissing keyszInserting missing keysz,second push failed to complete a fetch {!r}.z,second push failed to commit the fetch {!r}.zFinishing streamN)rr�rich_root_datarr�IncompatibleRepositoriesrr#r$r'�_get_source�
get_streamr�
insert_stream�get_stream_for_missing_keys�AssertionError�format�finished)r�searchr+�source�stream�from_format�
resume_tokens�missing_keyss        rr*�(RepoFetcher._fetch_everything_for_searchfs���
� � �(�(�7�7��&�&�.�.�=�=��1�1��$�$�d�&8�&8�:W��
��]�]�
.�
.�
0�B��I�I�)�*��)�)�5�5�d�6H�6H�6P�6P�Q�F��&�&�v�.�F��.�.�6�6�K��I�I�(�)�*.�)�)�*A�*A��R�+�'�M���	�	�.�)��;�;�L�I���	�	�2�3�.2�i�i�.E�.E���/�+�
��$�B�I�I�,�W����$�B�I�I�-�X���
�I�I�(�)��I�I��� �31�
0�
0�s
�EG:�:
Hc��SSKJn URbUR$UR[:XaUR5$URbIUR
URURUR/URS9R5$URURURURS9R5$)z�Determines the exact revisions needed from self.from_repository to
install self._last_revision in self.to_repository.

Returns:
  A SearchResult of some sort.  (Possibly a
  PendingAncestryResult, EmptySearchResult, etc.)
r ��	vf_search)r)�rBrrr�EmptySearchResult�NotInOtherForRevsrrr�execute�EverythingNotInOther)rrBs  rr(�RepoFetcher._revids_to_fetch�s���	 ����'��#�#�#�
�
 �
 �M�
1��.�.�0�0�
�
 �
 �
,��.�.��"�"��$�$��$�$�%� �,�,�	/��
�g�i�
��1�1��"�"�D�$8�$8�d�FV�FV�2���g�i�
�)rrr!r"rrrr)NTN)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrr*r(�__static_attributes__�rIrrr#s(������
"�H=�0*!�XrIrc�4�\rSrSrSrSrSrSrSrSr	Sr
g	)
�Inter1and2Helper�ziHelper for operations that convert data from model 1 and 2.

This is for use by fetchers and converters.
�dc��Xlg)z=Constructor.

Args:
  source: The repository data comes from
N�r:)rr:s  rr�Inter1and2Helper.__init__�s	���rIc#�# �[U5nU(anURRUSS5H=nURRcUR5URlUv� M? USSnU(aMmgg7f)z�Iterate through RevisionTrees efficiently.

Additionally, the inventory's revision_id is set if unset.

Trees are retrieved in batches of 100, and then yielded in the order
they were requested.

Args:
  revs: A list of revision ids
NrT)�listr:�revision_trees�root_inventory�revision_id�get_revision_id)r�revs�trees   r�iter_rev_trees�Inter1and2Helper.iter_rev_trees�st����D�z������2�2�4���:�>���&�&�2�2�:�6:�6J�6J�6L�D�'�'�3��
�?����:�D��d�s�A>B�Bc��0nURU5H)nURS5nURS5nXdU'M+ [UR	55nURU5 UR
[5 URU5nURU5H&nURS5nXdUR5'M( U$)NrC)
r`�path2id�get_file_revision�set�values�difference_update�discardr�get_parent_mapr])	rr^�
parent_map�graph�
revision_rootr_�root_idr\�parentss	         r�_find_root_ids�Inter1and2Helper._find_root_ids�s����
��'�'��-�D��l�l�2�&�G��0�0��4�K�)0�+�&�.�
�j�'�'�)�*���!�!�-�0����
�&��&�&�w�/���'�'��0�D��l�l�2�&�G�4;�$�.�.�0�1�1��rIc��SSKJn URR5nUR	U5nU"U5nURXU5nUVs/sH	ovUU4PM nnUR
[R"S5S9 [U5UR:�aURRU5n[X�X@RU5n	SU	4/$s snf)zRGenerate VersionedFiles for all root ids.

Args:
  revs: the revisions to include
r)�	topo_sortr)�key�texts)
�tsortrrr:�	get_graphriro�sort�operator�
itemgetter�len�known_graph_threshold�get_known_graph_ancestry�_new_root_data_stream)
rr^rrrkrj�	rev_order�rev_id_to_root_id�rev_id�
root_id_order�new_roots_streams
          r�generate_root_texts�$Inter1and2Helper.generate_root_texts�s���	&����%�%�'���)�)�$�/�
��j�)�	� �/�/��%�H��KT�U�9��F�3�V�<�9�
�U�
	���x�2�2�1�5��6��t�9�t�1�1�1��K�K�8�8��>�E�0��j�+�+�u�
���*�+�,�,��Vs�CrVN)rJrKrLrMrNr{rr`ror�rOrPrIrrRrR�s#��� ����(�"-rIrRc	#�d# �SSKJn UH nUupx[XxXX45n	U"XiS/5v� M" g7f)a�Generate a texts substream of synthesised root entries.

Used in fetches that do rich-root upgrades.

Args:
  root_keys_to_create: iterable of (root_id, rev_id) pairs describing
    the root entries to create.
  rev_id_to_root_id_map: dict of known rev_id -> root_id mappings for
    calculating the parents.  If a parent rev_id is not found here then it
    will be recalculated.
  parent_map: a parent map for all the revisions in
    root_keys_to_create.
  graph: a graph to use instead of repo.get_graph().
r )�ChunkedContentFactoryN)�
versionedfiler��_parent_keys_for_root_version)
�root_keys_to_create�rev_id_to_root_id_maprj�reporkr��root_keyrmr��parent_keyss
          rr}r}s>���"5�'��"���3��2��
��$�H�4��D�D�(�s�.0c
���X1n/nUH�nU[:XaMX�;a(URU5n	U	RS5n
SX('OX(n
X
:XaURU5 MXURU5n	URU	R
U	RUSS955 M� UcUR5nURU5n/nUH"nX�;dM
X�;dMURU5 M$ UVs/sHo�U4PM n
nU
$![Ra Sn
N�f=f![Ra GM4f=f![Ra GMPf=fs snf)zWGet the parent keys for a given root id.

A helper function for _new_root_data_stream.
rCN�none)�recurse)r�
revision_treercr�NoSuchRevision�appendrd�id2path�NoSuchIdrv�heads)rmr�r�rjr�rk�rev_parents�
parent_ids�	parent_idr_�parent_root_idr��selected_idsr�s              rr�r�s|���$�K��J� �	��
�%���1�
2��)�)�)�4��"&���b�!1��/3�!�,�
3�=�N��$�

���i�(�
��)�)�)�4��
��%�%��.�.�t�|�|�G�V�|�/T�U��I!�V
�}���� ���K�K�
�#�E��L��	���)�"?����	�*� �:F�F��I�Y�'��K�F����W�(�(�
&�"&��	
&��>��������(�(�
��
��&Gs;�D	�"E�4.D%�8
E�	D"�!D"�%D>�=D>�E�Ec�$�\rSrSrSrSrSrSrSrg)�TargetRepoKindsi]zdAn enum-like set of constants.

They are the possible values of FetchSpecFactory.target_repo_kinds.
�preexisting�stacked�emptyrPN)	rJrKrLrMrN�PREEXISTING�STACKED�EMPTYrOrPrIrr�r�]s���
 �K��G��ErIr�c�*�\rSrSrSrSrSrSrSrg)�FetchSpecFactoryihaQA helper for building the best fetch spec for a sprout call.

Factors that go into determining the sort of fetch to perform:
 * did the caller specify any revision IDs?
 * did the caller specify a source branch (need to fetch its
   heads_to_fetch(), usually the tip + tags)
 * is there an existing target repo (don't need to refetch revs it
   already has)
 * target is stacked?  (similar to pre-existing target repo: even if
   the target itself is new don't want to refetch existing revs)

Attributes:
  source_branch: the source branch if one specified, else None.
  source_branch_stop_revision_id: fetch up to this revision of
    source_branch, rather than its tip.
  source_repo: the source repository if one found, else None.
  target_repo: the target repository acquired by sprout.
  target_repo_kind: one of the TargetRepoKinds constants.
c�v�[5UlSUlSUlSUlSUlSUlSUlg�N)re�_explicit_rev_ids�
source_branch�source_branch_stop_revision_id�source_repo�target_repo�target_repo_kind�limit)rs rr�FetchSpecFactory.__init__}s;��!$����!���.2��+������� $�����
rIc�:�URRU5 g)z:Add revision_ids to the set of revision_ids to be fetched.N)r�r')r�revision_idss  r�add_revision_ids�!FetchSpecFactory.add_revision_ids�s�����%�%�l�3rIc�>�SSKJn URb
URc$[	SRUR55e[UR5S:Xa�URc�URb[S5eUR[R:XaURUR5$URUR UR5R#5$[%UR5nURbURR'5up4UR(bDUR+URR-55 UR/UR(5 UR1U5 O
[%5nUR[R:Xa�UR3U5nUR5XPR5nURblURR75n[9UR;UR=555nUSURn	URR?U	5nU$URAUR URUUURS9R#5$)z5Build a SearchResult or PendingAncestryResult or etc.r rANz!Incomplete FetchSpecFactory: {!r}rz0limit is only supported with a source branch set)�required_ids�if_present_idsr�)!rCrBr�r�r6r7�__dict__rzr�r�r��NotImplementedErrorr�r��EverythingResultrGr�rFre�heads_to_fetchr�rhr�addr'�union�PendingAncestryResultrvrY�iter_topo_order�get_keys�revision_ids_to_search_resultrE)
rrBr��
must_fetch�if_present_fetch�	all_heads�retrk�
topo_order�
result_sets
          r�make_fetch_spec� FetchSpecFactory.make_fetch_spec�s8���� � �(�D�,<�,<�,D� �3�:�:�4�=�=�I��
��t�%�%�&�!�+��0B�0B�0J��z�z�%�)�F����$�$��(=�(=�=� �1�1�$�2B�2B�C�C�!�5�5��$�$�d�&6�&6���'�)���T�3�3�4�����)�+/�+=�+=�+L�+L�+N�(�J��2�2�>��"�"�4�#5�#5�#C�#C�#E�F����t�B�B�C��!�!�*�-�"�u��� � �O�$9�$9�9�'�,�,�-=�>�I��1�1�)�=M�=M�N�C��z�z�%��(�(�2�2�4��!�%�"7�"7�����"G�H�
�'��$�*�*�5�
��&�&�D�D�Z�P���J��.�.�� � �� � �+�/��j�j�/���g�i�

rI)r�r�r�r�r�r�r�N)	rJrKrLrMrNrr�r�rOrPrIrr�r�hs���(�4�9rIr�r�)�
__docformat__rxrCrr�i18nr�revisionr�tracer	rrRr}r�r�r�rPrIr�<module>r�sl��"�
�����$��J�J�ZN-�N-�dIM�E�8EI�>�B��[�[rI

Youez - 2016 - github.com/yon3zu
LinuXploit