403Webshell
Server IP : 217.160.0.64  /  Your IP : 216.73.216.137
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/plugins/upload/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/kunden/usr/lib/python3/dist-packages/breezy/plugins/upload/__pycache__/cmds.cpython-313.pyc
�

p��grW���SrSSKJrJrJrJrJrJr \R
"\"5S5 \R"SS\RSS9r\R"SS\RS	S9r\R"S
SSS
9r
\R"SSSS
9r"SS5r"SS\R 5r"SS\R 5r"SS\R&5rg)z#bzr-upload command implementations.�)�commands�config�errors�lazy_import�option�osutilsz
import stat

from breezy import (
    controldir,
    globbing,
    ignores,
    revision,
    transport,
    urlutils,
    )
�upload_autoFz@Whether upload should occur when the tip of the branch changes.
)�default�from_unicode�help�upload_auto_quietz%Whether upload should occur quietly.
�upload_locationNz'The url to upload the working tree to.
)r
r�upload_revid_locationz.bzr-upload.revidaAThe relative path to be used to store the uploaded revid.

The only bzr-related info uploaded with the working tree is the corresponding
revision id. The uploaded working tree is not linked to any other bzr data.

If the layout of your remote server is such that you can't write in the
root directory but only in the directories inside that root, you will need
to use the 'upload_revid_location' configuration variable to specify the
relative path to be used. That configuration variable can be specified in
locations.conf or branch.conf.

For example, given the following layout:

  Project/
    private/
    public/

you may have write access in 'private' and 'public' but in 'Project'
itself. In that case, you can add the following in your locations.conf or
branch.conf file:

  upload_revid_location = private/.bzr-upload.revid
c���\rSrSrS SjrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrS!SjrSrS!SjrSrSrS!SjrS!SjrSrSrSrSrSrSrSrSrSr g)"�BzrUploader�`c��XlX lX0lX@lXPlX`l/Ul/UlSUlSUl	g�N)
�branch�to_transport�outf�tree�rev_id�quiet�_pending_deletions�_pending_renames�_uploaded_revid�_ignored)�selfrrrrrrs       �</usr/lib/python3/dist-packages/breezy/plugins/upload/cmds.py�__init__�BzrUploader.__init__as@����(���	��	����
�"$��� "���#�����
�c�^�URR[RU55$r)r�stat�urlutils�escape�r�relpaths  r �_up_stat�BzrUploader._up_statms"��� � �%�%�h�o�o�g�&>�?�?r#c��URR[RU5[RU55$r)r�renamer&r')r�old_path�new_paths   r �
_up_rename�BzrUploader._up_renameps2��� � �'�'��O�O�H�%�x���x�'@�
�	
r#c�^�URR[RU55$r)r�deleter&r'r(s  r �
_up_delete�BzrUploader._up_deleteus"��� � �'�'�����(@�A�Ar#c�^�URR[RU55$r)r�delete_treer&r'r(s  r �_up_delete_tree�BzrUploader._up_delete_treexs"��� � �,�,�X�_�_�W�-E�F�Fr#c�`�URR[RU5U5$r)r�mkdirr&r'�rr)�modes   r �	_up_mkdir�BzrUploader._up_mkdir{s$��� � �&�&�x���w�'?��F�Fr#c�^�URR[RU55$r)r�rmdirr&r'r(s  r �	_up_rmdir�BzrUploader._up_rmdir~s"��� � �&�&�x���w�'?�@�@r#c�b�URR[RU5X#5 gr)r�	put_bytesr&r')rr)�bytesr=s    r �
_up_put_bytes�BzrUploader._up_put_bytes�s!�����#�#�H�O�O�G�$<�e�Jr#c�^�URR[RU55$r)r�	get_bytesr&r'r(s  r �
_up_get_bytes�BzrUploader._up_get_bytes�s"��� � �*�*�8�?�?�7�+C�D�Dr#c��URR5RS5nURR	[
R
U5U5 Xlg�Nr)r�get_config_stack�getrrEr&r'r)rr�
revid_paths   r �set_uploaded_revid�BzrUploader.set_uploaded_revid�sE���[�[�1�1�3�7�7�8O�P�
����#�#�H�O�O�J�$?��H�%�r#c�@�URcLURR5RS5nUR	U5UlUR$UR$![
Ra# [RUlUR$f=frN)	rrrOrPrK�	transport�
NoSuchFile�revision�
NULL_REVISION)rrQs  r �get_uploaded_revid�BzrUploader.get_uploaded_revid�s������'����5�5�7�;�;�<S�T�J�
>�'+�'9�'9�*�'E��$��#�#�#�t�#�#�#���'�'�
>�'/�'=�'=��$��#�#�#�
>�s�A&�&)B�Bc��URcMSnURRU5n[R	U5n[RU5UlUR$![
Ra /nN>f=f)N�.bzrignore-upload)	rr�get_file�ignores�parse_ignore_filerUrV�globbing�Globster)r�ignore_file_path�ignore_file�ignored_patternss    r �_get_ignored�BzrUploader._get_ignored�sz���=�=� �
J�#6� �"�i�i�0�0�1A�B��$+�#<�#<�[�#I� �$�-�-�.>�?�D�M��}�}����'�'�
&�#%� �
&�s�A'�'B�?Bc�6�UR5nURU5nSSKnU(dlURR	U5nU(aJU(dCURU5nU(dURR	U5nU(a	U(dMCU$)N�)re�match�os�path�dirname)rr)�glob�ignoredrj�dirs      r �
is_ignored�BzrUploader.is_ignored�sm��� � �"���*�*�W�%�����'�'�/�/�'�*�C��g��*�*�S�/����'�'�/�/�#�.�C��g�g��r#Nc� �Uc%URRU5(aSnOSnUR(d*URR	SRU55 UR
XRRU5U5 g)N�i�z
Uploading {}
)r�
is_executablerr�write�formatrG�
get_file_text)r�old_relpath�new_relpathr=s    r �upload_file�BzrUploader.upload_file�sh���<��y�y�&�&�{�3�3������z�z��I�I�O�O�,�3�3�K�@�A����;�	�	�(?�(?��(L�d�Sr#c��URU5n[RUR5(afUR(dCUR
R
SRURR5U55 URU5 g[RUR5(afUR(dCUR
R
SRURR5U55 URU5 gg![Ra gf=f)NzClearing {}/{}
)r*r%�S_ISDIR�st_moderrrurvr�external_urlr8�S_ISLNKr4r�	PathError)rr)�sts   r �_force_clear�BzrUploader._force_clear�s���	����w�'�B��|�|�B�J�J�'�'��z�z��I�I�O�O�*�1�1� �-�-�:�:�<�g���
�$�$�W�-����b�j�j�)�)��z�z��I�I�O�O�*�1�1� �-�-�:�:�<�g���
����(�*�����	��	�s�BD(�B	D(�(D?�>D?c�J�URU5 URXU5 g)z�Upload a file, clearing the way on the remote side.

When doing a full upload, it may happen that a directory exists where
we want to put our file.
N)r�rzr<s   r �upload_file_robustly� BzrUploader.upload_file_robustly�s"��	
���'�"�����4�0r#c�:�URRX!5 gr)r�symlink�rr)�targets   r �upload_symlink�BzrUploader.upload_symlink�s�����!�!�&�2r#c���URU5 [R"[R"[R"U5U55nURX5 g)zHandle uploading symlinks.N)r�r�normpath�pathjoinrlr�r�s   r �upload_symlink_robustly�#BzrUploader.upload_symlink_robustly�sF�����'�"��!�!�'�"2�"2�7�?�?�7�3K�V�"T�U�����G�,r#c�0�UcSnURX5 g)Nrs)r>r<s   r �make_remote_dir�BzrUploader.make_remote_dir�s���<��D����w�%r#c��URU5n[RUR5(dfUR(dCUR
R
SRURR5U55 URU5 OgURX5 g![Ra N(f=f)z�Create a remote directory, clearing the way on the remote side.

When doing a full upload, it may happen that a file exists where we
want to create our directory.
zDeleting {}/{}
N)r*r%r}r~rrrurvrrr4rr�r�)rr)r=r�s    r �make_remote_dir_robustly�$BzrUploader.make_remote_dir_robustly�s���	����w�'�B��<�<��
�
�+�+��z�z��I�I�O�O�*�1�1� �-�-�:�:�<�g���
����(��	
���W�+�����	��	�s�BB0�0C�Cc��UR(d*URRSRU55 UR	U5 g�NzDeleting {}
)rrrurvr4r(s  r �delete_remote_file�BzrUploader.delete_remote_files0���z�z��I�I�O�O�O�2�2�7�;�<����� r#c��UR(d*URRSRU55 UR	U5 gr�)rrrurvrBr(s  r �delete_remote_dir�BzrUploader.delete_remote_dirs0���z�z��I�I�O�O�O�2�2�7�;�<����w�r#c��URU5 g![Ra URR	U5 gf=f)z7Try to delete relpath, keeping failures to retry later.N)rBrr�r�appendr(s  r �delete_remote_dir_maybe�#BzrUploader.delete_remote_dir_maybes>��	4��N�N�7�#�����	4��#�#�*�*�7�3�	4�s��/A�Ac��UR(a5[UR5HnURU5 M /Ulggr)r�reversedrBr(s  r �finish_deletions�BzrUploader.finish_deletionss=���"�"�$�D�$;�$;�<�����w�'�=�')�D�#�#r#c�T�SSKnSSKnSSKnSUR5UR5UR	SS54-nUR
(d*URRSRX55 URX5 URRXb45 g)z�Rename a remote file or directory taking care of collisions.

To avoid collisions during bulk renames, each renamed target is
temporarily assigned a unique name. When all renames have been done,
each target get its proper name.
rhNz.tmp.%.9f.%d.%di���zRenaming {} to {}
)rj�random�time�getpid�randintrrrurvr0rr�)rrxryrjr�r��stamps       r �
rename_remote�BzrUploader.rename_remote!s���	���!��I�I�K��I�I�K��N�N�1�j�)�%
�
��
�z�z��I�I�O�O�1�8�8��R�S�����+����$�$�e�%9�:r#c�^�URHupURX5 M /Ulgr)rr0)rr�r/s   r �finish_renames�BzrUploader.finish_renames9s*��#�4�4�O�E��O�O�E�,� 5�!#��r#c	��URR5 URR5 URR	5H�upUS;aM
URU5(a=UR(d*URRSRU55 M`URS:XaURU5 M�URS:XaURXR5 M�URS:XaUR#U5 M�[$e UR'UR(5 SSS5 g![Rab UR(dLURR!U5SnURRSRX55 GMqGMuf=f!,(df   g=f)N)�z
.bzrignorer\�Ignoring {}
�filer�r�Not uploading symlink {} -> {}
�	directory)r�ensure_baser�	lock_read�iter_entries_by_dirrprrrurv�kindr�r��symlink_targetr�TransportNotPossible�path_content_summaryr��NotImplementedErrorrRr)rr)�ier�s    r �upload_full_tree�BzrUploader.upload_full_tree@sg�����%�%�'�
�Y�Y�
 �
 �
"�#�y�y�<�<�>����E�E���?�?�7�+�+��:�:��	�	����(>�(>�w�(G�H���7�7�f�$��-�-�g�6��W�W�	�)�	��4�4�W�>O�>O�P��W�W��+��1�1�'�:�-�-�5 ?�6
�#�#�D�K�K�0�9#�
"�� "�6�6��#�z�z�%)�Y�Y�%C�%C�G�%L�Q�%O�F� �I�I�O�O� B� I� I�$+�!"��� *���!#�
"�s2�B.G	�$E�?AG	�A-G�=G	�G�G	�	
Gc	��UR5nU[R:Xa=UR(dURRS5 UR
5 gXR:Xa,UR(dURRS5 URRRU5nURR5 URRU5nURR5 UR GHnUR#UR$S5(aJUR(d7URRSR'UR$S55 MqUR(SS:Xa UR+UR$S5 M�UR(SS:Xa UR-UR$S5 M�UR(SS:Xa!UR+UR$S5 GM[.e UR0GH4nUR#UR$S5(a�UR#UR$S5(a�UR(dnURRSR'UR$S55 URRSR'UR$S55 M�UR2(a,UR5UR$SUR$S5 UR7UR$SUR$S5 GM7 UR95 UR;5 UR<GH�nUR#UR$S5(aJUR(d7URRSR'UR$S55 MqUR(SS	;aUR+UR$S5 O8UR(SS:XaUR?UR$S5 O[.eUR(SS:Xa/UR5UR$SUR$S5 GMUR(SS:XaJURRAUR$S5nURCUR$SU5 GMzUR(SS:Xa!UREUR$S5 GM�[.e URFURH-GHFnUR#UR$S5(aJUR(d7URRSR'UR$S55 MqUR(SS:Xa.UR5UR$SUR$S5 M�UR(SS:Xa UREUR$S5 M�UR(SS:XaKURRAUR$S5nURCUR$SU5 GMC[.e URNGHnUR#UR$S5(aJUR(d7URRSR'UR$S55 MqUR(SS:Xa.UR5UR$SUR$S5 M�UR(SS:XaJURRAUR$S5nURCUR$SU5 GM[.e URQUR5 SSS5 g![JRLaR UR(d<URRS
R'UR$SU55 GM�GM�f=f!,(df   g=f)Nz8No uploaded revision id found, switching to full upload
z#Remote location already up to date
rhr�r�r�r��)r�r�r�))rYrWrXrrrur�rr�
repository�
revision_treerr�r�changes_fromr��removedrprkrvr�r�r�r��renamed�changed_contentrzr�r�r��kind_changedr��get_symlink_targetr�r��added�copiedrr��modifiedrR)rr�	from_tree�changes�changer�s      r �upload_tree�BzrUploader.upload_treeas���(�(�*���X�+�+�+��:�:��	�	���O��
�!�!�#���[�[� ��:�:��	�	��� F�G��K�K�*�*�8�8��@�	����%�%�'��)�)�(�(��3��
�Y�Y�
 �
 �
"�!�/�/���?�?�6�;�;�q�>�2�2��:�:��	�	����(>�(>�v�{�{�1�~�(N�O���;�;�q�>�V�+��+�+�F�K�K��N�;��[�[��^�{�2��0�0����Q��@��[�[��^�y�0��+�+�F�K�K��N�;�-�-�*�"�/�/���?�?�6�;�;�q�>�2�2�t���v�{�{�ST�~�7V�7V��:�:��	�	����(>�(>�v�{�{�1�~�(N�O��	�	����(>�(>�v�{�{�1�~�(N�O���)�)��$�$�V�[�[��^�V�[�[��^�D��"�"�6�;�;�q�>�6�;�;�q�>�B�*�
���!��!�!�#�!�.�.���?�?�6�;�;�q�>�2�2��:�:��	�	����(>�(>�v�{�{�1�~�(N�O���;�;�q�>�%8�8��+�+�F�K�K��N�;��[�[��^�{�2��*�*�6�;�;�q�>�:�-�-��;�;�q�>�V�+��$�$�V�[�[��^�V�[�[��^�D��[�[��^�y�0�!�Y�Y�9�9�&�+�+�a�.�I�F��'�'����A���?��[�[��^�{�2��(�(����Q��8�-�-�)/�,"�-�-�'�.�.�8���?�?�6�;�;�q�>�2�2��:�:��	�	����(>�(>�v�{�{�1�~�(N�O���;�;�q�>�V�+��$�$�V�[�[��^�V�[�[��^�D��[�[��^�{�2��(�(����Q��8��[�[��^�y�0�!�Y�Y�9�9�&�+�+�a�.�I�F���+�+�F�K�K��N�F�C�.�-�+9�0"�*�*���?�?�6�;�;�q�>�2�2��:�:��	�	����(>�(>�v�{�{�1�~�(N�O���;�;�q�>�V�+��$�$�V�[�[��^�V�[�[��^�D��[�[��^�y�0�!�Y�Y�9�9�&�+�+�a�.�I�F��'�'����A���?�-�-�+�
�#�#�D�K�K�0�q#�
"��@"�6�6��#�z�z� �I�I�O�O� B� I� I�$*�K�K��N�F�!"��� *���A#�
"�s3�Va,�`�1E	a,�Aa)� a,�(a)�)a,�,
a:)
rrrrrrrrrr)Fr)!�__name__�
__module__�__qualname__�__firstlineno__r!r*r0r4r8r>rBrGrKrRrYrerprzr�r�r�r�r�r�r�r�r�r�r�r�r�r��__static_attributes__�r#r rr`s���
�@�
�
B�G�G�A�K�E�&�$�
��T��.1�3�-�&�
,�.!�
 �4�)�;�0#�1�Bo1r#rc��\rSrSrSrSrg)�CannotUploadToWorkingTreei�z6Cannot upload to a bzr managed working tree: %(url)s".r�N�r�r�r�r��_fmtr�r�r#r r�r��s��C�Dr#r�c��\rSrSrSrSrg)�DivergedUploadedTreei�zRYour branch (%(revid)s) and the uploaded tree (%(uploaded_revid)s) have diverged: r�Nr�r�r#r r�r��s
��	F�	r#r�c���\rSrSrSrS/rS/rSSS\R"SS	5\R"S
SSS
9\R"SSS\	S9\R"SS5/r
SSjrSrg)�
cmd_uploadi�z�Upload a working tree, as a whole or incrementally.

If no destination is specified use the last one used.
If no revision is specified upload the changes since the last upload.

Changes include files added, renamed, modified or removed.
zplugins/uploadz	location?rW�remember�	overwrite�fullzUpload the full working tree.rz!Do not output what is being done.�q)�
short_namer�zLBranch to upload from, rather than the one containing the working directory.�d)rr��type�autozETrigger an upload from this branch whenever the tip revision changes.Nc	
��UcSn[RRU5up�nU	(aU	nOU
nUR5 U	(aMU	R	U	R55n
Uc+U
R
5(a[R"U	5eU
R5nUcURS5nUc[R"S5e[RX�RR5nURR!SR#U55 Un[$R'U5n[RR)U5nUR+5nU(a	[1US9eUcU
R35nOC[5U5S:wa[R"S	5eUS
R7U
5R8nU
R:R=U5n[?U
UURUUUS9nU(dKURA5nU
R:RC5nUREUU5(d
[GUUS9eU(aURI5 OURK5 SSS5 U
RM5 WRS5nUbU(a/UROS[RQWRR55 UbUROS
U5 SSS5 g![R,a SnGN�[R.a SnGN�f=f!,(df   N�=f!,(df   g=f)N�.rz&No upload location known or specified.zUsing saved location: {}
FT)�urlr�z.bzr upload --revision takes exactly 1 argumentrh)r)�revid�uploaded_revidr	)*�
controldir�
ControlDir�open_containing_tree_or_branchr�r��
basis_tree�has_changedr�UncommittedChangesrOrP�CommandErrorr&�unescape_for_displayr�encodingrurvrU�
get_transport�open_from_transport�has_workingtree�NotBranchError�NotLocalUrlr��
last_revision�len�
in_historyrr�r�rrY�	get_graph�is_ancestorr�r�r��
lock_write�set�unescape�base)r�locationr�rWr�r�rr�r��wtrr)�lockedr��conf�
stored_loc�display_urlr�
to_bzr_dir�has_wtrr�uploader�prev_uploaded_rev_id�graphrs                          r �run�cmd_upload.run�s������I� *� 5� 5� T� T��!
���W���F��F�
�
�
�
���/�/�"�-�-�/�:���#��(;�(;�(=�(=� �3�3�B�7�7��*�*�,�D���!�X�X�&7�8�
��%� �-�-�.V�W�W�#+�"?�"?�"�I�I�$6�$6�#�K��I�I�O�O�$@�$G�$G��$T�U�)�H�$�2�2�8�<�L�
�'�2�2�F�F�|�T�
�#�3�3�5���/�H�=�=����-�-�/���x�=�A�%� �-�-�H���"�!��/�/��7�>�>���$�$�2�2�6�:�D�"���d�i�i��v�U��H��'/�'B�'B�'D�$��)�)�3�3�5���(�(�)=�v�F�F�.�$�5I�����)�)�+��$�$�&�w �|�
�
�
 �"�h�h�'8�9�O��&�(����*�H�,=�,=�l�>O�>O�,P�Q��������-�!�
 ��I�(�(�
����%�%�
���
��9 �
��|!�
 �sK�C<L:�/L�0DL:�A M�L7�L:�L7�3L:�6L7�7L:�:
M�
Mr�)NFNNNFNF)
r�r�r�r��__doc__�	_see_also�
takes_argsr�Option�str�
takes_optionsrr�r�r#r r�r��s����"�"�I���J�����
�
�f�=�>��
�
�g�B�s�S��
�
��D���	
�	�
�
��S�	
��M�*�
�����
��Y.r#r�)rr�rrrrrr�globalsr�bool_from_store�auto_option�auto_quiet_option�location_option�revid_location_optionrr�r�r��Commandr�r�r#r �<module>r"s���"*�F�F�����I���"�m�m����'�'�
�	���M�M����'�'�
�	���-�-���
����
�
���
���Fp1�p1�fD�� 3� 3�D��6�.�.��w.��!�!�w.r#

Youez - 2016 - github.com/yon3zu
LinuXploit