403Webshell
Server IP : 217.160.0.64  /  Your IP : 216.73.216.182
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67269618 ( 67269618)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/kunden/usr/lib/python3/dist-packages/breezy/bzr/smart/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/kunden/usr/lib/python3/dist-packages/breezy/bzr/smart/__pycache__/bzrdir.cpython-313.pyc
�

p��g�c��2�SrSSKrSSKJrJrJrJr SSKJ	r	 SSKJ
r
 SSKJrJ
r
 S	S
KJrJrJr "SS\5r"S
S\5r"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r"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""S-S.\5r#"S/S0\5r$"S1S2\5r%"S3S4\5r&g)5z2Server-side bzrdir related request implmentations.�N�)�branch�errors�
repository�urlutils)�network_format_registry�)�	BzrProber)�BzrDir�BzrDirFormat�)�FailedSmartServerResponse�SmartServerRequest�SuccessfulSmartServerResponsec��\rSrSrSrSrg)�SmartServerRequestOpenBzrDir� c�
�URU5n[5nURU5 Sn[U45$![R[R
4a SnN4f=f![Ra SnNPf=f�N�yes�no)�transport_from_client_pathr
�probe_transportr�NotBranchError�UnknownFormatError�PathNotChildr)�self�path�t�
bzr_prober�answers     �9/usr/lib/python3/dist-packages/breezy/bzr/smart/bzrdir.py�do�SmartServerRequestOpenBzrDir.do!s���	 ��/�/��5�A�#��J�
 ��*�*�1�-� ��,�f�Y�7�7��	�)�)�6�+D�+D�E�
���
���"�"�	��F�
	�s �A)�=�&A&�%A&�)B�B�N��__name__�
__module__�__qualname__�__firstlineno__r#�__static_attributes__r%�r"rr s��8r,rc��\rSrSrSrSrg)� SmartServerRequestOpenBzrDir_2_1�6c�2�URU5n[R
"U5nSnUR
5(aUS-
nOUS-
n[U5$![Ra [S5s$f=f![Ra SnNHf=f)zOIs there a BzrDir present, and if so does it have a working tree?

New in 2.1.
�r�r)rrrrr�open_from_transport�has_workingtreer)rrr�bdr!s     r"r#�#SmartServerRequestOpenBzrDir_2_1.do7s���
	;��/�/��5�A�
		#��+�+�A�.�B��F��!�!�#�#��)�#���(�"��,�V�4�4���"�"�	;�1��:�:�	;���$�$�	��F�	�s"�A�A=�A:�9A:�=B�Br%Nr&r%r,r"r.r.6s��5r,r.c�,�\rSrSrSrSrSrSrSrg)�SmartServerRequestBzrDir�Oc��[R"URU55UlUR"U6$![R
a [
S5s$f=f)zBOpen a BzrDir at path, and return `self.do_bzrdir_request(*args)`.�snobranch)rr3r�_bzrdirrrr�do_bzrdir_request)rr�argss   r"r#�SmartServerRequestBzrDir.doPs\��	=�!�5�5��/�/��5��D�L�
�%�%�t�,�,���$�$�	=�,�^�<�<�	=�s�*;�A�Ac��U(aggrr%)r�	a_booleans  r"�_boolean_to_yes_no�+SmartServerRequestBzrDir._boolean_to_yes_noZs����r,c��URUR5nURUR5nURUR5nX#U4$�N)rB�rich_root_data�supports_tree_reference�supports_external_lookups)r�repo_format�	rich_root�tree_ref�external_lookups     r"�_format_to_capabilities�0SmartServerRequestBzrDir._format_to_capabilities`sO���+�+�K�,F�,F�G�	��*�*�;�+N�+N�O���1�1�+�2W�2W�X���O�3�3r,c���URRUR5n[U5(aS/[UR	S55-nO/nSRU5$)z<Get the relative path for repository from current_transport.z..�/)�user_transport�relpath�base�len�split�join)r�current_transportrrR�segmentss     r"�
_repo_relpath�&SmartServerRequestBzrDir._repo_relpathfsX���+�+�3�3�4E�4J�4J�K���w�<�<��v��G�M�M�#�$6� 7�7�H��H��x�x��!�!r,)r<N)	r'r(r)r*r#rBrMrYr+r%r,r"r8r8Os��-��4�	"r,r8c��\rSrSrSSjrSrg)�%SmartServerBzrDirRequestDestroyBranch�rNc���URRUbURS5OS5 [
S5$![Ra [S5s$f=f)zVDestroy the branch with the specified name.

New in 2.5.0.
:return: On success, 'ok'.
N�utf-8r;��ok)r<�destroy_branch�decoderrrr�r�names  r"r=�7SmartServerBzrDirRequestDestroyBranch.do_bzrdir_requestss[��	=��L�L�'�'�(,�(8����G�$�d�
�
-�X�6�6���$�$�	=�,�^�<�<�	=�s�/<�A�Ar%rE�r'r(r)r*r=r+r%r,r"r\r\rs��7r,r\c��\rSrSrSSjrSrg)�&SmartServerBzrDirRequestHasWorkingTree�Nc�l�URR5(a[S5$[S5$)z�Check whether there is a working tree present.

New in 2.5.0.

:return: If there is a working tree present, 'yes'.
    Otherwise 'no'.
r2r1)r<r4rrds  r"r=�8SmartServerBzrDirRequestHasWorkingTree.do_bzrdir_request�s-���<�<�'�'�)�)�0��;�;�0��:�:r,r%rErgr%r,r"riri�s��;r,ric��\rSrSrSSjrSrg)�)SmartServerBzrDirRequestDestroyRepository�Nc��URR5 [S5$![Ra [	S5s$f=f)zCDestroy the repository.

New in 2.5.0.

:return: On success, 'ok'.
�snorepositoryr`)r<�destroy_repositoryr�NoRepositoryPresentrrrds  r"r=�;SmartServerBzrDirRequestDestroyRepository.do_bzrdir_request�sJ��	A��L�L�+�+�-�-�X�6�6���)�)�	A�,�-?�@�@�	A�s�'�A	�A	r%rErgr%r,r"rnrn�s��7r,rnc��\rSrSrSrSrg)�&SmartServerBzrDirRequestCloningMetaDir�c��URR5nUb[	S5$US:XaSnOSnURRUS9nUR
5nUR(d;SUR5R
54nURR
5nOSnS	n[XFU45$![Ra SnN�f=f)
avGet the format that should be used when cloning from this dir.

New in 1.13.

:return: on success, a 3-tuple of network names for (control,
    repository, branch) directories, where '' signifies "not present".
    If this BzrDir contains a branch reference then this will fail with
    BranchReference; clients should resolve branch references before
    calling this RPC.
N�sBranchReference�TrueTF)�require_stacking�branch)r|r,r,)r<�get_branch_referencerrr�cloning_metadir�network_name�fixed_components�get_branch_format�repository_formatr)rr{�
branch_ref�control_format�control_name�branch_name�repository_names       r"r=�8SmartServerBzrDirRequestCloningMetaDir.do_bzrdir_request�s���	����:�:�<�J��!�-�-B�C�C��w�&�#��$�����5�5�GW�5�X��%�2�2�4���.�.�$�n�&F�&F�&H�&U�&U�&W�X�K�,�>�>�K�K�M�O�+�K�!�O�,�
�K�8�
�	
��)�$�$�	��J�	�s�B;�;C�Cr%Nrgr%r,r"rvrv�s��#
r,rvc��\rSrSrSrSrSrg)�'SmartServerBzrDirRequestCheckoutMetaDir��a�Get the format to use for checkouts.

New in 2.5.

:return: on success, a 3-tuple of network names for (control,
    repository, branch) directories, where '' signifies "not present".
    If this BzrDir contains a branch reference then this will fail with
    BranchReference; clients should resolve branch references before
    calling this RPC (they should not try to create a checkout of a
    checkout).
c��URR5nUb[	S5$URR5nUR
5nUR(d9UR5R
5nURR
5nOSnSn[X5U45$![Ra SnN�f=f)Nryr,)r<r}rrr�checkout_metadirrr�r�r�r)rr�r�r�r��	repo_names      r"r=�9SmartServerBzrDirRequestCheckoutMetaDir.do_bzrdir_request�s���	����:�:�<�J��!�-�-B�C�C����6�6�8��%�2�2�4���.�.�(�:�:�<�I�I�K�K�&�8�8�E�E�G�I��K��I�,�l�{�-S�T�T���$�$�	��J�	�s�B/�/C�Cr%N)r'r(r)r*�__doc__r=r+r%r,r"r�r��s
��
�Ur,r�c��\rSrSrSrSrg)�SmartServerRequestCreateBranch��c	���[R"URU55n[RRU5nXClURUSS9nURURR5upgnURR5n	URRR5n
URURUR5n[SU	UUUUU
45$)aNCreate a branch in the bzr dir at path.

This operates precisely like 'bzrdir.create_branch'.

If a bzrdir is not present, an exception is propogated
rather than 'no branch' because these are different conditions (and
this method should only be called after establishing that a bzr dir
exists anyway).

This is the initial version of this method introduced to the smart
server for 1.13.

:param path: The path to the bzrdir.
:param network_name: The network name of the branch type to create.
:return: ('ok', branch_format, repo_path, rich_root, tree_ref,
    external_lookup, repo_format)
��rera)rr3rrr�get�
branch_format�
initializerMr�_formatrrY�root_transportr)rrr�bzrdir�format�resultrJrKrLr�rI�	repo_paths            r"r#�!SmartServerRequestCreateBranch.do�s���$�+�+�D�,K�,K�D�,Q�R���/�/�3�3�L�A��%���"�"�6��"�3��/3�/K�/K����%�%�0
�,�	�_����3�3�5�
��'�'�/�/�<�<�>���&�&�v�'<�'<�f�>O�>O�P�	�-��������
�

�
	
r,r%Nr&r%r,r"r�r��s��(
r,r�c��\rSrSrSrSrg)�"SmartServerRequestCreateRepositoryic�F�[R"URU55nUS:Hn[RRU5nXTlURXCS9nURUR5upxn	[SXxX�RR545$)a�Create a repository in the bzr dir at path.

This operates precisely like 'bzrdir.create_repository'.

If a bzrdir is not present, an exception is propagated
rather than 'no branch' because these are different conditions (and
this method should only be called after establishing that a bzr dir
exists anyway).

This is the initial version of this method introduced to the smart
server for 1.13.

:param path: The path to the bzrdir.
:param network_name: The network name of the repository type to create.
:param shared: The value to pass create_repository for the shared
    parameter.
:return: (ok, rich_root, tree_ref, external_lookup, network_name)
rz)�sharedra)rr3rrrr�r�r�rMr�rr)
rrrr�r�r�r�rJrKrLs
          r"r#�%SmartServerRequestCreateRepository.dos���&�+�+�D�,K�,K�D�,Q�R���7�"���3�3�7�7��E��#)� ��"�"�6�"�9��/3�/K�/K��N�N�0
�,�	�_�-�
�I��.�.�:U�:U�:W�X�
�	
r,r%Nr&r%r,r"r�r�s��
r,r�c��\rSrSrSrSrg)� SmartServerRequestFindRepositoryi6c��[R"URU55nUR5nUR	UR
U5nUR
UR5upEnURR5nXXVU4$)a�Try to find a repository from path upwards.

This operates precisely like 'bzrdir.find_repository'.

:return: (relpath, rich_root, tree_ref, external_lookup, network_name).
    All are strings, relpath is a / prefixed path, the next three are
    either 'yes' or 'no', and the last is a repository format network
    name.
:raises errors.NoRepositoryPresent: When there is no repository
    present.
)	rr3r�find_repositoryrYr�rMr�r)rrr�rrJrKrLrs        r"�_find�&SmartServerRequestFindRepository._find7s����+�+�D�,K�,K�D�,Q�R���+�+�-�
��!�!�&�"7�"7��D��/3�/K�/K����0
�,�	�_�"�)�)�6�6�8����<�G�Gr,r%N)r'r(r)r*r�r+r%r,r"r�r�6s��Hr,r�c��\rSrSrSrSrg)�"SmartServerRequestFindRepositoryV1iMc��URU5upp4n[SURS5X#45$![Ra [S5s$f=f)a�Try to find a repository from path upwards.

This operates precisely like 'bzrdir.find_repository'.

If a bzrdir is not present, an exception is propagated
rather than 'no branch' because these are different conditions.

This is the initial version of this method introduced with the smart
server. Modern clients will try the V2 method that adds support for the
supports_external_lookups attribute.

:return: norepository or ok, relpath.
rar_rq�r�r�encoderrsr�rrrJrKrLres      r"r#�%SmartServerRequestFindRepositoryV1.doNsb��	A�?C�z�z�$�?O�<�D�X��0�����G�,�i�B��
���)�)�	A�,�-?�@�@�	A�s�14�A�Ar%Nr&r%r,r"r�r�Ms��Ar,r�c��\rSrSrSrSrg)�"SmartServerRequestFindRepositoryV2iec��URU5upp4n[SURS5X#U45$![Ra [S5s$f=f)a�Try to find a repository from path upwards.

This operates precisely like 'bzrdir.find_repository'.

If a bzrdir is not present, an exception is propagated
rather than 'no branch' because these are different conditions.

This is the second edition of this method introduced in bzr 1.3, which
returns information about the supports_external_lookups format
attribute too.

:return: norepository or ok, relpath, rich_root, tree_ref,
    external_lookup.
rar_rqr�r�s      r"r#�%SmartServerRequestFindRepositoryV2.dofsd��	A�?C�z�z�$�?O�<�D�X��0�����G�,�i�?�S��
���)�)�	A�,�-?�@�@�	A�s�25�A�Ar%Nr&r%r,r"r�r�es��Ar,r�c��\rSrSrSrSrg)�"SmartServerRequestFindRepositoryV3i~c��URU5upp4n[SURS5UUUU45$![Ra [S5s$f=f)a�Try to find a repository from path upwards.

This operates precisely like 'bzrdir.find_repository'.

If a bzrdir is not present, an exception is propogated
rather than 'no branch' because these are different conditions.

This is the third edition of this method introduced in bzr 1.13, which
returns information about the network name of the repository format.

:return: norepository or ok, relpath, rich_root, tree_ref,
    external_lookup, network_name.
rar_rqr�r�s      r"r#�%SmartServerRequestFindRepositoryV3.doso��
	A�?C�z�z�$�?O�<�D�X��0���K�K��(���#��
�	�	
���)�)�	A�,�-?�@�@�	A�s�47�A�Ar%Nr&r%r,r"r�r�~s��Ar,r�c��\rSrSrSrSrg)�"SmartServerBzrDirRequestConfigFilei�c��URR5nUcSnOUR5R5n[	SU5$)z�Get the configuration bytes for a config file in bzrdir.

The body is not utf8 decoded - it is the literal bytestream from disk.
r,r%)r<�_get_config�_get_config_file�readr)r�config�contents   r"r=�4SmartServerBzrDirRequestConfigFile.do_bzrdir_request�sD��
���)�)�+���>��G��-�-�/�4�4�6�G�,�R��9�9r,r%Nrgr%r,r"r�r��s��
:r,r�c��\rSrSrSrSrg)�#SmartServerBzrDirRequestGetBranchesi�c���URR5n0nUH�nUcSnURRUS9nUb?[R"URR
U5nSUR
S54nO6URRUSS9nSURR54nXRUR
S5'M� [S[R"U55$)	z�Get the branches in a control directory.

The body is a bencoded dictionary, with values similar to the return
value of the open branch request.
r,r��refr_T)re�ignore_fallbacksr|)ssuccess)r<�branch_namesr}r�relative_url�user_urlr��open_branchr�rr�bencode)rr��retrer��value�bs       r"r=�5SmartServerBzrDirRequestGetBranches.do_bzrdir_request�s����|�|�0�0�2���� �D��|������:�:��:�E�J��%�%�2�2�4�<�<�3H�3H�*�U�
���!2�!2�7�!;�<���L�L�,�,�$��,�N��"�A�I�I�$:�$:�$<�=��(-����G�$�%�!�-�]�G�O�O�C�<P�Q�Qr,r%Nrgr%r,r"r�r��s��Rr,r�c��\rSrSrSrSrg)�"SmartServerRequestInitializeBzrDiri�c��URU5n[R"5RU5 [	S5$)zoInitialize a bzrdir at path.

The default format of the server is used.
:return: SmartServerResponse(('ok', ))
r`)rr�get_default_format�initialize_on_transportr)rr�target_transports   r"r#�%SmartServerRequestInitializeBzrDir.do�s8�� �:�:�4�@���'�'�)�A�A�BR�S�,�X�6�6r,r%Nr&r%r,r"r�r��s��7r,r�c�2�\rSrSrSrSrSrSrSrSr	g)	�$SmartServerRequestBzrDirInitializeExi�c�b�U(dgUS:XagUS:Xag[SRU55e)N�FalseFrzTzinvalid arg {!r})�AssertionErrorr��r�args  r"�parse_NoneTrueFalse�8SmartServerRequestBzrDirInitializeEx.parse_NoneTrueFalse�s3�����(�?���'�>���/�6�6�s�;�<�<r,c��U=(d S$rEr%r�s  r"�parse_NoneBytestring�9SmartServerRequestBzrDirInitializeEx.parse_NoneBytestring�s���{�d�r,c�4�U(dgURS5$)Nr_)rcr�s  r"�parse_NoneString�5SmartServerRequestBzrDirInitializeEx.parse_NoneString�s�����z�z�'�"�"r,c� �USLagU(dgg)NFr�r,rzr%r�s  r"�_serialize_NoneTrueFalse�=SmartServerRequestBzrDirInitializeEx._serialize_NoneTrueFalse�s���%�<����r,c���URU5n[R"U5nURU5nURU5nURU5nUR	U5nUR	U5nURU	5n	URU
5n
US:XaUR
R
S5nURU5nURUUUUUUUU	U
S9	up�nnU
cSnSnS=n=nnSnSnSnSnO�URURU
5nUS:XaSnURU
R5unnnU
RR5nU
RRR5nURnUR nU
R#5 U
R%5R&=(d SnU(aU
R)5 U
R#5 U=(d SnU=(d SnU(a![*R,"UR
U5nUR/S5(a5UR0US	S-n[*R,"UR0U5nSn[3UR
S5UUUUUURR5UR5U5UR
S5UR
S5U45$)
a�Initialize a bzrdir at path as per
BzrDirFormat.initialize_on_transport_ex.

New in 1.16.  (Replaces BzrDirFormat.initialize_ex verb from 1.15).

:return: return SuccessfulSmartServerResponse((repo_path, rich_root,
    tree_ref, external_lookup, repo_network_name,
    repo_bzrdir_network_name, bzrdir_format_network_name,
    NoneTrueFalse(stacking), final_stack, final_stack_pwd,
    repo_lock_token))
�.r_)�use_existing_dir�
create_prefix�force_new_repo�
stacked_on�stack_on_pwd�repo_format_name�make_working_trees�shared_repoNr�r,�.rPr
)rrr�r�r�rSr�r��initialize_on_transport_exrYr�rMr�r�
controldir�	_stack_on�
_stack_on_pwd�unlock�
lock_write�repository_token�leave_lock_in_placerr��
startswith�_root_client_pathrr�)r�bzrdir_network_namerr�r�r�r�r�r�r�r�r�r��repor��stacking�repository_policyr�r�rJrKrL�repo_bzrdir_name�final_stack�final_stack_pwd�repo_lock_token�client_paths                           r"r#�'SmartServerRequestBzrDirInitializeEx.do�s���0 �:�:�4�@��(�,�,�-@�A���3�3�4D�E���0�0��?�
��1�1�.�A���*�*�:�6�
��,�,�\�:��!�5�5�6H�I���.�.�{�;���4��+�0�0�7�7��@�L��4�4�5E�F��4:�4U�4U��-�'�)�!�%�-�1�#�5V�
5
�1��h� 1��<��I��I�58�8�I�8��?�"���K�"�O�!�O��*�*�6�+@�+@�$�G�I��B���	�37�3O�3O����4�0�I�x�����1�1�3�I�#���6�6�C�C�E��+�5�5�K�/�=�=�O�
�K�K�M�"�o�o�/�@�@�G�C�O���(�(�*��K�K�M�!�'�R��)�/�R���&�3�3� �%�%���O�
�!�!�#�&�&��0�0�;�q�r�?�B�K�"�/�/��0F�0F��T�K�!�O�,�� � ��)����� ����+�+�-��-�-�h�7��"�"�7�+��&�&�w�/��
�
�	
r,r%N)
r'r(r)r*r�r�r�r�r#r+r%r,r"r�r��s��=��#�
�f
r,r�c��\rSrSrSrSrg)�SmartServerRequestOpenBranchiPc���URR5nUcSn[SURS545$![R
a [
S5s$f=f)z@Open a branch at path and return the branch reference or branch.r�rar_r;)r<r}rr�rrr)r�
reference_urls  r"r=�.SmartServerRequestOpenBranch.do_bzrdir_requestQs_��	=� �L�L�=�=�?�M��$� "�
�0�%��9M�9M�g�9V�1W�X�X���$�$�	=�,�^�<�<�	=�s�:=�A�Ar%Nrgr%r,r"rrPs��=r,rc��\rSrSrSrSrg)�SmartServerRequestOpenBranchV2i\c�@�URR5nUc@URRSS9nURR	5n[SU45$[SUR
S545$![Ra [S5s$f=f)z9Open a branch at path and return the reference or format.T�r�r|r�r_r;)
r<r}r�r�rrr�rrr)rr
�brr�s    r"r=�0SmartServerRequestOpenBranchV2.do_bzrdir_request]s���	=� �L�L�=�=�?�M��$��\�\�-�-�t�-�D�����0�0�2��4�i��5H�I�I�4��]�1�1�'�:�;�����$�$�	=�,�^�<�<�	=�s�AA;�A;�;B�Br%Nrgr%r,r"rr\s��
=r,rc��\rSrSrSrSrg)�SmartServerRequestOpenBranchV3imc���URR5nUc@URRSS9nURR	5n[SU45$[SUR
S545$![Radn[U5 SnURnU(a/URS5(aUS	SnXVR
S54-
n[U5sSnA$SnAff=f)
aZOpen a branch at path and return the reference or format.

This version introduced in 2.1.

Differences to SmartServerRequestOpenBranchV2:
  * can return 2-element ('nobranch', extra), where 'extra' is a string
    with an explanation like 'location is a repository'.  Previously
    a 'nobranch' response would never have more than one element.
NTrr|r�r_r;z: r	)
r<r}r�r�rrr�rr�str�detailr�r)rr
rr��e�resprs       r"r=�0SmartServerRequestOpenBranchV3.do_bzrdir_requestns���	3� �L�L�=�=�?�M��$��\�\�-�-�t�-�D�����0�0�2��4�i��5H�I�I�4��]�1�1�'�:�;�����$�$�
	3�
��F�!�D��X�X�F���$�$�T�*�*�#�A�B�Z�F����w�/�1�1��,�T�2�2��
	3�s%�AA;�A;�;C3�AC.�(C3�.C3r%Nrgr%r,r"rrms��3r,r)'r��fastbencoder�r�rrrrr�rr
r�rr�requestrrrrr.r8r\rirnrvr�r�r�r�r�r�r�r�r�r�r�rrrr%r,r"�<module>rsK��"9��4�4�1��)���8�#5�8�,5�'9�5�2 "�1� "�F
7�,D�
7� ;�-E�;�7�0H�7�$
�-E�$
�NU�.F�U�D)
�%=�)
�X
�)A�
�BH�'?�H�.A�)I�A�0A�)I�A�2A�)I�A�>:�)A�:�R�*B�R�.	7�);�	7�
�+C�
�D	=�#;�	=�=�%=�=�"3�%=�3r,

Youez - 2016 - github.com/yon3zu
LinuXploit