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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

p��g����SrSSKJrJrJr SSKJr \"\"5S5 SSKJrJ	r	J
r
Jr SSKJr
 SSKJr \(aSS	KJr SS
KJr SSKJr "SS
\R,5r"SS\R,5r"SS\R,5r"SS5r"SS\5r"SS\	R85r\"5\l	"SS5r"SS\
R>\5r "SS5r!"SS5r""S S!5r#"S"S#5r$"S$S%\
RJ\&\"45r'"S&S'5r(S(r)"S)S*5r*\'"5r+\
R>\""5r,g+),�google�)�
TYPE_CHECKING�Optional�cast�)�lazy_importz
import textwrap

from breezy import (
    branch as _mod_branch,
    ui,
    urlutils,
    )

from breezy.i18n import gettext
)�errors�hooks�registry�trace)�revision��	transport)�Branch)�
Repository)�WorkingTreec��\rSrSrSrSrSrg)�MustHaveWorkingTree�8z;Branching '%(url)s'(%(format)s) must create a working tree.c�@�[RRXUS9 g)N)�format�url�r	�BzrError�__init__)�selfrrs   �3/usr/lib/python3/dist-packages/breezy/controldir.pyr�MustHaveWorkingTree.__init__;s����� � ��#� �>��N��__name__�
__module__�__qualname__�__firstlineno__�_fmtr�__static_attributes__r rrrr8s��H�D�?rrc��\rSrSrSrSrSrg)�BranchReferenceLoop�?z=Can not create branch reference that points at branch itself.c�>�[RRXS9 g)N)�branchr�rr,s  rr�BranchReferenceLoop.__init__Bs����� � �� �5rr Nr!r rrr)r)?s��J�D�6rr)c��\rSrSrSrSrSrg)�NoColocatedBranchSupport�Fz4%(controldir)r does not support co-located branches.c��Xlg�N��
controldir)rr5s  rr�!NoColocatedBranchSupport.__init__Is��$�rr4Nr!r rrr0r0Fs��A�D�%rr0c��\rSrSr%Sr\S\R4Sj5r\S\	4Sj5r
\S\R4Sj5r\S\	4Sj5rS\
S	'S
rg)�ControlComponent�Ma�Abstract base class for control directory components.

This provides interfaces that are common across controldirs,
repositories, branches, and workingtree control directories.

They all expose two urls and transports: the *user* URL is the
one that stops above the control directory (eg .bzr) and that
should normally be used in messages, and the *control* URL is
under that in eg .bzr/checkout and is used to read the control
files.

This can be used as a mixin and is intended to fit with
foreign formats.
�returnc��[er3��NotImplementedError�rs r�control_transport�"ControlComponent.control_transport]���!�!rc�.�URR$r3)r?�baser>s r�control_url�ControlComponent.control_urlas���%�%�*�*�*rc��[er3r<r>s r�user_transport�ControlComponent.user_transporterArc�.�URR$r3)rGrCr>s r�user_url�ControlComponent.user_urlis���"�"�'�'�'r�ControlComponentFormat�_formatr N)r"r#r$r%�__doc__�property�_mod_transport�	Transportr?�strrDrGrJ�__annotations__r'r rrr8r8Ms���
��"�>�#;�#;�"��"��+�S�+��+��"�� 8� 8�"��"��(�#�(��(�&�%rr8c	��\rSrSr%Sr\R\S'\R\S'\R\S'Sr
S\S4S	jrS\\
4S
jrS\\
S44SjrSrS>SjrS?S\SS4SjjrS@SjrSAS\\
S\SS\\SS4SjjrS>S\\
SS
4SjjrSBSCSjjrSrSrS>SjrS>SjrS>SjrSDSESjjrS?SFSjjr SFS jr!SGSCS!jjr"S>S"jr#S#r$S$r%S?S%jr&S&r'SHS'jr(SIS(jr)S>S)jr*S*r+S+r,SDS,jr-SJS-jr.\/SKS.j5r0\/S/5r1\/SLSES0jj5r2\/SMS1j5r3\/S>SCS2jj5r4\/S35r5\/SNSOS4jj5r6\/SLS5\RSS4S6jj5r7\/S>S7j5r8\/S>S8j5r9\/S>S9j5r:\/S>S:j5r;\/S;5r<\/SKS<j5r=S=r>g
)P�
ControlDir�pa�A control directory.

While this represents a generic control directory, there are a few
features that are present in this interface that are currently only
supported by one of its implementations, BzrDir.

These features (bound branches, stacked branches) are currently only
supported by Bazaar, but could be supported by other version control
systems as well. Implementations are required to raise the appropriate
exceptions when an operation is requested that is not supported.

This also makes life easier for API users who can rely on the
implementation always allowing a particular feature to be requested but
raising an exception when it is not supported, rather than requiring the
API users to check for magic attributes to see what features are supported.
r
�root_transportrGc��g)zHReturn true if this controldir is one whose format we can convert
from.
Tr r>s r�can_convert_format�ControlDir.can_convert_format�s��rr:rc�P�[UR5R55$)zBReturn a sequence of all branches local to this control directory.)�list�get_branches�valuesr>s r�
list_branches�ControlDir.list_branches�s���D�%�%�'�.�.�0�1�1rc��UR5 S/$![R[R4a /s$f=f)zPList all branch names in this control directory.

Returns: List of branch names
�)�get_branch_referencer	�NotBranchError�NoRepositoryPresentr>s r�branch_names�ControlDir.branch_names�sC��
	��%�%�'��4�K���%�%�v�'A�'A�B�	��I�	�s��&>�>c��SUR50$![R[R4a 0s$f=f)zuGet all branches in this control directory, as a dictionary.

Returns: Dictionary mapping branch names to instances.
rb)�open_branchr	rdrer>s rr]�ControlDir.get_branches�s@��
	���(�(�*�+�+���%�%�v�'A�'A�B�	��I�	�s��&=�=c�8�URRU5$�a�True if filename is the name of a path which is reserved for
controldirs.

Args:
  filename: A filename within the root transport of this
    controldir.

This is true IF and ONLY IF the filename is part of the namespace reserved
for bzr control dirs. Currently this is the '.bzr' directory in the root
of the root_transport. it is expected that plugins will need to extend
this in the future - for instance to make bzr talk with svn working
trees.
)rM�is_control_filename)r�filenames  rrm�ControlDir.is_control_filename�s���|�|�/�/��9�9rNc�,�[UR5e)a&Return true if this controldir needs convert_format run on it.

For instance, if the repository format is out of date but the
branch and working tree are not, this should return True.

Args:
  format: Optional parameter indicating a specific desired
               format we plan to arrive at.
)r=�needs_format_conversion�rrs  rrq�"ControlDir.needs_format_conversion�s��"�$�">�">�?�?r�sharedrc�,�[UR5e)z�Create a new repository in this control directory.

Args:
  shared: If a shared repository should be created

Returns: The newly created repository
)r=�create_repository)rrts  rrv�ControlDir.create_repository�s��"�$�"8�"8�9�9rc�,�[UR5e)z*Destroy the repository in this ControlDir.)r=�destroy_repositoryr>s rry�ControlDir.destroy_repository����!�$�"9�"9�:�:r�name�
repository�append_revisions_onlyc�,�[UR5e)a�Create a branch in this ControlDir.

Args:
  name: Name of the colocated branch to create, None for
    the user selected branch or "" for the active branch.
  append_revisions_only: Whether this branch should only allow
    appending new revisions to its history.

The controldirs format will control what branch format is created.
For more control see BranchFormatXX.create(a_controldir).
)r=�
create_branch)rr|r}r~s    rr��ControlDir.create_branch�s��""�$�"4�"4�5�5rc�,�[UR5e)z�Destroy a branch in this ControlDir.

Args:
  name: Name of the branch to destroy, None for the
    user selected branch or "" for the active branch.

Raises:
  NotBranchError: When the branch does not exist
)r=�destroy_branch�rr|s  rr��ControlDir.destroy_branch�s��"�$�"5�"5�6�6rc�,�[UR5e)a�Create a working tree at this ControlDir.

Args:
  revision_id: create it as of this revision id.
  from_branch: override controldir branch
    (for lightweight checkouts)
  accelerator_tree: A tree which can be used for retrieving file
    contents more quickly than the revision tree, i.e. a workingtree.
    The revision tree will be used for cases where accelerator_tree's
    content is different.
)r=�create_workingtree)r�revision_id�from_branch�accelerator_tree�hardlinks     rr��ControlDir.create_workingtree�s��"�$�"9�"9�:�:rc�,�[UR5e)zoDestroy the working tree at this ControlDir.

Formats that do not support this may raise UnsupportedOperation.
)r=�destroy_workingtreer>s rr��ControlDir.destroy_workingtrees��
"�$�":�":�;�;rc�,�[UR5e)z�Destroy the control files for the working tree at this ControlDir.

The contents of working tree files are not affected.
Formats that do not support this may raise UnsupportedOperation.
)r=�destroy_workingtree_metadatar>s rr��'ControlDir.destroy_workingtree_metadatas��"�$�"C�"C�D�Drc�,�[UR5e)zoFind the branch 'format' for this controldir.

This might be a synthetic object for e.g. RemoteBranch and SVN.
)r=�find_branch_formatr�s  rr��ControlDir.find_branch_formats��
"�$�"9�"9�:�:rc� �Ub[U5eg)a�Return the referenced URL for the branch in this controldir.

Args:
  name: Optional colocated branch name

Raises:
  NotBranchError: If there is no Branch.
  NoColocatedBranchSupport: If a branch name was specified
    but colocated branches are not supported.

Returns:
  The URL the branch in this controldir references if it is a
  reference branch, or None for regular branches.
N)r0r�s  rrc�ControlDir.get_branch_references����*�4�0�0�rc�,�[UR5e)a"Set the referenced URL for the branch in this controldir.

Args:
  name: Optional colocated branch name
  target_branch: Branch to reference

Raises:
  NoColocatedBranchSupport: If a branch name was specified
    but colocated branches are not supported.

Returns:
  The referencing branch
)r=�set_branch_reference)r�
target_branchr|s   rr��ControlDir.set_branch_reference)s��"�$�";�";�<�<rc�,�[UR5e)a,Open the branch object at this ControlDir if one is present.

Args:
  unsupported: if True, then no longer supported branch formats can
    still be opened.
  ignore_fallbacks: Whether to open fallback repositories
  possible_transports: Transports to use for opening e.g.
    fallback repositories.
)r=ri)rr|�unsupported�ignore_fallbacks�possible_transportss     rri�ControlDir.open_branch9s�� "�$�"2�"2�3�3rc�,�[UR5e)a'Open the repository object at this ControlDir if one is present.

This will not follow the Branch object pointer - it's strictly a direct
open facility. Most client code should use open_branch().repository to
get at a repository.

Args:
  _unsupported: a private parameter, not part of the api.
)r=�open_repository)r�_unsupporteds  rr��ControlDir.open_repositoryKs��"�$�"6�"6�7�7rc�,�[UR5e)z�Find the repository that should be used.

This does not require a branch as we use it to find the repo for
new branches as well as to hook existing branches up to their
repository.
)r=�find_repositoryr>s rr��ControlDir.find_repositoryWs��"�$�"6�"6�7�7rc�,�[UR5e)a�Open the workingtree object at this ControlDir if one is present.

Args:
  recommend_upgrade: Optional keyword parameter, when True (the
    default), emit through the ui module a recommendation that the user
    upgrade the working tree when the workingtree being opened is old
    (but still fully supported).
  from_branch: override controldir branch (for lightweight
    checkouts)
)r=�open_workingtree)rr��recommend_upgrader�s    rr��ControlDir.open_workingtree`s��"�$�"7�"7�8�8rc�Z�URUSS9 g![Ra gf=f)z�Tell if this controldir contains a branch.

Note: if you're going to open the branch, you should just go ahead
and try, and not ask permission first.  (This method just opens the
branch and discards it, and that's somewhat expensive.)
T)r�F)rir	rdr�s  r�
has_branch�ControlDir.has_branchos5��	����T�D��9����$�$�	��	�s��*�*c��URR5RS5nUcSn[R	U5$)znReturn the name of the branch selected by the user.

Returns: Name of the branch selected by the user, or "".
r,rb)rW�get_segment_parameters�get�urlutils�unescaper-s  r�_get_selected_branch�ControlDir._get_selected_branch|s>��
�$�$�;�;�=�A�A�(�K���>��F�� � ��(�(rc�X�URSS9 g![Ra gf=f)acTell if this controldir contains a working tree.

This will still raise an exception if the controldir has a workingtree
that is remote & inaccessible.

Note: if you're going to open the working tree, you should just go ahead
and try, and not ask permission first.  (This method just opens the
workingtree and discards it, and that's somewhat expensive.)
F)r�T)r�r	�
NoWorkingTreer>s r�has_workingtree�ControlDir.has_workingtree�s3��	��!�!�E�!�:����#�#�	��	�s��)�)c�,�[UR5e)a�Produce a metadir suitable for cloning or sprouting with.

These operations may produce workingtrees (yes, even though they're
"cloning" something that doesn't have a tree), so a viable workingtree
format must be selected.

:require_stacking: If True, non-stackable formats will be upgraded
    to similar stackable formats.
:returns: a ControlDirFormat with all component formats either set
    appropriately or set to None if that component should not be
    created.
)r=�cloning_metadir)r�require_stackings  rr��ControlDir.cloning_metadir�s��"�$�"6�"6�7�7rc�"�UR5$)z�Produce a metadir suitable for checkouts of this controldir.

:returns: A ControlDirFormat with all component formats
    either set appropriately or set to None if that component
    should not be created.
)r�r>s r�checkout_metadir�ControlDir.checkout_metadir�s���#�#�%�%rc�,�[UR5e)a�Create a copy of this controldir prepared for use as a new line of
development.

If url's last component does not exist, it will be created.

Attributes related to the identity of the source branch like
branch nickname will be cleaned, a working tree is created
whether one existed before or not; and a local branch is always
created.

Args:
  revision_id: if revision_id is not None, then the clone
    operation may tune itself to download less data.
  accelerator_tree: A tree which can be used for retrieving file
    contents more quickly than the revision tree, i.e. a workingtree.
    The revision tree will be used for cases where accelerator_tree's
    content is different.
  hardlink: If true, hard-link files from accelerator_tree,
    where possible.
  stacked: If true, create a stacked branch referring to the
    location of this control directory.
  create_tree_if_local: If true, a working-tree will be created
    when working locally.
)r=�sprout)rrr��force_new_repo�recurser�r�r��stacked�
source_branch�create_tree_if_local�lossys            rr��ControlDir.sprout�s��L"�$�+�+�.�.rc		�~�SSKJn	 URUS9n
U
RnU	"5nXlU
c�UcUR5nURURUS9 URUUUUUS9n
UR5bU(aURU
R5 SUlSUlSUl["R$UlX�lSUlSUlU$UR5bU(aURU
R5 UR/5n
U
R0U
R2R0:XaSU
R55 URU
R2UUUUS9UlU
R75 SSS5 S	UlO URU
UUUUS9UlSUlURR UlURR&UlURR(UlU$![R
a UR
5nSn
GNf=f!,(df   N�=f![R8a" URU
UUUUS9UlSUlN�[R:a" URU
UUUUS9UlSUlN�f=f)
z,Push the source branch into this ControlDir.r)�
PushResult�r|N)r�)r�r��tag_selectorr|F)�	overwrite�
stop_revisionr�r�T)�pushr�rir}r	rdr�r��
last_revision�fetchr��get_push_location�set_push_locationrC�
stacked_on�branch_push_result�	old_revno�
_mod_revision�
NULL_REVISION�	old_revidr��
master_branch�workingtree_updatedr�r|r,�
lock_write�update�NotLocalUrlr�)r�sourcer�r��remember�
create_prefixr�r�r|r��br_to�
repository_to�push_result�tree_tos              r�push_branch�ControlDir.push_branch�s���	%�	-��$�$�$�$�/�E�"�,�,�M� �l��$*�!��=��"�%�2�2�4������ 1� 1�{��K��M�M��'��)��"��E��'�'�)�1�X��(�(����4�%)�K�"�-1�K�*�$(�K�!�$1�$?�$?�K�!�(-�%�(,�K�%�.3�K�+�d��_�'�'�)�1�X��(�(����4�(
;��/�/�1��(�:�:����!4�!4�4� �+�+�-�9?���#�N�N�&/�*5�"'�)5�:E�:��6� ���(�.�7;�K�3�5;�[�[��"+�&1�#�%1�6A�6�K�2�7;�K�3�$/�$B�$B�$L�$L�K�!�$/�$B�$B�$L�$L�K�!�(3�(F�(F�(T�(T�K�%����i�$�$�	� �0�0�2�M��E�	��|.�-��)�%�%�
8�17����'�"-��!-�2=�2��.�38��/��'�'�
7�17����'�"-��!-�2=�2��.�37��/�
7�s5�H�I�3I�&H>�=H>�
I�3J<�2J<�;J<c���UR5nUbURUS9nX#4$URnX#4$![R[R
4a SnURUS9nX#4$f=f)z�Return the branch and tree, if any, for this controldir.

Args:
  name: Name of colocated branch to open.

Return None for tree if not present or inaccessible.
Raise NotBranchError if no branch is present.

Returns: (tree, branch)
Nr�)r�rir,r	r�r�)rr|�treer,s    r�_get_tree_branch�ControlDir._get_tree_branch>s���		%��(�(�*�D�
���)�)�t�)�4���|�������|����$�$�f�&8�&8�9�	1��D��%�%�4�%�0�F��|��	1�s�7�5A1�0A1c�,�[UR5e)z&Get configuration for this ControlDir.)r=�
get_configr>s rr��ControlDir.get_configUs��!�$�/�/�2�2rc�,�[UR5e)zDCheck that a controldir as a whole can be converted to a new format.)r=�check_conversion_target�r�
target_formats  rr��"ControlDir.check_conversion_targetY���!�$�">�">�?�?rc�P�UR[R"U5UUUUS9$)a2Clone this controldir and its contents to url verbatim.

Args:
  url: The url create the clone at.  If url's last component does
    not exist, it will be created.
  revision_id: The tip revision-id to use for any branch or
    working tree.  If not None, then the clone operation may tune
    itself to download less data.
  force_new_repo: Do not use a shared repository for the target
                       even if one is available.
  preserve_stacking: When cloning a stacked branch, stack the
    new branch on top of the other branch's stacked-on branch.
)r�r��preserve_stackingr�)�clone_on_transportrP�
get_transport)rrr�r�r�r�s      r�clone�ControlDir.clone]s6��*�&�&��(�(��-�#�)�/�%�'�
�	
rc
�,�[UR5e)a&Clone this controldir and its contents to transport verbatim.

Args:
  transport: The transport for the location to produce the clone
    at.  If the target directory does not exist, it will be created.
  revision_id: The tip revision-id to use for any branch or
    working tree.  If not None, then the clone operation may tune
    itself to download less data.
  force_new_repo: Do not use a shared repository for the target,
                       even if one is available.
  preserve_stacking: When cloning a stacked branch, stack the
    new branch on top of the other branch's stacked-on branch.
  create_prefix: Create any missing directories leading up to
    to_transport.
  use_existing_dir: Use an existing directory if one exists.
  no_tree: If set to true prevents creation of a working tree.
)r=r�)
rrr�r�r�r�r��use_existing_dir�no_treer�s
          rr��ControlDir.clone_on_transportzs��:"�$�"9�"9�:�:rc#�# �UcSnUcSnU/n[U5S:�a�UR5nSnURU5nU"U5uphUv� U"U5n	U(a1[U	SS9H#n
URURU
55 M% [U5S:�aM�gg![R[R
[R4a N�f=f![R[R
4a M�f=f7f)a�Find control dirs recursively from current location.

This is intended primarily as a building block for more sophisticated
functionality, like finding trees under a directory, or finding
branches that use a given repository.

Args:
  evaluate: An optional callable that yields recurse, value,
    where recurse controls whether this controldir is recursed into
    and value is the value to yield.  By default, all bzrdirs
    are recursed into, and the return value is the controldir.
  list_current: if supplied, use this function to list the current
    directory, instead of Transport.list_dir

Returns:
  a generator of found bzrdirs, or whatever evaluate returns.
Nc�$�URS5$)Nrb)�list_dirrs r�list_current�1ControlDir.find_controldirs.<locals>.list_current�s�� �)�)�"�-�-rc�
�SU4$)NTr r4s r�evaluate�-ControlDir.find_controldirs.<locals>.evaluate�s
���Z�'�'rrT)�reverse)�len�pop�open_from_transportr	rd�PermissionDenied�UnknownFormatErrorrP�
NoSuchFile�sorted�appendr�)�klassrrr�pending�current_transportr�r5�value�subdirs�subdirs           r�find_controldirs�ControlDir.find_controldirs�s���&��
.���
(��+���'�l�Q�� '���
���G�

�"�6�6�7H�I�
�"*�*�!5�����
�&�'8�9���$�W�d�;�F��N�N�#4�#:�#:�6�#B�C�<�'�'�l�Q����%�%��'�'��)�)��
�
�
��#�-�-�v�/F�/F�G�
��
�sS�1D�B'�D�C �AD�%D�'3C�D�C�D� $D�D�D�Dc��Sn/nURXS9H=upEUbURUR55 UcM,URU5 M? U$)aFind all branches under a transport.

This will find all branches below the transport, including branches
inside other branches.  Where possible, it will use
Repository.find_branches.

To list all the branches that use a particular Repository, see
Repository.find_branches
c��UR5nS/U44$![Ra Of=fSUR5S44$)NFT)r�r	rer_)r5r}s  rr�*ControlDir.find_branches.<locals>.evaluate�s\��
/�'�7�7�9�
��r�:�.�.�.���-�-�
��
���*�2�2�4�d�;�;�;s��/�/)r)r�extend�
find_branches)rrr�ret�branches�repos      rr�ControlDir.find_branches�s]��	<���#�4�4�Y�4�R�N�H����
�
�4�-�-�/�0��#��
�
�8�$�	S�
�
rc�z�URX5nURU5 [SUR55$)a.Create a new ControlDir, Branch and Repository at the url 'base'.

This will use the current default ControlDirFormat unless one is
specified, and use whatever
repository format that that uses via controldir.create_branch and
create_repository. If a shared repository is available that is used
preferentially.

The created Branch object is returned.

Args:
  base: The URL to create the branch at.
  force_new_repo: If True a new repository is always created.
  format: If supplied, the format of branch to create.  If not
    supplied, the default is used.
r)�create�_find_or_create_repositoryrr�)rrCr�rr5s     r�create_branch_and_repo�!ControlDir.create_branch_and_repo�s6��(�\�\�$�/�
��-�-�n�=��H�j�6�6�8�9�9rc��U(aLSSKJn [R"X5n[	XvR
5(d[R"U5eURXU5nURU5n	UR5n
U(dU	R5(aUcUR5 U
$U
$![Ra U
$f=f)aLCreate a new ControlDir, Branch and Repository at the url 'base'.

This is a convenience function - it will use an existing repository
if possible, can be told explicitly whether to create a working tree or
not.

This will use the current default ControlDirFormat unless one is
specified, and use whatever
repository format that that uses via ControlDir.create_branch and
create_repository. If a shared repository is available that is used
preferentially. Whatever repository is used, its tree creation policy
is followed.

The created Branch object is returned.
If a working tree cannot be made due to base not being a file:// url,
no error is raised unless force_new_tree is True, in which case no
data is created on disk and NotLocalUrl is raised.

Args:
  base: The URL to create the branch at.
  force_new_repo: If True a new repository is always created.
  force_new_tree: If True or False force creation of a tree or
                       prevent such creation respectively.
  format: Override for the controldir format to create.
  possible_transports: An optional reusable transports list.
r��local)
�breezy.transportr)rPr��
isinstance�LocalTransportr	r�r#r$r��make_working_treesr�)rrCr��force_new_treerr�r)�tr5r �results           r�create_branch_convenience�$ControlDir.create_branch_conveniences���F�.��,�,�T�G�A��a�!5�!5�6�6��(�(��.�.��\�\�$�0C�D�
��4�4�^�D���)�)�+���d�5�5�7�7�N�<R�
��-�-�/��
�v�
���%�%�
���
�
�s�'B;�;C�Cc���[R"U5nSSKJn [	X4R
5(d[R"U5eURUSUS9RnUR5$)a�Create a new ControlDir, WorkingTree, Branch and Repository at 'base'.

'base' must be a local path or a file:// url.

This will use the current default ControlDirFormat unless one is
specified, and use whatever
repository format that that uses for bzrdirformat.create_workingtree,
create_branch and create_repository.

Args:
  format: Override for the controldir format to create.

Returns: The WorkingTree object.
rr(T)r�r)rPr�r*r)r+r,r	r�r%r5r�)rrCrr/r)r5s      r�create_standalone_workingtree�(ControlDir.create_standalone_workingtree6sn�� 
�(�(��.��*��!�1�1�2�2��$�$�T�*�*��1�1���f�2�
�
�*�	��,�,�.�.rc�"�URUSS9$)z%Open a branch which is not supported.T)r�)�open)rrCs  r�open_unsupported�ControlDir.open_unsupportedPs���z�z�$�T�z�2�2rc�N�[R"X5nURXSUS9$)zyOpen an existing controldir, rooted at 'base' (url).

Args:
  _unsupported: a private parameter to the ControlDir class.
)�probersr�)rPr�r)rrCr�r;r�r/s      rr7�ControlDir.openUs*��
�(�(��C���(�(��,�(�W�Wrrc�X^^�URSHnU"U5 M
 URmU4SjnU4Sjn[R"XQU5upURU5 [SURUSS95$![R
a [R"T5ef=f)z�Open a controldir within a particular directory.

Args:
  transport: Transport containing the controldir.
  _unsupported: private.
�pre_openc�0>�U[RUTS94$)N�r;)�ControlDirFormat�find_format)rr;s �rrB�3ControlDir.open_from_transport.<locals>.find_formatqs����.�:�:�9�g�:�V�V�Vrc�">�URURUR5nUc[R"T5e[
R"[S5RURURUR55 U$)Nz{0} is{1} redirected to {2})�_redirected_tor��targetr	rdr�note�gettextrrC�permanently)r�e�redirection_notice�redirected_transportrCs    �r�
redirected�2ControlDir.open_from_transport.<locals>.redirectedtss���#,�#;�#;�A�H�H�a�h�h�#O� �#�+��+�+�D�1�1��J�J��5�6�=�=��N�N�A�M�M�3G�3L�3L��
�
(�'rrUT)�_found)
r
rCrP�do_catching_redirectionsr	�TooManyRedirectionsrd�check_support_statusrr7)	rrr�r;�hookrBrMrrCs	   `    @rr�ControlDir.open_from_transportas�����K�K�
�+�D���O�,��~�~��	W�		(�	.� .� G� G��
�!��I�	�#�#�L�1��L�&�+�+�i��+�"E�F�F��	�)�)�	.��'�'��-�-�	.�s�A>�>+B)c�P�[R"X5nURU5$)z�Open an existing branch which contains url.

Args:
  url: url to search from.

See open_containing_from_transport for more detail.
)rPr��open_containing_from_transport)rrr�rs    r�open_containing�ControlDir.open_containing�s%��#�0�0��J�	��3�3�I�>�>rc���URnURXS9nU[RUR	U554$![
Ra O[
Ra Of=fURS5nO,![Ra [
R"US9ef=fURUR:Xa[
R"US9eUnM�)a?Open an existing branch which contains a_transport.base.

This probes for a branch at a_transport, and searches upwards from there.

Basically we keep looking up until we find the control directory or
run into the root.  If there isn't one, raises NotBranchError.
If there is one and it is either an unrecognised format or an unsupported
format, UnknownFormatError or UnsupportedFormatError are raised.
If there is one, it is returned, along with the unused portion of url.

Returns: The ControlDir that contains the path, and a Unicode path
        for the rest of the URL.
r@z..��path)
rCrr�r��relpathr	rdrr��InvalidURLJoin)r�a_transportr;rr0�new_ts      rrV�)ControlDir.open_containing_from_transport�s��� �����
��2�2�;�2�P���x�0�0��1D�1D�S�1I�J�J�J���(�(�
���*�*�
��
��
6�#�)�)�$�/����*�*�
6��+�+��5�5�
6���z�z�[�-�-�-��+�+��5�5��K�!s#�4A�A0�A0�/A0�4B�)B/c�B�URU5nURUS9$)z�Return the branch and working tree at a location.

If there is no tree at the location, tree will be None.
If there is no branch at the location, an exception will be
raised
Returns: (tree, branch)
r�)r7r�)r�locationr|r5s    r�open_tree_or_branch�ControlDir.open_tree_or_branch�s&���Z�Z��)�
��*�*��*�5�5rc�P�URXS9up4UR5upVXVU4$)a0Return the branch and working tree contained by a location.

Returns (tree, branch, relpath).
If there is no tree at containing the location, tree will be None.
If there is no branch containing the location, an exception will be
raised
relpath is the portion of the path that is contained by the branch.
�r�)rWr�)rrbr�r5r\r�r,s       r�open_containing_tree_or_branch�)ControlDir.open_containing_tree_or_branch�s<��$�3�3��4�
��
�"�2�2�4����W�$�$rc�(�URU5up#UR5upEXEURU4$![RaG UR	5nSSXc4s$![R
a [R"U5ef=ff=f)a�Return the working tree, branch and repo contained by a location.

Returns (tree, branch, repository, relpath).
If there is no tree containing the location, tree will be None.
If there is no branch containing the location, branch will be None.
If there is no repository containing the location, repository will be
None.
relpath is the portion of the path that is contained by the innermost
ControlDir.

If no tree, branch or repository is found, a NotBranchError is raised.
N)rWr�r	rdr�rer})rrbr5r\r�r,r s       r�)open_containing_tree_branch_or_repository�4ControlDir.open_containing_tree_branch_or_repository�s���$�3�3�H�=��
�	6�%�6�6�8�L�D��V�.�.��7�7��
�$�$�	6�
6�!�1�1�3���T�4�0�0���-�-�
6��+�+�H�5�5�
6��		6�s!�6�B�A"�B�"+B
�
Bc���U[La[SRU55e[R"X5nUR5 Uc[R5nURU5$)aCreate a new ControlDir at the url 'base'.

Args:
  format: If supplied, the format of branch to create.  If not
    supplied, the default is used.
  possible_transports: If supplied, a list of transports that
    can be reused to share a remote connection.
zCControlDir.create always creates thedefault format, not one of {!r})	rU�AssertionErrorrrPr��ensure_baserA�get_default_format�initialize_on_transport)rrCrr�r/s     rr#�ControlDir.create�sf���
�"� �2�28�&��-��
�
�(�(��C��	�
�
���>�%�8�8�:�F��-�-�a�0�0rr r3�F)r:N)NNN)NNNF)r:r)NFFN)r:r)r:r)FTN)
NF�downNNFFNTF)NFFFFNN)NFFNFTFN)NN)FN)FNNN)NNF)r:rU)?r"r#r$r%rNr
�HooksrSrPrQrYr\r_rRrf�dictr]rmrq�boolrvryrr�r�r�r�r�r�rcr�rir�r�r�r�r�r�r�r�r�r�r�r�r�r�r��classmethodrrr%r1r4r8r7rrWrVrcrgrjr#r'r rrrUrUpsM���"�;�;��"�,�,�,�"�,�,�,��2�t�H�~�2�
�d�3�i�
��d�3��=�1��:� 
@�:��:��:�;�#�-1�04�	6��s�m�6��\�*�6� (��~�	6�

�6�&
7�8�C�=�
7�D�
7�SX�;�	�;� <�E�;��&=�$��� �4�
�
4�$
8�8�FJ�
9�	�
9��)�� 
8�&���� �����!��&/�V������
�f�P�.3�@�����

�@��������;�>�1D��1D�f����8�26�:�	�:��:�.���� �
1��1�f�/��/�2�3��3��JO�	X�	�	X��	X��PT�%G�(�2�2�%G�	�%G��%G�N�	?��	?��  ��  �D�	6��	6��
%��
%��8��8�0�1��1rrUc��\rSrSrSrSrSrg)�ControlDirHooksiz Hooks for ControlDir operations.c��[RRUSS5 URSSS5 URSSS5 g	)
zCreate the default hooks.zbreezy.controldirzControlDir.hooksr>zYInvoked before attempting to open a ControlDir with the transport that the open will use.)r��post_repo_initzvInvoked after a repository has been initialized. post_repo_init is called with a breezy.controldir.RepoInitHookParams.)�r}N)r
rtr�add_hookr>s rr�ControlDirHooks.__init__sL��
�����T�#6�8J�K��
�
��
&��		
�	
�
�
��
4�
�	
rr N)r"r#r$r%rNrr'r rrryrys
��*�
rryc�D�\rSrSrSrSrSrSrS
Sjr\	S5r
S	rg)rLiz8A component that can live inside of a control directory.Fc�,�[UR5e�z-Return the short description for this format.�r=�get_format_descriptionr>s rr��-ControlComponentFormat.get_format_description!���!�$�"=�"=�>�>rc��g)z�Is this format supported?

Supported formats must be initializable and openable.
Unsupported formats may not support initialization or committing or
some other features depending on the reason for not being supported.
Tr r>s r�is_supported�#ControlComponentFormat.is_supported%���rNc���U(d)UR5(d[R"US9eU(aAUR(a/[R
R
UR5U5 ggg�a3Give an error or warning on old formats.

Args:
  allow_unsupported: If true, allow opening
    formats that are strongly deprecated, and which may
    have limited functionality.

  recommend_upgrade: If true (default), warn
    the user through the ui object that they may wish
    to upgrade the object.
)rN�r�r	�UnsupportedFormatError�upgrade_recommended�ui�
ui_factoryr�r��r�allow_unsupportedr��basedirs    rrR�+ControlComponentFormat.check_support_status.�V��!��):�):�)<�)<��/�/�t�<�<���!9�!9��M�M�+�+�D�,G�,G�,I�7�S�":�rc�,�[UR5er3)r=�get_format_string)�clss rr��(ControlComponentFormat.get_format_stringBs��!�#�"7�"7�8�8rr �TN)r"r#r$r%rNr�r�r�rRrwr�r'r rrrLrLs6��B���?��BF�T�(�9��9rrLc�r^�\rSrSrSrSU4SjjrU4SjrU4SjrSrSr	Sr
S	rS
rSr
SrS
rU=r$)�ControlComponentFormatRegistryiGzDA registry for control components (branch, workingtree, repository).c�2>�[TU]U5 /Ulgr3)�superr�_extra_formats)r�other_registry�	__class__s  �rr�'ControlComponentFormatRegistry.__init__Js���
����(� ��rc�B>�[TU]UR5U5 g)zRegister a new format.N)r��registerr��rrr�s  �rr��'ControlComponentFormatRegistry.registerNs���
����1�1�3�V�<rc�@>�[TU]UR55 g)zRemove a registered format.N)r��remover�r�s  �rr��%ControlComponentFormatRegistry.removeRs���
���v�/�/�1�2rc�b�URR[R"U55 g)z�Register a format that can not be used in a metadir.

This is mainly useful to allow custom repository formats, such as older
Bazaar formats and foreign formats, to be tested.
N)r�rr�
_ObjectGetterrrs  r�register_extra�-ControlComponentFormatRegistry.register_extraVs#��	
���"�"�8�#9�#9�&�#A�Brc�b�URR[R"U55 g)zRemove an extra format.N)r�r�rr�rrs  r�remove_extra�+ControlComponentFormatRegistry.remove_extra^s!�����"�"�8�#9�#9�&�#A�Brc�b�URR[R"X55 g)zRegister a format lazily.N)r�rr�_LazyObjectGetter)r�module_name�member_names   r�register_extra_lazy�2ControlComponentFormatRegistry.register_extra_lazybs!�����"�"�8�#=�#=�k�#W�Xrc�X�URVs/sHoRPM sn$s snf)zAReturn getters for extra formats, not usable in meta directories.)r��get_obj)r�getters  r�
_get_extra�)ControlComponentFormatRegistry._get_extrafs$��-1�-@�-@�A�-@�6���-@�A�A��As�'c��UR5Vs/sHoRURPM nnURUR	55 U$s snf)zBReturn getters for all formats, even those not usable in metadirs.)�keys�_dictr�rr�)rr|r0s   r�
_get_all_lazy�,ControlComponentFormatRegistry._get_all_lazyjsG��7;�y�y�{�C�{�t�*�*�T�"�*�*�{��C��
�
�d�o�o�'�(��
��Ds�"Ac��/nUR5H2nU"5n[U5(aU"5nURU5 M4 U$)z6Return all formats, even those not usable in metadirs.)r��callabler)rr0r��fmts    r�_get_all�'ControlComponentFormatRegistry._get_allpsD�����(�(�*�F��(�C���}�}��e���M�M�#��	+�
�
rc���[5nUR5H#nURURU55 M% URH"nURUR55 M$ U$)z.Return a set of the modules providing objects.)�setr��add�_get_moduler��
get_module)r�modulesr|r�s    r�_get_all_modules�/ControlComponentFormatRegistry._get_all_moduleszsZ���%���I�I�K�D��K�K��(�(��.�/� ��)�)�F��K�K��)�)�+�,�*��r)r�r3)r"r#r$r%rNrr�r�r�r�r�r�r�r�r�r'�
__classcell__�r�s@rr�r�GsA���N�!�=�3�C�C�Y�B����rr�c�$�\rSrSrSrSrSrSrg)�	Converteri�z9Converts a disk format object from one format to another.c��g)z�Perform the conversion of to_convert, giving feedback via pb.

Args:
  to_convert: The disk object to convert.
  pb: a progress bar to use for progress information.
Nr )r�
to_convert�pbs   r�convert�Converter.convert�s�rc��U=RS-
slURRXRUR5 g)zUpdate the pb by a step.rN)�countr�r��total)r�messages  r�step�Converter.step�s)���
�
�a��
������w�
�
�D�J�J�7rr N)r"r#r$r%rNr�r�r'r rrr�r��s��C��8rr�c	���\rSrSr%SrSr\S\S'/r\	\
S\S'SrSrSr
SrS	rS$S
jrSrSrS%S
jrSr\S\
S4Sj5r\S\
S4Sj5rSr\S\	\
S4Sj5r\S5r\S$S\R8S\\	\
SSS4Sjj5rS$SjrSrS&Sjr Sr!S'S\R8SS4Sjjr"\S5r#\S 5r$S!r%\S"5r&S#r'g)(rAi�a�An encapsulation of the initialization and open routines for a format.

Formats provide three things:
 * An initialization routine,
 * a format string,
 * an open routine.

Formats are placed in a dict by their format string for reference
during controldir opening. These should be subclasses of ControlDirFormat
for consistency.

Once a format is deprecated, just deprecate the initialize and open
methods on the format class. Do not deprecate the object, as the
object will be created every system load.

Attributes:
  colocated_branches: Whether this formats supports colocated branches.
  supports_workingtrees: This control directory can co-exist with a
                             working tree.
N�_default_format�Prober�_probersFTc�,�[UR5er�r�r>s rr��'ControlDirFormat.get_format_description�r�rc�,�[UR5e)a�Return the converter to use to convert controldirs needing converts.

This returns a breezy.controldir.Converter object.

This should return the best upgrader to step this format towards the
current default format. In the case of plugins we can/should provide
some means for them to extend the range of returnable converters.

Args:
  format: Optional format to override the default format of the
               library.
)r=�
get_converterrrs  rr��ControlDirFormat.get_converter�s��"�$�"4�"4�5�5rc��g)z�Is this format supported?

Supported formats must be openable.
Unsupported formats may not support initialization or committing or
some other features depending on the reason for not being supported.
Tr r>s rr��ControlDirFormat.is_supported�r�rc�"�UR5$)zBWhether new control directories of this format can be initialized.)r�r>s r�is_initializable�!ControlDirFormat.is_initializable�s��� � �"�"rc���U(d)UR5(d[R"US9eU(aAUR(a/[R
R
UR5U5 gggr�r�r�s    rrR�%ControlDirFormat.check_support_status�r�rc�H�URRUR:H$r3)�repository_format�rich_root_datar�s  r�
same_model�ControlDirFormat.same_model�s���%�%�4�4�
�8T�8T�T�Tr�proberc�:�URRU5 g)z2Register a prober that can look for a control dir.N)r�r�rr�s  r�register_prober� ControlDirFormat.register_prober����	�����f�%rc�:�URRU5 g)zUnregister a prober.N)r�r�r�s  r�unregister_prober�"ControlDirFormat.unregister_prober�r�rc�>�UR5R5$r3)r��rstripr>s r�__str__�ControlDirFormat.__str__s���*�*�,�3�3�5�5rr:c��UR$r3)r��rs r�all_probers�ControlDirFormat.all_proberss���~�~�rc�v�/nUR5H"nURUR55 M$ U$)zReturn all the known formats.)rr�
known_formats)rr0�
prober_klss   rr�ControlDirFormat.known_formatss6�����+�+�-�J��M�M�*�2�2�4�5�.��
rrr;c�^�Uc[UR5U4SjS9nUHnU"5nURT5s $ [R"TR
S9e![Ra MUf=f)z'Return the format present at transport.c�&>�URT5$r3)�priority)r�rs �r�<lambda>�.ControlDirFormat.find_format.<locals>.<lambda>s������	�8Rr)�keyrZ)rr�probe_transportr	rdrC)rrr;rr�s `   rrB�ControlDirFormat.find_formats}����?���!�!�#�)R��G�"�J��\�F�
��-�-�i�8�8�"��#�#����8�8���(�(�
��
�s�A!�!A9�8A9c�L�UR[R"X55$)aQCreate a control dir at this url and return an opened copy.

While not deprecated, this method is very specific and its use will
lead to many round trips to setup a working environment. See
initialize_on_transport_ex for a [nearly] all-in-one method.

Subclasses should typically override initialize_on_transport
instead of this method.
)rprPr�)rrr�s   r�
initialize�ControlDirFormat.initialize(s%���+�+��(�(��B�
�	
rc�,�[UR5e)zAInitialize a new controldir in the base directory of a Transport.)r=rp�rrs  rrp�(ControlDirFormat.initialize_on_transport6r�rc�,�[UR5e)a�Create this format on transport.

The directory to initialize will be created.

Args:
  force_new_repo: Do not use a shared repository for the target,
                       even if one is available.
  create_prefix: Create any missing directories leading up to
    to_transport.
  use_existing_dir: Use an existing directory if one exists.
  stacked_on: A url to stack any created branch on, None to follow
    any target stacking policy.
  stack_on_pwd: If stack_on is relative, the location it is
    relative to.
  repo_format_name: If non-None, a repository will be
    made-or-found. Should none be found, or if force_new_repo is True
    the repo_format_name is used to select the format of repository to
    create.
  make_working_trees: Control the setting of make_working_trees
    for a new shared repository when one is made. None to use whatever
    default the format has.
  shared_repo: Control whether made repositories are shared or
    not.
  vfs_only: If True do not attempt to use a smart server

Returns: repo, controldir, require_stacking, repository_policy. repo is
    None if none was created or found, controldir is always valid.
    require_stacking is the result of examining the stacked_on
    parameter and any stacking policy found for the target.
)r=�initialize_on_transport_ex)rrr�r�r�r��stack_on_pwd�repo_format_namer-�shared_repo�vfs_onlys           rr�+ControlDirFormat.initialize_on_transport_ex:s��V"�$�"A�"A�B�Brc�,�[UR5e)a4A simple byte string uniquely identifying this format for RPC calls.

Bzr control formats use this disk format string to identify the format
over the wire. Its possible that other control formats have more
complex detection requirements, so we permit them to use any unique and
immutable string they desire.
)r=�network_namer>s rr�ControlDirFormat.network_namegs��"�$�"3�"3�4�4rrUc�,�[UR5e)zBReturn an instance of this format for the dir transport points at.)r=r7)rrrOs   rr7�ControlDirFormat.openqs��!�$�)�)�,�,rc��Xlg)z;Set default format (for testing behavior of defaults only).N�r�)rrs  r�_set_default_format�$ControlDirFormat._set_default_formatus
��!'�rc��UR$)z"Return the current default format.r#rs rro�#ControlDirFormat.get_default_formatzs���$�$�$rc�,�[UR5e)z?Check if this format can be opened over a particular transport.)r=�supports_transportrs  rr)�#ControlDirFormat.supports_transportr{rc�4�[[R5erl)r=r�rm)rrns  rrm�$ControlDirFormat.is_control_filename�s��"�#�"9�"9�:�:rr r3r�)	FFFNNNNFFrr)(r"r#r$r%rNr�rrSr�r\�type�colocated_branches�supports_workingtrees�fixed_componentsr�r�r�r�r�rRr�rwr�r�r�rrrPrQrBrrprrr7r$ror)rmr'r rrrArA�s����*59�O�X�0�1�8�>�%'�H�d�4��>�"�'��
���!������ ��=�?�
6��#�
BF�T�(U��&�t�H�~�&��&��&��h��&��&�6���d�4��>�2���������37�9�!�+�+�9��$�t�H�~�.�/�9�
�	9��9�&
�@����������+C�Z5�-�n�6�6�-��-��'��'��%��%�;��;��;rrAc�p�\rSrSrSrSSjr\S\S4Sj5r\S\	RS\4Sj5rS	r
g
)r�i�a�Abstract class that can be used to detect a particular kind of
control directory.

At the moment this just contains a single method to probe a particular
transport, but it may be extended in the future to e.g. avoid
multiple levels of probing for Subversion repositories.

See BzrProber and RemoteBzrProber in breezy.bzrdir for the
probers that detect .bzr/ directories and Bazaar smart servers,
respectively.

Probers should be registered using the register_prober methods on
ControlDirFormat.
r:rAc�,�[UR5e)z�Return the controldir style format present in a directory.

:raise UnknownFormatError: If a control dir was found but is
    in an unknown format.
:raise NotBranchError: If no control directory was found.
Returns: A ControlDirFormat instance.
)r=rrs  rr�Prober.probe_transport�s��"�$�"6�"6�7�7rc�,�[UR5e)z�Return the control dir formats known by this prober.

Multiple probers can return the same formats, so this should
return a set.

Returns: A set of known formats.
)r=rrs rr�Prober.known_formats�s��"�%�"5�"5�6�6rrc��g)z�Priority of this prober.

A lower value means the prober gets checked first.

Other conventions:

-10: This is a "server" prober
0: No priority set
10: This is a regular file-based prober
100: This is a prober for an unsupported format
rr )rrs  rr
�Prober.priority�s��rr N)r:rA)r"r#r$r%rNrrwr�rrPrQ�intr
r'r rrr�r��sU��
�8��7��$6� 7�7��7���>�#;�#;�����rr�c��\rSrSrSrSrg)�ControlDirFormatInfoi�c�4�X lXlX0lX@lgr3)�
deprecated�native�hidden�experimental)rr=r<r>r?s     rr�ControlDirFormatInfo.__init__�s��$������(�r)r<r?r>r=N)r"r#r$r%rr'r rrr:r:�s��)rr:c�r^�\rSrSrSrU4SjrSSjrS
SjrSSjrSr	Sr
S	rS
rSr
U=r$)�ControlDirFormatRegistryi�z�Registry of user-selectable ControlDir subformats.

Differs from ControlDirFormat._formats in that it provides sub-formats,
e.g. BzrDirMeta1 with weave repository.  Also, it's more user-oriented.
c�0>�/Ul[TU]	5 g)z"Create a ControlDirFormatRegistry.N)�_registration_orderr�r)rr�s �rr�!ControlDirFormatRegistry.__init__�s���#%�� �
���rc��[RRUUUU[XEXg55 URRU5 g)z�Register a ControlDirFormat factory.

The factory must be a callable that takes one parameter: the key.
It must produce an instance of the ControlDirFormat when called.

This function mainly exists to prevent the info object from being
supplied directly.
N)r�Registryr�r:rDr)rr
�factory�helpr=r<r>r?s        rr��!ControlDirFormatRegistry.register�sD��$	���"�"����� ��V�J�	
�	
� � �'�'��,rc��URU5n[RRUUU[	UR
URUURS95 g)zpRegister a format alias.

Args:
  key: Alias name
  target: Target format
  hidden: Whether the alias is hidden
)r=r<r>r?N)�get_inforrG�register_aliasr:r=r<r?)rr
rFr>�infos     rrM�'ControlDirFormatRegistry.register_alias�sQ���}�}�V�$�����(�(���� ��{�{��?�?��!�.�.�	
�	
	
rc	
��[RRUUUUU[XVXx55 URRU5 gr3)rrG�
register_lazyr:rDr)	rr
r�r�rIr=r<r>r?s	         rrQ�&ControlDirFormatRegistry.register_lazysG��	���'�'������ ��V�J�
	
�	
� � �'�'��,rc�(�URSU5 g)ziSet the 'default' key to be a clone of the supplied key.

This method must be called once and only once.
�defaultN)rM�rr
s  r�set_default�$ControlDirFormatRegistry.set_default#s��
	
���I�s�+rc��SU;aURS5 URU5 URS5"5 g)z�Set the FormatRegistry default and Repository default.

This is a transitional method while Repository.set_default_format
is deprecated.
rTN)r�rVr�rUs  r�set_default_repository�/ControlDirFormatRegistry.set_default_repository*s5������K�K�	�"�����������rc�.�URU5"5$r3)r�rUs  r�make_controldir�(ControlDirFormatRegistry.make_controldir5s���x�x��}��rc�^�SnSnURS5n/nURH7nUS:XaMURU5nXt:XaUnM%URXg45 M9 SnUb*X("USRU5UR	S55-
n/n	/n
UH~upgUR	U5nUR
(aM)UR(aU	RXg45 MNUR(aU
RXg45 MsX("XgU5-
nM� US-
nSn[U
5S:�a-US-
nU
H!upgUR	U5nX�"XgU5-
nM# OUS-
n[U	5S:�a-US	-
nU	H!upgUR	U5nX�"XgU5-
nM# OUS
-
nUS-
nUS:XaU$U$)NrbrTc
�z�UR(aSU-nSRU[RUSSSS95$)Nz	(native) z	:{}:
{}

z    F)�initial_indent�subsequent_indent�break_long_words)r=r�textwrap�fill)r
rIrNs   r�wrapped�4ControlDirFormatRegistry.help_topic.<locals>.wrappedFsF���{�{�"�T�)��!�(�(���
�
��#)�&,�%*�	���
rz(default) {}z8
See :doc:`formats-help` for more about storage formats.rz'Experimental formats are shown below.

z(No experimental formats are available.

z&
Deprecated formats are shown below.

z'
No deprecated formats are available.

z
other-formats)	�get_helprDrrrLr>r<r?r	)
r�topic�output�default_realkey�default_help�
help_pairsr
rIre�deprecated_pairs�experimental_pairsrN�other_outputs
             r�
help_topic�#ControlDirFormatRegistry.help_topic8s��������}�}�Y�/���
��+�+�C��i����=�=��%�D��#�"%���!�!�3�+�.�,�	��&��g���%�%�l�3��
�
�i�(��
�F�
����#�I�C��=�=��%�D��{�{����� �'�'���4��"�"�"�)�)�3�+�6��'�#�T�2�2��$�	�M�M�����!�"�Q�&��G�G�L�/�	���}�}�S�)�����4� 8�8��0�
�H�H�L��� �1�$��G�G�L�-�	���}�}�S�)�����4� 8�8��.�
�H�H�L��S�S���O�#����Mr)rD)TFFFrr)r"r#r$r%rNrr�rMrQrVrYr\rpr'r�r�s@rrBrB�sS���������-�6
�6����-�*,�	��B�BrrBc�*�\rSrSrSrSrSrSrSrg)�RepoInitHookParamsi}aObject holding parameters passed to ``*_repo_init`` hooks.

There are 4 fields that hooks may wish to access:

Attributes:
  repository: Repository created
  format: Repository format
  bzrdir: The controldir for the repository
  shared: The repository is shared
c�4�XlX lX0lX@lg)z�Create a group of RepoInitHook parameters.

Args:
  repository: Repository created
  format: Repository format
  controldir: The controldir for the repository
  shared: The repository is shared
N)r}rr5rt)rr}rr5rts     rr�RepoInitHookParams.__init__�s��%����$���rc�4�URUR:H$r3)�__dict__)r�others  r�__eq__�RepoInitHookParams.__eq__�s���}�}����.�.rc���UR(a0SRURRUR5$SRURRUR5$)Nz<{} for {}>)r}rr�r"r5r>s r�__repr__�RepoInitHookParams.__repr__�sK���?�?� �'�'����(?�(?����Q�Q� �'�'����(?�(?����Q�Qr)r5rr}rtN)	r"r#r$r%rNrryr|r'r rrrsrs}s��	��/�Rrrsc�x�[R5H"upU"5RU5(dM" g g)z2Check if filename is used for control directories.TF)�format_registry�itemsrm)rn�_keyrs   rrmrm�s4��(�-�-�/����8�'�'��1�1��0�rc�F�\rSrSrSrSrSrSrSrSSjr	SS	jr
S
rg)
�RepositoryAcquisitionPolicyi�aAbstract base class for repository acquisition policies.

A repository acquisition policy decides how a ControlDir acquires a repository
for a branch that is being created.  The most basic policy decision is
whether to create a new repository or use an existing one.
c�(�XlX lX0lg)z�Constructor.

Args:
  stack_on: A location to stack on
  stack_on_pwd: If stack_on is relative, the location it is
    relative to.
  require_stacking: If True, it is a failure to not stack.
N)�	_stack_on�
_stack_on_pwd�_require_stacking)r�stack_onrr�s    rr�$RepositoryAcquisitionPolicy.__init__�s��"��)��!1�rc��URcgURc
URnO6[RURURUR5nURU5 g![R
a UR
5nN9f=f![R[R4a UR(aegf=f)zoApply any configuration data from this policy to the branch.

Default implementation sets repository stacking.
N)
r�r�r��
rebase_urlrJ�InvalidRebaseURLs�_get_full_stack_on�set_stacked_on_url�_mod_branch�UnstackableBranchFormatr	�UnstackableRepositoryFormatr�)rr,r�s   r�configure_branch�,RepositoryAcquisitionPolicy.configure_branch�s���
�>�>�!�����%��~�~�H�
5�#�.�.��N�N�D�$6�$6������
	��%�%�h�/���-�-�
5��2�2�4��
5��

�/�/��.�.�
�	��%�%��&�		�s#�5A2� B�2$B�B�6C�Cc�D�URSL=(a UR$)z-Return True if this policy requires stacking.N)r�r�r>s r�requires_stacking�-RepositoryAcquisitionPolicy.requires_stacking�s���~�~�T�)�D�d�.D�.D�Drc��URcgURcUR$[RURUR5$)z4Get a fully-qualified URL for the stack_on location.N)r�r�r��joinr>s rr��.RepositoryAcquisitionPolicy._get_full_stack_on�s@���>�>�!�����%��>�>�!��=�=��!3�!3�T�^�^�D�DrNc��UR5nUcg[RX2S9nUR5RnURU5 SUl
g![Ra gf=f![Ra UR5nNZf=f![Ra UR(aegf=f)z>Add a fallback to the supplied repository, if stacking is set.NrfT)r�rUr7r	�	JailBreakrir}rdr��add_fallback_repositoryr�r�)rr}r�r��stacked_dir�stacked_repos      r�
_add_fallback�)RepositoryAcquisitionPolicy._add_fallback�s����*�*�,�����	�$�/�/��*��K�	9�&�2�2�4�?�?�L�	*��.�.�|�<�
&*�D�"�����	�
�	���$�$�	9�&�6�6�8�L�	9���1�1�	��%�%��&�	�s4�A�A8�B"�A5�4A5�8$B�B�"&C�
Cc�4�[[R5e)amAcquire a repository for this controlrdir.

Implementations may create a new repository or use a pre-exising
repository.

Args:
  make_working_trees: If creating a repository, set
    make_working_trees to this value (if non-None)
  shared: If creating a repository, make it shared if True
Returns:
  A repository, is_new_flag (True if the repository was created).
)r=r��acquire_repository)rr-rtr�s    rr��.RepositoryAcquisitionPolicy.acquire_repositorys��"�"=�"P�"P�Q�Qr)r�r�r�r3)NFN)r"r#r$r%rNrr�r�r�r�r�r'r rrr�r��s/���2��2E�E�*�4JN�Rrr�N)-�
__docformat__�typingrrrr�globalsrbr	r
rrr
r�rrPr,rr}r�workingtreerrrr)r0r8rUrtryrL�FormatRegistryr�r�rAr�r:rGrRrBrsrmr�r�network_format_registryr rr�<module>r�se��"�
��1�0�$���I�
�
�-�,�'�)���&�(�?�&�/�/�?�6�&�/�/�6�%�v���%� &� &�FP1�!�P1�f
�e�k�k�
�,#�$�
��(9�(9�V:�X�%<�%<�=S�%T�:�z8�8�"};�};�@2�2�j)�)�h�x�0�0��6F�1F�G�h�V!R�!R�H�cR�cR�R+�,��"�1�1�2B�C�E��r

Youez - 2016 - github.com/yon3zu
LinuXploit