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/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

p��g�4��H�SrSSKJrJrJrJr "SS5r"SS5rg)z5Utility for create branches with particular contents.�)�commit�
controldir�errors�revisionc�r�\rSrSrSrSSjrSSjrSSjrSSjrSr	S	r
SS
jrSrSr
S
rg)�
BranchBuilder�a�A BranchBuilder aids creating Branches with particular shapes.

The expected way to use BranchBuilder is to construct a
BranchBuilder on the transport you want your branch on, and then call
appropriate build_ methods on it to get the shape of history you want.

This is meant as a helper for the test suite, not as a general class for
real data.

For instance:

>>> from breezy.transport.memory import MemoryTransport
>>> builder = BranchBuilder(MemoryTransport("memory:///"))
>>> builder.start_series()
>>> builder.build_snapshot(None, [
...     ('add', ('', b'root-id', 'directory', '')),
...     ('add', ('filename', b'f-id', 'file', b'content\n'))],
...     revision_id=b'rev-id')
b'rev-id'
>>> builder.build_snapshot([b'rev-id'],
...     [('modify', ('filename', b'new-content\n'))],
...     revision_id=b'rev2-id')
b'rev2-id'
>>> builder.finish_series()
>>> branch = builder.get_branch()

:ivar _tree: This is a private member which is not meant to be modified by
    users of this class. While a 'series' is in progress, it should hold a
    MemoryTree with the contents of the last commit (ready to be modified
    by the next build_snapshot command) with a held write lock. Outside of
    a series in progress, it should be None.
Nc�z�Ub#Ub[S5eUb[S5eX0lO�URS5(dURS5 UcSn[	U[
5(a[RRU5n[RRURUSS9UlSUlg)a�Construct a BranchBuilder on transport.

:param transport: The transport the branch should be created on.
    If the path of the transport does not exist but its parent does
    it will be created.
:param format: Either a BzrDirFormat, or the name of a format in the
    controldir format registry for the branch to be built.
:param branch: An already constructed branch to use.  This param is
    mutually exclusive with the transport and format params.
Nz/branch and format kwargs are mutually exclusivez2branch and transport kwargs are mutually exclusive�.�defaultF)�format�force_new_tree)
�AssertionError�_branch�has�mkdir�
isinstance�strr�format_registry�make_controldir�
ControlDir�create_branch_convenience�base�_tree)�self�	transportr
�branchs    �6/usr/lib/python3/dist-packages/breezy/branchbuilder.py�__init__�BranchBuilder.__init__8s������!�$�%V�W�W��$�$�H���"�L��=�=��%�%�����$��~�"���&�#�&�&�#�3�3�C�C�F�K��%�0�0�J�J����v�e�K��D�L���
�c��UbQ[U5S:Xa[RnOUSnX@RR	5:waURXBS9 URR
5nUR5 UbURXS9 URS5 UR"U40UD6sSSS5 $!,(df   g=f)z�Build a commit on the branch.

This makes a commit with no real file content for when you only want
to look at the revision graph structure.

:param commit_kwargs: Arguments to pass through to commit, such as
     timestamp.
N���allow_leftmost_as_ghost�)�lenr�
NULL_REVISIONr�
last_revision�_move_branch_pointer�create_memorytree�
lock_write�set_parent_ids�add�
_do_commit)r�
parent_idsr%�
commit_kwargs�base_id�trees      r�build_commit�BranchBuilder.build_commitWs����!��:��!�#�"�0�0��$�Q�-���,�,�4�4�6�6��)�)��*���|�|�-�-�/��
�_�_�
��%��#�#��$��
�H�H�R�L��?�?�4�9�=�9�
�
�
�s�?6B?�?
C
c��[R"5nUc#Uc SURR5S-3nUR"U4X5S.UD6$)Nzcommit r)�message_callback�reporter)r�NullCommitReporterr�revno)rr3�messager7�kwargsr8s      rr/�BranchBuilder._do_committs^���,�,�.���?�/�7����� 2� 2� 4�q� 8�9�:�G��{�{��
�&6�
�MS�
�	
r!c�D�URR5 URR5up4URRR	5nURXU4/5nURR
Xa5 SSS5 URbKURR5nUR5 URR5 Xpl	gg![Ra
 U(deSnN�f=f!,(df   N�=f)z.Point self._branch to a different revision id.rN)rr,�last_revision_info�
repository�	get_graph�find_distance_to_null�set_last_revision_infor�GhostRevisionsHaveNoRevnorr+�unlock)r�new_revision_idr%�	cur_revno�cur_revision_id�g�	new_revno�new_trees        rr*�"BranchBuilder._move_branch_pointer|s���
�\�\�
$�
$�
&�*.���)H�)H�)J�&�I�	
��L�L�+�+�5�5�7���3�3�#�	�&B�%C��	����3�3�I�O�'��:�:�!��|�|�5�5�7�H����!��J�J����!�J�"��	�3�3�
�.���	�
��'�
&�s)�D�AC-�-D�D�
D�D�
Dc��URb[S5eURR5UlURR	5 g)z�We will be creating a series of commits.

This allows us to hold open the locks while we are processing.

Make sure to call 'finish_series' when you are done.
Nz>You cannot start a new series while a series is already going.)rrrr+r,�rs r�start_series�BranchBuilder.start_series�sD���:�:�!� �P��
��\�\�3�3�5��
��
�
���r!c�F�URR5 SUlg)z;Call this after start_series to unlock the various objects.N)rrErNs r�
finish_series�BranchBuilder.finish_series�s���
�
������
r!c
��UbQ[U5S:Xa[Rn
OUSn
X�RR	5:waURX�S9 URb
URnOURR5nUR5 UbURXS9 [5nUGHDup�U
S:Xa�UunnnnUS:XaURRUU45 M8URRU5 URRU5 URRU5 UbUUR U'M�M�U
S:XaUunnUUR U'M�U
S:XaUR"R%U5 M�U
S:Xa%UunnUR&RUU45 GM	U
S	:XaUR)X�5 [5nGM-[+S
R-U
55e UR)X�5 UR/UUU	UUUUS9sSSS5 $!,(df   g=f)a
Build a commit, shaped in a specific way.

Most of the actions are self-explanatory.  'flush' is special action to
break a series of actions into discrete steps so that complex changes
(such as unversioning a file-id and re-adding it with a different kind)
can be expressed in a way that will clearly work.

:param parent_ids: A list of parent_ids to use for the commit.
    It can be None, which indicates to use the last commit.
:param actions: A list of actions to perform. Supported actions are:
    ('add', ('path', b'file-id', 'kind', b'content' or None))
    ('modify', ('path', b'new-content'))
    ('unversion', 'path')
    ('rename', ('orig-path', 'new-path'))
    ('flush', None)
:param message: An optional commit message, if not supplied, a default
    commit message will be written.
:param message_callback: A message callback to use for the commit, as
    per mutabletree.commit.
:param timestamp: If non-None, set the timestamp of the commit to this
    value.
:param timezone: An optional timezone for timestamp.
:param committer: An optional username to use for commit
:param allow_leftmost_as_ghost: True if the leftmost parent should be
    permitted to be a ghost.
:param revision_id: The handle for the new commit, can be None
:return: The revision_id of the new commit
Nr#r$r.�	directory�modify�	unversion�rename�flushzUnknown build action: "{}")r;�rev_id�	timestamp�timezone�	committerr7)r'rr(rr)r*rr+r,r-�_PendingActions�to_add_directories�append�to_add_files�to_add_file_ids�to_add_kinds�new_contents�to_unversion_pathsr.�	to_rename�_flush_pending�
ValueErrorr
r/)rr0�actionsr;r[r%r]r\r7�revision_idr2r3�pending�action�info�path�file_id�kind�content�from_relpath�
to_relpaths                     r�build_snapshot�BranchBuilder.build_snapshot�s#��P�!��:��!�#�"�0�0��$�Q�-���,�,�4�4�6�6��)�)��*���:�:�!��:�:�D��<�<�1�1�3�D�
�_�_�
��%��#�#��$��&�'�G� '����U�?�37�0�D�'�4���{�*��2�2�9�9�4��/�J��,�,�3�3�D�9��/�/�6�6�w�?��,�,�3�3�D�9�"�.�9@�G�0�0��6�/��x�'�$(�M�D�'�18�G�(�(��.��{�*��.�.�2�2�4�8��x�'�/3�,�L�*��%�%�,�,�l�J�-G�H��w�&��'�'��6�-�/�G�$�%A�%H�%H��%P�Q�Q�/!(�0
����.��?�?���"�#�!�#�!1�#��G�
�
�s
�F
H0�0
H>c�D�URH�up4US:XaoURU5(a*X2R;aURRU5 UbUR	U/S/U/S9 MdUR	U/S/5 MzUbURX45 M�URU5 M� URHupVURXV5 M UR(aURUR5 UR(a2UR	URURUR5 O&UR	URUR5 URR5Hup7URX75 M g)z@Flush the pending actions in 'pending', i.e. apply them to tree.r&NrU)�ids)r_�has_filenamere�discardr.rrf�
rename_onerW�supports_file_idsrarcrbrd�items�put_file_bytes_non_atomic)rr3rkrnrorrrsrqs        rrg�BranchBuilder._flush_pendingsH��$�7�7�M�D��r�z��$�$�T�*�*�t�7Q�7Q�/Q��.�.�6�6�t�<��&��H�H�d�V�k�]��	�H�B��H�H�d�V�k�]�3��&��J�J�t�-��J�J�t�$�8�)0�(9�(9�$�L��O�O�L�5�):��%�%��N�N�7�5�5�6��!�!��H�H��$�$�g�&:�&:�G�<S�<S�
�
�H�H�W�)�)�7�+?�+?�@�$�1�1�7�7�9�M�D��*�*�4�9�:r!c��UR$)z)Return the branch created by the builder.)rrNs r�
get_branch�BranchBuilder.get_branch,s���|�|�r!)rr)NNN)NF)NN)F)NNFNNNN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr4r/r*rOrRrtrgr��__static_attributes__�r!rrrsT���B�@8=�:�:
�"�8 ���� %�����a�F:�<r!rc��\rSrSrSrSrSrg)r^i1z�Pending actions for build_snapshot to take.

This is just a simple class to hold a bunch of the intermediate state of
build_snapshot in single object.
c�v�/Ul/Ul/Ul/Ul0Ul[5Ul/Ulg)N)r_rarbrcrd�setrerfrNs rr�_PendingActions.__init__8s;��"$������!���������"%�%�����r!)rdr_rbrarcrfreN)r�r�r�r�r�rr�r�r!rr^r^1s���r!r^N)r�r&rrrrrr^r�r!r�<module>r�s'��"<�2�2�X�X�v�r!

Youez - 2016 - github.com/yon3zu
LinuXploit