§
    cÌcÊ ã                   óþ  — d Z 	 ddlmZmZmZmZmZmZmZm	Z	 ddl
m
Z
  e
 e¦   «         d¦  «         ddlmZmZmZmZmZmZ erddlmZ ddlmZ dd	lmZ  G d
„ dej        ¦  «        Z G d„ dej        ¦  «        Z G d„ dej        ¦  «        Z G d„ d¦  «        Z G d„ de¦  «        Z  G d„ dej!        ¦  «        Z" e"¦   «         e _         G d„ d¦  «        Z# G d„ dej$        e#         ¦  «        Z% G d„ d¦  «        Z& G d„ d¦  «        Z' G d„ d¦  «        Z( G d „ d!¦  «        Z) G d"„ d#ej*        e+e'f         ¦  «        Z, G d$„ d%¦  «        Z-d&„ Z. G d'„ d(¦  «        Z/ e,¦   «         Z0 ej$        e'         ¦   «         Z1d)S )*Úgoogleé    )ÚListÚTypeÚOptionalÚTYPE_CHECKINGÚDictÚSetÚTupleÚcasté   )Úlazy_importz
import textwrap

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

from breezy.i18n import gettext
)ÚerrorsÚhooksÚregistryÚrevisionÚtraceÚ	transport)ÚBranch)Ú
Repository)ÚWorkingTreec                   ó   — e Zd ZdZd„ ZdS )ÚMustHaveWorkingTreez;Branching '%(url)s'(%(format)s) must create a working tree.c                 óJ   — t           j                             | ||¬¦  «         d S )N)ÚformatÚurl©r   ÚBzrErrorÚ__init__)Úselfr   r   s      ú3/usr/lib/python3/dist-packages/breezy/controldir.pyr   zMustHaveWorkingTree.__init__=   s%   € ÝŒ× Ò  ¨f¸#Ð Ñ>Ô>Ð>Ð>Ð>ó    N©Ú__name__Ú
__module__Ú__qualname__Ú_fmtr   © r!   r    r   r   9   s(   € € € € € àH€Dð?ð ?ð ?ð ?ð ?r!   r   c                   ó   — e Zd ZdZd„ ZdS )ÚBranchReferenceLoopz=Can not create branch reference that points at branch itself.c                 óH   — t           j                             | |¬¦  «         d S )N)Úbranchr   ©r   r+   s     r    r   zBranchReferenceLoop.__init__E   s#   € ÝŒ× Ò  ¨fÐ Ñ5Ô5Ð5Ð5Ð5r!   Nr"   r'   r!   r    r)   r)   A   s(   € € € € € àJ€Dð6ð 6ð 6ð 6ð 6r!   r)   c                   ó   — e Zd ZdZd„ ZdS )ÚNoColocatedBranchSupportz4%(controldir)r does not support co-located branches.c                 ó   — || _         d S ©N©Ú
controldir)r   r2   s     r    r   z!NoColocatedBranchSupport.__init__M   s   € Ø$ˆŒˆˆr!   Nr"   r'   r!   r    r.   r.   I   s(   € € € € € àB€Dð%ð %ð %ð %ð %r!   r.   c                   ó¢   — e Zd ZU dZedej        fd„¦   «         Zedefd„¦   «         Z	edej        fd„¦   «         Z
edefd„¦   «         Zded<   d	S )
ÚControlComponenta%  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                 ó   — t           ‚r0   ©ÚNotImplementedError©r   s    r    Úcontrol_transportz"ControlComponent.control_transporta   ó   € å!Ð!r!   c                 ó   — | j         j        S r0   )r:   Úbaser9   s    r    Úcontrol_urlzControlComponent.control_urle   s   € àÔ%Ô*Ð*r!   c                 ó   — t           ‚r0   r7   r9   s    r    Úuser_transportzControlComponent.user_transporti   r;   r!   c                 ó   — | j         j        S r0   )r@   r=   r9   s    r    Úuser_urlzControlComponent.user_urlm   s   € àÔ"Ô'Ð'r!   ÚControlComponentFormatÚ_formatN)r#   r$   r%   Ú__doc__ÚpropertyÚ_mod_transportÚ	Transportr:   Ústrr>   r@   rB   Ú__annotations__r'   r!   r    r4   r4   Q   sÌ   € € € € € € ðð ð ð" >Ô#;ð "ð "ð "ñ „Xð"ð ð+˜Sð +ð +ð +ñ „Xð+ð ð" Ô 8ð "ð "ð "ñ „Xð"ð ð(˜#ð (ð (ð (ñ „Xð(ð &Ð%Ð%Ñ%Ð%Ð%r!   r4   c            	       ó|  — e Zd ZU dZej        ed<   ej        ed<   ej        ed<   d„ Z	de
d         fd„Zde
e         fd	„Zdeedf         fd
„Zd„ Zd@d„ZdAdeddfd„ZdBd„Z	 	 	 dCdee         ded         dee         ddfd„Zd@dee         ddfd„Z	 	 dD	 dEd„Zd„ Zd„ Zd@d„Zd@d„Zd@d„Z	 	 dF	 dGd„ZdAdHd „ZdHd!„Z 	 	 dI	 dEd#„Z!d@d$„Z"d%„ Z#d&„ Z$dAd'„Z%d(„ Z&	 	 	 	 	 dJd*„Z'	 	 	 dKd+„Z(d@d,„Z)d-„ Z*d.„ Z+	 	 dFd/„Z,	 	 	 	 dLd0„Z-e.dMd1„¦   «         Z/e.d2„ ¦   «         Z0e.	 dN	 dGd3„¦   «         Z1e.	 	 	 dOd4„¦   «         Z2e.d@dEd5„¦   «         Z3e.d6„ ¦   «         Z4e.	 	 dP	 dQd7„¦   «         Z5e.	 dNd8ej        dd fd9„¦   «         Z6e.d@d:„¦   «         Z7e.d@d;„¦   «         Z8e.d@d<„¦   «         Z9e.	 d@d=„¦   «         Z:e.d>„ ¦   «         Z;e.dMd?„¦   «         Z<dS )RÚ
ControlDira-  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_transportr@   c                 ó   — dS )zOReturn true if this controldir is one whose format we can convert
        from.Tr'   r9   s    r    Úcan_convert_formatzControlDir.can_convert_format‹   s	   € ð ˆtr!   r5   r   c                 óh   — t          |                      ¦   «                              ¦   «         ¦  «        S )zLReturn a sequence of all branches local to this control directory.

        )ÚlistÚget_branchesÚvaluesr9   s    r    Úlist_brancheszControlDir.list_branches�   s*   € õ �D×%Ò%Ñ'Ô'×.Ò.Ñ0Ô0Ñ1Ô1Ð1r!   c                 óx   — 	 |                       ¦   «          dgS # t          j        t          j        f$ r g cY S w xY w)z`List all branch names in this control directory.

        Returns: List of branch names
        Ú )Úget_branch_referencer   ÚNotBranchErrorÚNoRepositoryPresentr9   s    r    Úbranch_nameszControlDir.branch_names–   sS   € ð
	Ø×%Ò%Ñ'Ô'Ð'ð �4ˆKøõ Ô%¥vÔ'AÐBð 	ð 	ð 	ØˆIˆIˆIð	øøøs   ‚ ™9¸9c                 óv   — 	 d|                       ¦   «         iS # t          j        t          j        f$ r i cY S w xY w)z…Get all branches in this control directory, as a dictionary.

        Returns: Dictionary mapping branch names to instances.
        rV   )Úopen_branchr   rX   rY   r9   s    r    rR   zControlDir.get_branches¢   sM   € ð
	Ø˜×(Ò(Ñ*Ô*Ð+Ð+øÝÔ%¥vÔ'AÐBð 	ð 	ð 	ØˆIˆIˆIð	øøøs   ‚ ˜8·8c                 ó6   — | j                              |¦  «        S ©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.
        )rD   Úis_control_filename)r   Úfilenames     r    r_   zControlDir.is_control_filename¬   s   € ð Œ|×/Ò/°Ñ9Ô9Ð9r!   Nc                 ó*   — t          | j        ¦  «        ‚)aV  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.
        )r8   Úneeds_format_conversion©r   r   s     r    rb   z"ControlDir.needs_format_conversion¼   s   € õ " $Ô">Ñ?Ô?Ð?r!   FÚsharedr   c                 ó*   — t          | j        ¦  «        ‚)z´Create a new repository in this control directory.

        Args:
          shared: If a shared repository should be created

        Returns: The newly created repository
        )r8   Úcreate_repository)r   rd   s     r    rf   zControlDir.create_repositoryÈ   s   € õ " $Ô"8Ñ9Ô9Ð9r!   c                 ó*   — t          | j        ¦  «        ‚)z*Destroy the repository in this ControlDir.)r8   Údestroy_repositoryr9   s    r    rh   zControlDir.destroy_repositoryÒ   s   € å! $Ô"9Ñ:Ô:Ð:r!   ÚnameÚ
repositoryÚappend_revisions_onlyc                 ó*   — t          | j        ¦  «        ‚)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).
        )r8   Úcreate_branch)r   ri   rj   rk   s       r    rm   zControlDir.create_branchÖ   s   € õ " $Ô"4Ñ5Ô5Ð5r!   c                 ó*   — t          | j        ¦  «        ‚)a   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
        )r8   Údestroy_branch©r   ri   s     r    ro   zControlDir.destroy_branchæ   s   € õ " $Ô"5Ñ6Ô6Ð6r!   r   c                 ó*   — t          | j        ¦  «        ‚)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.
        )r8   Úcreate_workingtree)r   Úrevision_idÚfrom_branchÚaccelerator_treeÚhardlinks        r    rr   zControlDir.create_workingtreeò   s   € õ " $Ô"9Ñ:Ô:Ð:r!   c                 ó*   — t          | j        ¦  «        ‚)zDestroy the working tree at this ControlDir.

        Formats that do not support this may raise UnsupportedOperation.
        )r8   Údestroy_workingtreer9   s    r    rx   zControlDir.destroy_workingtree  s   € õ
 " $Ô":Ñ;Ô;Ð;r!   c                 ó*   — t          | j        ¦  «        ‚)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.
        )r8   Údestroy_workingtree_metadatar9   s    r    rz   z'ControlDir.destroy_workingtree_metadata  s   € õ " $Ô"CÑDÔDÐDr!   c                 ó*   — t          | j        ¦  «        ‚)zFind the branch 'format' for this controldir.

        This might be a synthetic object for e.g. RemoteBranch and SVN.
        )r8   Úfind_branch_formatrp   s     r    r|   zControlDir.find_branch_format  s   € õ
 " $Ô"9Ñ:Ô:Ð:r!   c                 ó(   — |�t          | ¦  «        ‚dS )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)r.   rp   s     r    rW   zControlDir.get_branch_reference  s   € ð ÐÝ*¨4Ñ0Ô0Ð0Øˆtr!   c                 ó*   — t          | j        ¦  «        ‚)aj  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
        )r8   Úset_branch_reference)r   Útarget_branchri   s      r    r   zControlDir.set_branch_reference*  s   € õ " $Ô";Ñ<Ô<Ð<r!   c                 ó*   — t          | j        ¦  «        ‚)ad  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.
        )r8   r\   )r   ri   ÚunsupportedÚignore_fallbacksÚpossible_transportss        r    r\   zControlDir.open_branch:  s   € õ " $Ô"2Ñ3Ô3Ð3r!   c                 ó*   — t          | j        ¦  «        ‚)aW  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.
        )r8   Úopen_repository)r   Ú_unsupporteds     r    r†   zControlDir.open_repositoryG  s   € õ " $Ô"6Ñ7Ô7Ð7r!   c                 ó*   — t          | j        ¦  «        ‚)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.
        )r8   Úfind_repositoryr9   s    r    r‰   zControlDir.find_repositoryS  s   € õ " $Ô"6Ñ7Ô7Ð7r!   Tc                 ó*   — t          | j        ¦  «        ‚)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)
        )r8   Úopen_workingtree)r   r‚   Úrecommend_upgradert   s       r    r‹   zControlDir.open_workingtree\  s   € õ " $Ô"7Ñ8Ô8Ð8r!   c                 ób   — 	 |                       |d¬¦  «         dS # t          j        $ r Y dS w xY w)a  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)r\   r   rX   rp   s     r    Ú
has_branchzControlDir.has_branchj  sJ   € ð	Ø×Ò˜T°DÐÑ9Ô9Ð9Ø�4øÝÔ$ð 	ð 	ð 	Ø�5�5ð	øøøs   ‚ ›.­.c                 ó–   — | j                              ¦   «                              d¦  «        }|€d}t                               |¦  «        S )z~Return the name of the branch selected by the user.

        Returns: Name of the branch selected by the user, or "".
        r+   NrV   )rM   Úget_segment_parametersÚgetÚurlutilsÚunescaper,   s     r    Ú_get_selected_branchzControlDir._get_selected_branchw  sD   € ð
 Ô$×;Ò;Ñ=Ô=×AÒAÀ(ÑKÔKˆØˆ>ØˆFÝ× Ò  Ñ(Ô(Ð(r!   c                 ó`   — 	 |                       d¬¦  «         dS # t          j        $ r Y dS w xY w)a“  Tell 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   ÚNoWorkingTreer9   s    r    Úhas_workingtreezControlDir.has_workingtree�  sH   € ð	Ø×!Ò!°EÐ!Ñ:Ô:Ð:Ø�4øÝÔ#ð 	ð 	ð 	Ø�5�5ð	øøøs   ‚ š-¬-c                 ó*   — t          | j        ¦  «        ‚)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.
        )r8   Úcloning_metadir)r   Úrequire_stackings     r    r™   zControlDir.cloning_metadir‘  s   € õ " $Ô"6Ñ7Ô7Ð7r!   c                 ó*   — |                       ¦   «         S )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™   r9   s    r    Úcheckout_metadirzControlDir.checkout_metadir   s   € ð ×#Ò#Ñ%Ô%Ð%r!   Údownc                 ó*   — t          | j        ¦  «        ‚)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.
        )r8   Úsprout)r   r   rs   Úforce_new_repoÚrecurser„   ru   rv   ÚstackedÚsource_branchÚcreate_tree_if_localÚlossys               r    rŸ   zControlDir.sprout©  s   € õ: " $¤+Ñ.Ô.Ð.r!   c	                 ó`  — ddl m}	 	 |                      |¬¦  «        }
|
j        }n+# t          j        $ r |                      ¦   «         }d}
Y nw xY w |	¦   «         }||_        |
€¹|€|                     ¦   «         }| 	                    |j        |¬¦  «         | 
                    | ||||¬¦  «        }
|                     ¦   «         �|r|                     |
j        ¦  «         d|_        d|_        d|_        t"          j        |_        |
|_        d|_        d|_        �n‘|                     ¦   «         �|r|                     |
j        ¦  «         	 |                      ¦   «         }|
j        |j        j        k    rl|                     ¦   «         5  |                      |j        ||||¬¦  «        |_        |                     ¦   «          ddd¦  «         n# 1 swxY w Y   d	|_        n˜|                      |
||||¬¦  «        |_        d|_        nq# t          j        $ r) |                      |
||||¬¦  «        |_        d|_        Y n:t          j        $ r) |                      |
||||¬¦  «        |_        d|_        Y nw xY w|j        j        |_        |j        j        |_        |j        j        |_        |S )
z,Push the source branch into this ControlDir.r   )Ú
PushResult©ri   N)rs   )rs   r¥   Útag_selectorri   F)Ú	overwriteÚstop_revisionr¥   r©   T)Úpushr§   r\   rj   r   rX   r‰   r£   Úlast_revisionÚfetchrŸ   Úget_push_locationÚset_push_locationr=   Ú
stacked_onÚbranch_push_resultÚ	old_revnoÚ_mod_revisionÚNULL_REVISIONÚ	old_revidr€   Úmaster_branchÚworkingtree_updatedr‹   ri   r+   Ú
lock_writeÚupdateÚNotLocalUrlr–   )r   Úsourcers   rª   ÚrememberÚcreate_prefixr¥   r©   ri   r§   Úbr_toÚrepository_toÚpush_resultÚtree_tos                 r    Úpush_branchzControlDir.push_branchÈ  su  € ð 	%Ð$Ð$Ð$Ð$Ð$ð	-Ø×$Ò$¨$Ð$Ñ/Ô/ˆEð "Ô,ˆMˆMøõ Ô$ð 	ð 	ð 	à ×0Ò0Ñ2Ô2ˆMØˆEˆEˆEð	øøøð !�j‘l”lˆØ$*ˆÔ!Øˆ=ð Ð"ð %×2Ò2Ñ4Ô4�Ø×Ò Ô 1¸{ÐÑKÔKÐKØ—M’MØ +°UØ)°ð "ñ 6ô 6ˆEð ×'Ò'Ñ)Ô)Ð1°XÐ1à×(Ò(¨¬Ñ4Ô4Ð4Ø%)ˆKÔ"Ø-1ˆKÔ*Ø$(ˆKÔ!Ý$1Ô$?ˆKÔ!Ø(-ˆKÔ%Ø(,ˆKÔ%Ø.3ˆKÔ+Ñ+ð ×'Ò'Ñ)Ô)Ð1°XÐ1à×(Ò(¨¬Ñ4Ô4Ð4ð;Ø×/Ò/Ñ1Ô1�ð ”: ¤Ô!4Ò4Ð4Ø ×+Ò+Ñ-Ô-ð )ð )Ø9?¿ºØ#œN°iØ*5Ø"'°lð :Eñ :Dô :D˜Ô6ð  ŸšÑ(Ô(Ð(ð)ð )ð )ñ )ô )ð )ð )ð )ð )ð )ð )øøøð )ð )ð )ð )ð 7;�KÔ3Ð3à5;·[²[Ø¨À+Ø#°,ð 6Añ 6@ô 6@�KÔ2ð 7;�KÔ3Ð3øõ/ Ô%ð 8ð 8ð 8Ø17·²Ø Y¸kÐQVØ!-ð 2=ñ 2/ô 2/�Ô.ð 38�Ô/Ð/Ð/ÝÔ'ð 7ð 7ð 7Ø17·²Ø Y¸kØ¨lð 2=ñ 2<ô 2<�Ô.ð 37�Ô/Ð/Ð/ð	7øøøð& %0Ô$BÔ$LˆKÔ!Ø$/Ô$BÔ$LˆKÔ!àÔ.Ô<ð Ô%àÐs9   ˆ& ¦%AÁAÅH
 Æ9GÇGÇGÈ
5I8É4I8É7I8c                 óè   — 	 |                       ¦   «         }|�|                      |¬¦  «        }nA|j        }n9# t          j        t          j        f$ r d}|                      |¬¦  «        }Y nw xY w||fS )a  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‹   r\   r+   r   r–   r»   )r   ri   Útreer+   s       r    Ú_get_tree_branchzControlDir._get_tree_branch  s”   € ð		%Ø×(Ò(Ñ*Ô*ˆDð
 ÐØ×)Ò)¨tÐ)Ñ4Ô4��àœ��øõ Ô$¥fÔ&8Ð9ð 	1ð 	1ð 	1ØˆDØ×%Ò%¨4Ð%Ñ0Ô0ˆFˆFˆFð	1øøøð �Vˆ|Ðs   ‚7 ·3A-Á,A-c                 ó*   — t          | j        ¦  «        ‚)z&Get configuration for this ControlDir.)r8   Ú
get_configr9   s    r    rÈ   zControlDir.get_config,  s   € å! $¤/Ñ2Ô2Ð2r!   c                 ó*   — t          | j        ¦  «        ‚)zDCheck that a controldir as a whole can be converted to a new format.)r8   Úcheck_conversion_target©r   Útarget_formats     r    rÊ   z"ControlDir.check_conversion_target0  ó   € å! $Ô">Ñ?Ô?Ð?r!   c                 óZ   — |                       t          j        |¦  «        ||||¬¦  «        S )aŠ  Clone 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.
        )rs   r    Úpreserve_stackingr©   )Úclone_on_transportrG   Úget_transport)r   r   rs   r    rÏ   r©   s         r    ÚclonezControlDir.clone4  s=   € ð ×&Ò&¥~Ô'CÀCÑ'HÔ'HØ3>Ø6DØ9JØ4@ð	 'ñ Bô Bð 	Br!   c
                 ó*   — t          | j        ¦  «        ‚)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.
        )r8   rÐ   )
r   r   rs   r    rÏ   r±   r¾   Úuse_existing_dirÚno_treer©   s
             r    rÐ   zControlDir.clone_on_transportI  s   € õ* " $Ô"9Ñ:Ô:Ð:r!   c              #   ó"  K  — |€d„ }|€d„ }|g}t          |¦  «        dk    rì|                     ¦   «         }d}	 |                      |¦  «        } ||¦  «        \  }}|V — n,# t          j        t          j        t          j        f$ r Y nw xY w	  ||¦  «        }	n!# t          j        t          j        f$ r Y Œ¨w xY w|r<t          |	d¬¦  «        D ]*}
| 
                    |                     |
¦  «        ¦  «         Œ+t          |¦  «        dk    °êdS dS )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                 ó,   — |                       d¦  «        S )NrV   )Úlist_dir)r   s    r    Úlist_currentz1ControlDir.find_controldirs.<locals>.list_currentt  s   € Ø ×)Ò)¨"Ñ-Ô-Ð-r!   c                 ó
   — d| fS )NTr'   r1   s    r    Úevaluatez-ControlDir.find_controldirs.<locals>.evaluatew  s   € Ø˜ZÐ'Ð'r!   r   T)Úreverse)ÚlenÚpopÚopen_from_transportr   rX   ÚPermissionDeniedÚUnknownFormatErrorrG   Ú
NoSuchFileÚsortedÚappendrÒ   )Úklassr   rÛ   rÙ   ÚpendingÚcurrent_transportr¡   r2   ÚvalueÚsubdirsÚsubdirs              r    Úfind_controldirszControlDir.find_controldirs`  sy  è è € ð& Ðð.ð .ð .àÐð(ð (ð (ð �+ˆÝ�'‰lŒl˜QÒÐØ '§¢¡¤ÐØˆGðØ"×6Ò6Ð7HÑIÔI�
ð
 "* ¨*Ñ!5Ô!5‘�˜Ø����øõ Ô)­6Ô+BÝÔ-ð/ð ð ð à�ðøøøðØ&˜,Ð'8Ñ9Ô9��øÝ"Ô-­vÔ/FÐGð ð ð Ø�ðøøøàð DÝ$ W°dÐ;Ñ;Ô;ð Dð D�FØ—N’NÐ#4×#:Ò#:¸6Ñ#BÔ#BÑCÔCÐCÐCõ# �'‰lŒl˜QÒÐÐÐÐÐs#   ºA" Á"&BÂ
BÂB ÂB9Â8B9c                 óÊ   — d„ }g }|                       ||¬¦  «        D ]E\  }}|�'|                     |                     ¦   «         ¦  «         |�|                     |¦  «         ŒF|S )aA  Find 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                 ó’   — 	 |                       ¦   «         }dg |ffS # t          j        $ r Y nw xY wd|                      ¦   «         d ffS )NFT)r†   r   rY   rT   )r2   rj   s     r    rÛ   z*ControlDir.find_branches.<locals>.evaluate™  sm   € ð/Ø'×7Ò7Ñ9Ô9�
ð ˜r :Ð.Ð.Ð.øõ Ô-ð ð ð Ø�ðøøøð ˜*×2Ò2Ñ4Ô4°dÐ;Ð;Ð;s   ‚ œ.­.)rÛ   )rë   ÚextendÚfind_branches)rå   r   rÛ   ÚretÚbranchesÚrepos         r    rï   zControlDir.find_branchesŽ  s‡   € ð	<ð 	<ð 	<ð ˆØ#×4Ò4Ø Hð 5ñ .ô .ð 	%ð 	%‰NˆH�dàÐØ—
’
˜4×-Ò-Ñ/Ô/Ñ0Ô0Ð0ØÐ#Ø—
’
˜8Ñ$Ô$Ð$øØˆ
r!   c                 óœ   — |                       ||¦  «        }|                     |¦  «         t          d|                     ¦   «         ¦  «        S )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_repositoryr   rm   )rå   r=   r    r   r2   s        r    Úcreate_branch_and_repoz!ControlDir.create_branch_and_repoª  sG   € ð& —\’\ $¨Ñ/Ô/ˆ
Ø×-Ò-¨nÑ=Ô=Ð=Ý�H˜j×6Ò6Ñ8Ô8Ñ9Ô9Ð9r!   c                 ó˜  — |rDddl m} t          j        ||¦  «        }t	          ||j        ¦  «        st          j        |¦  «        ‚|                      |||¦  «        }| 	                    |¦  «        }	| 
                    ¦   «         }
|s|	                     ¦   «         r-|€+	 |                     ¦   «          n# t          j        $ r Y nw xY w|
S )aô  Create 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ù   rG   rÑ   Ú
isinstanceÚLocalTransportr   r»   rô   rõ   rm   Úmake_working_treesrr   )rå   r=   r    Úforce_new_treer   r„   rù   Útr2   rò   Úresults              r    Úcreate_branch_conveniencez$ControlDir.create_branch_convenienceÁ  sô   € ð< ð 	/Ø.Ð.Ð.Ð.Ð.Ð.åÔ,¨TÐ3FÑGÔGˆAÝ˜a Ô!5Ñ6Ô6ð /ÝÔ(¨Ñ.Ô.Ð.Ø—\’\ $¨Ð0CÑDÔDˆ
Ø×4Ò4°^ÑDÔDˆØ×)Ò)Ñ+Ô+ˆØð 	˜d×5Ò5Ñ7Ô7ð 	Ø,Ð4ðØ×-Ò-Ñ/Ô/Ð/Ð/øÝÔ%ð ð ð Ø�ðøøøàˆs   Â B5 Â5CÃCc                 óê   — t          j        |¦  «        }ddlm} t	          ||j        ¦  «        st          j        |¦  «        ‚|                      |d|¬¦  «        j	        }| 
                    ¦   «         S )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.
        r   rø   T)r    r   )rG   rÑ   rú   rù   rû   rü   r   r»   rö   r2   rr   )rå   r=   r   rÿ   rù   r2   s         r    Úcreate_standalone_workingtreez(ControlDir.create_standalone_workingtreeð  sŠ   € õ  Ô(¨Ñ.Ô.ˆØ*Ð*Ð*Ð*Ð*Ð*Ý˜!˜UÔ1Ñ2Ô2ð 	+ÝÔ$ TÑ*Ô*Ð*Ø×1Ò1°$ØAEØ9?ð 2ñ Aô AäAKð 	ð ×,Ò,Ñ.Ô.Ð.r!   c                 ó0   — |                       |d¬¦  «        S )z%Open a branch which is not supported.T)r‡   )Úopen)rå   r=   s     r    Úopen_unsupportedzControlDir.open_unsupported	  s   € ð �zŠz˜$¨TˆzÑ2Ô2Ð2r!   c                 ó\   — t          j        ||¦  «        }|                      |||¬¦  «        S )z‘Open an existing controldir, rooted at 'base' (url).

        Args:
          _unsupported: a private parameter to the ControlDir class.
        )Úprobersr‡   )rG   rÑ   rß   )rå   r=   r„   r  r‡   rÿ   s         r    r  zControlDir.open  s>   € õ Ô(¨Ð/BÑCÔCˆØ×(Ò(¨°GØ6Bð )ñ Dô Dð 	Dr!   r   c                 óV  ‡‡— | j         d         D ]} ||¦  «         Œ|j        Šˆfd„}ˆfd„}	 t          j        |||¦  «        \  }}n'# t          j        $ r t	          j        ‰¦  «        ‚w xY w|                     |¦  «         t          d| 	                    |d¬¦  «        ¦  «        S )z£Open a controldir within a particular directory.

        Args:
          transport: Transport containing the controldir.
          _unsupported: private.
        Úpre_openc                 ó@   •— | t                                | ‰¬¦  «        fS )N©r  )ÚControlDirFormatÚfind_format)r   r  s    €r    r  z3ControlDir.open_from_transport.<locals>.find_format)  s1   ø€ ØÕ.×:Ò:¸9ØCJð ;ñ Lô Lð Lð Lr!   c                 óþ   •— |                       |j        |j        ¦  «        }|€t          j        ‰¦  «        ‚t          j        t          d¦  «                             | j	        |j
        |j	        ¦  «        ¦  «         |S )Nz{0} is{1} redirected to {2})Ú_redirected_tor¼   Útargetr   rX   r   ÚnoteÚgettextr   r=   Úpermanently)r   ÚeÚredirection_noticeÚredirected_transportr=   s       €r    Ú
redirectedz2ControlDir.open_from_transport.<locals>.redirected-  s}   ø€ Ø#,×#;Ò#;¸A¼HÀaÄhÑ#OÔ#OÐ Ø#Ð+ÝÔ+¨DÑ1Ô1Ð1ÝŒJ•wÐ<Ñ=Ô=×DÒDØ” ¤Ð/CÔ/HñJô Jñ Kô Kð Kà'Ð'r!   rL   T)Ú_found)
r   r=   rG   Údo_catching_redirectionsr   ÚTooManyRedirectionsrX   Úcheck_support_statusr   r  )	rå   r   r‡   r  Úhookr  r  r   r=   s	      `    @r    rß   zControlDir.open_from_transport  sõ   øø€ ð ”K 
Ô+ð 	ð 	ˆDØˆD�‰OŒOˆOˆOð Œ~ˆð	Lð 	Lð 	Lð 	Lð 	Lð	(ð 	(ð 	(ð 	(ð 	(ð	.Ý .Ô GØ˜Y¨
ñ!4ô !4ÑˆI�v�vøåÔ)ð 	.ð 	.ð 	.ÝÔ'¨Ñ-Ô-Ð-ð	.øøøð 	×#Ò# LÑ1Ô1Ð1Ý�L &§+¢+¨iÀ +Ñ"EÔ"EÑFÔFÐFs   °A
 Á
$A.c                 óV   — t          j        ||¦  «        }|                      |¦  «        S )z£Open an existing branch which contains url.

        Args:
          url: url to search from.

        See open_containing_from_transport for more detail.
        )rG   rÑ   Úopen_containing_from_transport)rå   r   r„   r   s       r    Úopen_containingzControlDir.open_containing>  s+   € õ #Ô0°Ð6IÑJÔJˆ	Ø×3Ò3°IÑ>Ô>Ð>r!   c                 ó¸  — |j         }	 	 |                      ||¬¦  «        }|t                               |                     |¦  «        ¦  «        fS # t
          j        $ r Y nt
          j        $ r Y nw xY w	 |                     d¦  «        }n(# t          j	        $ r t          j        |¬¦  «        ‚w xY w|j         |j         k    rt          j        |¬¦  «        ‚|}ŒÓ)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.
        Tr  z..©Úpath)
r=   rß   r’   r“   Úrelpathr   rX   rà   rÒ   ÚInvalidURLJoin)rå   Úa_transportr  r   r   Únew_ts         r    r  z)ControlDir.open_containing_from_transportJ  s  € ð  Ôˆð	 ðØ×2Ò2°;ÈÐ2ÑPÔP�Ø�x×0Ò0°×1DÒ1DÀSÑ1IÔ1IÑJÔJÐJÐJøÝÔ(ð ð ð Ø�ÝÔ*ð ð ð Ø�ðøøøð6Ø#×)Ò)¨$Ñ/Ô/��øÝÔ*ð 6ð 6ð 6åÔ+°Ð5Ñ5Ô5Ð5ð6øøøð Œz˜[Ô-Ò-Ð-åÔ+°Ð5Ñ5Ô5Ð5ØˆKð!	 s$   ŠAA ÁA2Á!A2Á1A2Á6B Â%B1c                 óX   — |                       |¦  «        }|                     |¬¦  «        S )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¨   )r  rÆ   )rå   Úlocationri   r2   s       r    Úopen_tree_or_branchzControlDir.open_tree_or_branchm  s,   € ð —Z’Z Ñ)Ô)ˆ
Ø×*Ò*°Ð*Ñ5Ô5Ð5r!   c                 ón   — |                       ||¬¦  «        \  }}|                     ¦   «         \  }}|||fS )a`  Return 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„   )r   rÆ   )rå   r)  r„   r2   r$  rÅ   r+   s          r    Úopen_containing_tree_or_branchz)ControlDir.open_containing_tree_or_branchy  sL   € ð $×3Ò3°HØH[ð 4ñ ]ô ]Ñˆ
�Gà!×2Ò2Ñ4Ô4‰ˆˆfØ�V˜WÐ$Ð$r!   c                 ó(  — |                       |¦  «        \  }}	 |                     ¦   «         \  }}nW# t          j        $ rE 	 |                     ¦   «         }dd||fcY S # t          j        $ r t          j        |¦  «        ‚w xY ww xY w|||j        |fS )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)r   rÆ   r   rX   r‰   rY   rj   )rå   r)  r2   r$  rÅ   r+   rò   s          r    Ú)open_containing_tree_branch_or_repositoryz4ControlDir.open_containing_tree_branch_or_repository‰  sÄ   € ð $×3Ò3°HÑ=Ô=Ñˆ
�Gð	6Ø%×6Ò6Ñ8Ô8‰LˆD�&�&øÝÔ$ð 	6ð 	6ð 	6ð6Ø!×1Ò1Ñ3Ô3�Ø˜T 4¨Ð0Ð0Ð0Ð0øÝÔ.ð 6ð 6ð 6ÝÔ+¨HÑ5Ô5Ð5ð6øøøð		6øøøð �V˜VÔ.°Ð7Ð7s!   š2 ²BÁAÁBÁ$BÂBc                 óê   — | t           urt          d| z  ¦  «        ‚t          j        ||¦  «        }|                     ¦   «          |€t
                               ¦   «         }|                     |¦  «        S )a2  Create 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.
        zAControlDir.create always creates thedefault format, not one of %r)rL   ÚAssertionErrorrG   rÑ   Úensure_baser  Úget_default_formatÚinitialize_on_transport)rå   r=   r   r„   rÿ   s        r    rô   zControlDir.create¢  s}   € ð �
Ð"Ð"Ý ð "AØCHñ"Iñ Jô Jð JåÔ(¨Ð/BÑCÔCˆØ	�Š‰ŒˆØˆ>Ý%×8Ò8Ñ:Ô:ˆFØ×-Ò-¨aÑ0Ô0Ð0r!   r0   ©F)r5   N)NNN)NNNF)r5   r   )NFFN)r5   r   )r5   r   )FTN)
NFr�   NNFFNTF)NFFFFNN)NFFNFTFN)NN)FN)FNNN)NNF)r5   rL   )=r#   r$   r%   rE   r   ÚHooksrJ   rG   rH   rO   r   rT   rI   rZ   r   rR   r_   rb   Úboolrf   rh   r   rm   ro   rr   rx   rz   r|   rW   r   r\   r†   r‰   r‹   rŽ   r”   r—   r™   rœ   rŸ   rÃ   rÆ   rÈ   rÊ   rÒ   rÐ   Úclassmethodrë   rï   rö   r  r  r  r  rß   r   r  r*  r-  r/  rô   r'   r!   r    rL   rL   t   sµ  € € € € € € ðð ð" Œ;ÐÐÑà"Ô,Ð,Ð,Ñ,Ø"Ô,Ð,Ð,Ñ,ðð ð ð
2˜t Hœ~ð 2ð 2ð 2ð 2ð
˜d 3œið 
ð 
ð 
ð 
ð˜d 3¨ =Ô1ð ð ð ð ð:ð :ð :ð 
@ð 
@ð 
@ð 
@ð:ð :¨ð :¸ð :ð :ð :ð :ð;ð ;ð ;ð ;ð 37Ø;?Ø>Bð6ð 6 (¨3¤-ð 6Ø"*¨<Ô"8ð6à-5°d¬^ð6àGOð6ð 6ð 6ð 6ð 
7ð 
7 8¨C¤=ð 
7¸Dð 
7ð 
7ð 
7ð 
7ð @DØ;@ð;ØERð;ð ;ð ;ð ;ð<ð <ð <ðEð Eð Eð;ð ;ð ;ð ;ðð ð ð ð&=ð =ð =ð =ð  27Ø@Dð4ØIQð4ð 4ð 4ð 4ð
8ð 
8ð 
8ð 
8ð 
8ð8ð 8ð 8ð 8ð ,1Ø=Að9ØFSð9ð 9ð 9ð 9ðð ð ð ð)ð )ð )ðð ð ð 8ð 8ð 8ð 8ð&ð &ð &ð <AØ37Ø>CØ8<Øð	/ð /ð /ð /ð> ?DØ?DØ,0ðKð Kð Kð KðZð ð ð ð.3ð 3ð 3ð@ð @ð @ð ;@Ø48ðBð Bð Bð Bð* 9=ØUYØOTØ(,ð;ð ;ð ;ð ;ð. ð+Dð +Dð +Dñ „[ð+DðZ ðð ñ „[ðð6 à6:ð:Ø?Gð:ð :ð :ñ „[ð:ð, Ø>CØ>BØ6:ð,ð ,ð ,ñ „[ð,ð\ ð/ð /ð /ð /ñ „[ð/ð0 ð3ð 3ñ „[ð3ð Ø<@Øð	DØ$0ð	Dð 	Dð 	Dñ „[ð	Dð à8<ð!Gð !G¨nÔ.Fð !GØAMð!Gð !Gð !Gñ „[ð!GðF ð	?ð 	?ð 	?ñ „[ð	?ð ð  ð   ð   ñ „[ð  ðD ð	6ð 	6ð 	6ñ „[ð	6ð à;?ð%ð %ð %ñ „[ð%ð ð8ð 8ñ „[ð8ð0 ð1ð 1ð 1ñ „[ð1ð 1ð 1r!   rL   c                   ó   — e Zd ZdZd„ ZdS )ÚControlDirHooksz Hooks for ControlDir operations.c                 ó¤   — t           j                             | dd¦  «         |                      ddd¦  «         |                      ddd¦  «         d	S )
zCreate the default hooks.zbreezy.controldirzControlDir.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   r6  r   Úadd_hookr9   s    r    r   zControlDirHooks.__init__¹  sm   € åŒ×Ò˜TÐ#6Ð8JÑKÔKÐKØ�Š�jð0Ø18ñ	:ô 	:ð 	:ð 	�ŠÐ&ð>ð ñ		ô 	ð 	ð 	ð 	r!   N)r#   r$   r%   rE   r   r'   r!   r    r:  r:  ¶  s)   € € € € € Ø*Ð*ð
ð 
ð 
ð 
ð 
r!   r:  c                   óD   — e Zd ZdZdZd„ Zd„ Z	 	 d	d„Zed„ ¦   «         Z	dS )
rC   z8A component that can live inside of a control directory.Fc                 ó*   — t          | j        ¦  «        ‚©z-Return the short description for this format.©r8   Úget_format_descriptionr9   s    r    rD  z-ControlComponentFormat.get_format_descriptionÏ  ó   € å! $Ô"=Ñ>Ô>Ð>r!   c                 ó   — dS )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'   r9   s    r    Úis_supportedz#ControlComponentFormat.is_supportedÓ  ó	   € ð ˆtr!   TNc                 óÚ   — |s)|                       ¦   «         st          j        | ¬¦  «        ‚|r;| j        r6t          j                             |                      ¦   «         |¦  «         dS dS dS ©as  Give 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.
        )r   N©rG  r   ÚUnsupportedFormatErrorÚupgrade_recommendedÚuiÚ
ui_factoryrŒ   rD  ©r   Úallow_unsupportedrŒ   Úbasedirs       r    r  z+ControlComponentFormat.check_support_statusÜ  óŽ   € ð !ð 	=¨×):Ò):Ñ)<Ô)<ð 	=åÔ/°tÐ<Ñ<Ô<Ð<Øð 	8 Ô!9ð 	8ÝŒM×+Ò+Ø×+Ò+Ñ-Ô-¨wñ8ô 8ð 8ð 8ð 8ð	8ð 	8ð 	8ð 	8r!   c                 ó*   — t          | j        ¦  «        ‚r0   )r8   Úget_format_string)Úclss    r    rU  z(ControlComponentFormat.get_format_stringð  s   € å! #Ô"7Ñ8Ô8Ð8r!   ©TN)
r#   r$   r%   rE   rM  rD  rG  r  r8  rU  r'   r!   r    rC   rC   Ê  sw   € € € € € ØBÐBàÐð?ð ?ð ?ðð ð ð IMØ%)ð8ð 8ð 8ð 8ð( ð9ð 9ñ „[ð9ð 9ð 9r!   rC   c                   ób   ‡ — e Zd ZdZdˆ fd„	Zˆ fd„Zˆ fd„Zd„ Zd„ Zd„ Z	d	„ Z
d
„ Zd„ Zd„ Zˆ xZS )ÚControlComponentFormatRegistryzDA registry for control components (branch, workingtree, repository).Nc                 óX   •— t          ¦   «                              |¦  «         g | _        d S r0   )Úsuperr   Ú_extra_formats)r   Úother_registryÚ	__class__s     €r    r   z'ControlComponentFormatRegistry.__init__ø  s)   ø€ Ý‰Œ×Ò˜Ñ(Ô(Ð(Ø ˆÔÐÐr!   c                 óp   •— t          ¦   «                              |                     ¦   «         |¦  «         dS )zRegister a new format.N)r[  ÚregisterrU  ©r   r   r^  s     €r    r`  z'ControlComponentFormatRegistry.registerü  s:   ø€ å‰Œ×ÒØ×$Ò$Ñ&Ô&¨ñ	0ô 	0ð 	0ð 	0ð 	0r!   c                 ón   •— t          ¦   «                              |                     ¦   «         ¦  «         dS )zRemove a registered format.N)r[  ÚremoverU  ra  s     €r    rc  z%ControlComponentFormatRegistry.remove  s6   ø€ å‰Œ�ŠØ×$Ò$Ñ&Ô&ñ	(ô 	(ð 	(ð 	(ð 	(r!   c                 ó^   — | j                              t          j        |¦  «        ¦  «         dS )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\  rä   r   Ú_ObjectGetterrc   s     r    Úregister_extraz-ControlComponentFormatRegistry.register_extra  s,   € ð 	Ô×"Ò"¥8Ô#9¸&Ñ#AÔ#AÑBÔBÐBÐBÐBr!   c                 ó^   — | j                              t          j        |¦  «        ¦  «         dS )z Remove an extra format.
        N)r\  rc  r   re  rc   s     r    Úremove_extraz+ControlComponentFormatRegistry.remove_extra  s,   € ð 	Ô×"Ò"¥8Ô#9¸&Ñ#AÔ#AÑBÔBÐBÐBÐBr!   c                 ó`   — | j                              t          j        ||¦  «        ¦  «         dS )z"Register a format lazily.
        N)r\  rä   r   Ú_LazyObjectGetter)r   Úmodule_nameÚmember_names      r    Úregister_extra_lazyz2ControlComponentFormatRegistry.register_extra_lazy  s>   € ð 	Ô×"Ò"ÝÔ& {°KÑ@Ô@ñ	Bô 	Bð 	Bð 	Bð 	Br!   c                 ó$   — d„ | j         D ¦   «         S )zAReturn getters for extra formats, not usable in meta directories.c                 ó   — g | ]	}|j         ‘Œ
S r'   )Úget_obj)Ú.0Úgetters     r    ú
<listcomp>z=ControlComponentFormatRegistry._get_extra.<locals>.<listcomp>  s   € ÐAÐAÐA 6�”ÐAÐAÐAr!   )r\  r9   s    r    Ú
_get_extraz)ControlComponentFormatRegistry._get_extra  s   € àAÐA¨TÔ-@ÐAÑAÔAÐAr!   c                 ó–   ‡ — ˆ fd„‰                       ¦   «         D ¦   «         }|                     ‰                      ¦   «         ¦  «         |S )zBReturn getters for all formats, even those not usable in metadirs.c                 ó4   •— g | ]}‰j         |         j        ‘ŒS r'   )Ú_dictrp  )rq  ri   r   s     €r    rs  z@ControlComponentFormatRegistry._get_all_lazy.<locals>.<listcomp>  s#   ø€ ÐCÐCÐC¨t�$”*˜TÔ"Ô*ÐCÐCÐCr!   )Úkeysrî   rt  )r   r   s   ` r    Ú_get_all_lazyz,ControlComponentFormatRegistry._get_all_lazy  sE   ø€ àCÐCÐCÐC°t·y²y±{´{ÐCÑCÔCˆØ�Š�d—o’oÑ'Ô'Ñ(Ô(Ð(Øˆr!   c                 ó¨   — g }|                       ¦   «         D ]:} |¦   «         }t          |¦  «        r
 |¦   «         }|                     |¦  «         Œ;|S )z6Return all formats, even those not usable in metadirs.)ry  Úcallablerä   )r   r   rr  Úfmts       r    Ú_get_allz'ControlComponentFormatRegistry._get_all#  s`   € àˆØ×(Ò(Ñ*Ô*ð 	ð 	ˆFØ�&‘(”(ˆCÝ˜‰}Œ}ð Ø�c‘e”e�Ø�MŠM˜#ÑÔÐÐØˆr!   c                 ó  — t          ¦   «         }|                      ¦   «         D ]*}|                     |                      |¦  «        ¦  «         Œ+| j        D ])}|                     |                     ¦   «         ¦  «         Œ*|S )z.Return a set of the modules providing objects.)Úsetrx  ÚaddÚ_get_moduler\  Ú
get_module)r   Úmodulesri   rr  s       r    Ú_get_all_modulesz/ControlComponentFormatRegistry._get_all_modules-  s}   € å‘%”%ˆØ—I’I‘K”Kð 	0ð 	0ˆDØ�KŠK˜×(Ò(¨Ñ.Ô.Ñ/Ô/Ð/Ð/ØÔ)ð 	-ð 	-ˆFØ�KŠK˜×)Ò)Ñ+Ô+Ñ,Ô,Ð,Ð,Øˆr!   r0   )r#   r$   r%   rE   r   r`  rc  rf  rh  rm  rt  ry  r}  r„  Ú__classcell__©r^  s   @r    rY  rY  õ  sê   ø€ € € € € ØNÐNð!ð !ð !ð !ð !ð !ð0ð 0ð 0ð 0ð 0ð
(ð (ð (ð (ð (ð
Cð Cð CðCð Cð Cð
Bð Bð BðBð Bð Bðð ð ðð ð ðð ð ð ð ð ð r!   rY  c                   ó   — e Zd ZdZd„ Zd„ ZdS )Ú	Converterz9Converts a disk format object from one format to another.c                 ó   — dS )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    ÚconvertzConverter.convert:  s   € € € r!   c                 ór   — | xj         dz  c_         | j                             || j         | j        ¦  «         dS )zUpdate the pb by a step.r   N)Úcountr‹  rº   Útotal)r   Úmessages     r    ÚstepzConverter.stepB  s3   € àˆ
Œ
�a‰ˆ
Œ
ØŒ�Š�w ¤
¨D¬JÑ7Ô7Ð7Ð7Ð7r!   N)r#   r$   r%   rE   rŒ  r‘  r'   r!   r    rˆ  rˆ  7  s8   € € € € € ØCÐCðð ð ð8ð 8ð 8ð 8ð 8r!   rˆ  c            	       ó  — e Zd ZU dZdZed          ed<   	 g Zee	d                  ed<   	 dZ
	 dZ	 dZ	 dZ	 d„ Zd"d	„Zd
„ Zd„ Z	 	 d#d„Zd„ Zede	d         fd„¦   «         Zede	d         fd„¦   «         Zd„ Zedee	d                  fd„¦   «         Zed„ ¦   «         Ze	 d"dej        deee	d                           dd fd„¦   «         Zd"d„Zd„ Z	 	 	 	 d$d„Zd„ Z d%dej        ddfd„Z!ed„ ¦   «         Z"ed„ ¦   «         Z#d „ Z$ed!„ ¦   «         Z%dS )&r  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                 ó*   — t          | j        ¦  «        ‚rB  rC  r9   s    r    rD  z'ControlDirFormat.get_format_descriptionv  rE  r!   c                 ó*   — t          | j        ¦  «        ‚)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.
        )r8   Úget_converterrc   s     r    r˜  zControlDirFormat.get_converterz  s   € õ " $Ô"4Ñ5Ô5Ð5r!   c                 ó   — dS )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'   r9   s    r    rG  zControlDirFormat.is_supported‰  rH  r!   c                 ó*   — |                       ¦   «         S )zKWhether new control directories of this format can be initialized.
        )rG  r9   s    r    Úis_initializablez!ControlDirFormat.is_initializable’  s   € ð × Ò Ñ"Ô"Ð"r!   c                 óÚ   — |s)|                       ¦   «         st          j        | ¬¦  «        ‚|r;| j        r6t          j                             |                      ¦   «         |¦  «         dS dS dS rJ  rK  rP  s       r    r  z%ControlDirFormat.check_support_status—  rS  r!   c                 ó,   — | j         j        |j        k    S r0   )Úrepository_formatÚrich_root_datarË   s     r    Ú
same_modelzControlDirFormat.same_model«  s   € ØÔ&Ô5ØÔ,ò-ð 	.r!   Úproberc                 ó:   — | j                              |¦  «         dS )z<Register a prober that can look for a control dir.

        N)r•  rä   ©rå   r¡  s     r    Úregister_proberz ControlDirFormat.register_prober¯  ó    € ð
 	Œ×Ò˜fÑ%Ô%Ð%Ð%Ð%r!   c                 ó:   — | j                              |¦  «         dS )zUnregister a prober.

        N)r•  rc  r£  s     r    Úunregister_proberz"ControlDirFormat.unregister_prober¶  r¥  r!   c                 óN   — |                       ¦   «                              ¦   «         S r0   )rD  Úrstripr9   s    r    Ú__str__zControlDirFormat.__str__½  s    € à×*Ò*Ñ,Ô,×3Ò3Ñ5Ô5Ð5r!   r5   c                 ó   — | j         S r0   )r•  ©rå   s    r    Úall_proberszControlDirFormat.all_probersÁ  s
   € àŒ~Ðr!   c                 ó†   — g }|                       ¦   «         D ])}|                     |                     ¦   «         ¦  «         Œ*|S )z&Return all the known formats.
        )r­  rî   Úknown_formats)rå   r   Ú
prober_klss      r    r¯  zControlDirFormat.known_formatsÅ  sJ   € ð ˆØ×+Ò+Ñ-Ô-ð 	6ð 	6ˆJØ�MŠM˜*×2Ò2Ñ4Ô4Ñ5Ô5Ð5Ð5Øˆr!   r   r  c                 óþ   ‡— |€&t          |                      ¦   «         ˆfd„¬¦  «        }|D ]8} |¦   «         }	 |                     ‰¦  «        c S # t          j        $ r Y Œ5w xY wt          j        ‰j        ¬¦  «        ‚)z'Return the format present at transport.Nc                 ó.   •— |                       ‰¦  «        S r0   )Úpriority)r¡  r   s    €r    ú<lambda>z.ControlDirFormat.find_format.<locals>.<lambda>Ö  s   ø€  6§?¢?°9Ñ#=Ô#=€ r!   )Úkeyr"  )rã   r­  Úprobe_transportr   rX   r=   )rå   r   r  r°  r¡  s    `   r    r  zControlDirFormat.find_formatÎ  s¯   ø€ ð
 ˆ?ÝØ×!Ò!Ñ#Ô#Ø=Ð=Ð=Ð=ð?ñ ?ô ?ˆGð "ð 	ð 	ˆJØ�Z‘\”\ˆFðØ×-Ò-¨iÑ8Ô8Ð8Ð8Ð8øÝÔ(ð ð ð à�ðøøøõ Ô#¨¬Ð8Ñ8Ô8Ð8s   ¹AÁA"Á!A"c                 óR   — |                       t          j        ||¦  «        ¦  «        S )a�  Create 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.
        )r4  rG   rÑ   )r   r   r„   s      r    Ú
initializezControlDirFormat.initializeà  s0   € ð ×+Ò+ÝÔ(¨Ð.AÑBÔBñDô Dð 	Dr!   c                 ó*   — t          | j        ¦  «        ‚)zAInitialize a new controldir in the base directory of a Transport.)r8   r4  ©r   r   s     r    r4  z(ControlDirFormat.initialize_on_transportí  rÍ   r!   c                 ó*   — t          | j        ¦  «        ‚)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.
        )r8   Úinitialize_on_transport_ex)r   r   rÔ   r¾   r    r±   Ústack_on_pwdÚrepo_format_namerý   Úshared_repoÚvfs_onlys              r    r¼  z+ControlDirFormat.initialize_on_transport_exñ  s   € õD " $Ô"AÑBÔBÐBr!   c                 ó*   — t          | j        ¦  «        ‚)a\  A 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.
        )r8   Únetwork_namer9   s    r    rÂ  zControlDirFormat.network_name  s   € õ " $Ô"3Ñ4Ô4Ð4r!   rL   c                 ó*   — t          | j        ¦  «        ‚)zKReturn an instance of this format for the dir transport points at.
        )r8   r  )r   r   r  s      r    r  zControlDirFormat.open  s   € õ " $¤)Ñ,Ô,Ð,r!   c                 ó   — || _         dS )z:Set default format (for testing behavior of defaults only)N©r“  )rå   r   s     r    Ú_set_default_formatz$ControlDirFormat._set_default_format$  s   € ð !'ˆÔÐÐr!   c                 ó   — | j         S )z"Return the current default format.rÅ  r¬  s    r    r3  z#ControlDirFormat.get_default_format)  s   € ð Ô$Ð$r!   c                 ó*   — t          | j        ¦  «        ‚)zHCheck if this format can be opened over a particular transport.
        )r8   Úsupports_transportrº  s     r    rÉ  z#ControlDirFormat.supports_transport.  s   € õ " $Ô"9Ñ:Ô:Ð:r!   c                 ó4   — t          t          j        ¦  «        ‚r^   )r8   rV  r_   )rå   r`   s     r    r_   z$ControlDirFormat.is_control_filename3  s   € õ "¥#Ô"9Ñ:Ô:Ð:r!   r0   rW  )	FFFNNNNFFr5  )&r#   r$   r%   rE   r“  r   rJ   r•  r   r   Úcolocated_branchesÚsupports_workingtreesÚfixed_componentsrM  rD  r˜  rG  r›  r  r   r8  r¤  r§  rª  r­  r¯  rG   rH   r  r¸  r4  r¼  rÂ  r  rÆ  r3  rÉ  r_   r'   r!   r    r  r  H  så  € € € € € € ðð ð* 59€O�XÐ0Ô1Ð8Ð8Ñ8Ø>à%'€Hˆd�4˜”>Ô"Ð'Ð'Ñ'ðð
 Ððð !Ððð Ððð  ÐØ=ð?ð ?ð ?ð6ð 6ð 6ð 6ðð ð ð#ð #ð #ð
 IMØ%)ð8ð 8ð 8ð 8ð(.ð .ð .ð ð& t¨H¤~ð &ð &ð &ñ „[ð&ð ð&¨¨h¬ð &ð &ð &ñ „[ð&ð6ð 6ð 6ð ð˜d 4¨¤>Ô2ð ð ð ñ „[ðð ðð ñ „[ðð à>Bð9ð 9 nÔ&>ð 9Ø% d¨4°¬>Ô&:Ô;ð9à+ð9ð 9ð 9ñ „[ð9ð"Dð Dð Dð Dð@ð @ð @ð FKØY]Ø`dØ?Dð"Cð "Cð "Cð "CðH5ð 5ð 5ð-ð -˜nÔ6ð -Èð -ð -ð -ð -ð
 ð'ð 'ñ „[ð'ð ð%ð %ñ „[ð%ð;ð ;ð ;ð
 ð;ð ;ñ „[ð;ð ;ð ;r!   r  c                   ól   — e Zd ZdZd	d„Zeded         fd„¦   «         Zedej	        de
fd„¦   «         ZdS )
r”  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.
    r5   r  c                 ó*   — t          | j        ¦  «        ‚)a  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.
        )r8   r¶  rº  s     r    r¶  zProber.probe_transportU  s   € õ " $Ô"6Ñ7Ô7Ð7r!   c                 ó*   — t          | j        ¦  «        ‚)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.
        )r8   r¯  r¬  s    r    r¯  zProber.known_formats_  s   € õ " %Ô"5Ñ6Ô6Ð6r!   r   c                 ó   — dS )a$  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
        r   r'   )rå   r   s     r    r³  zProber.priorityj  s	   € ð ˆqr!   N)r5   r  )r#   r$   r%   rE   r¶  r8  r	   r¯  rG   rH   Úintr³  r'   r!   r    r”  r”  E  s�   € € € € € ðð ð8ð 8ð 8ð 8ð ð7 Ð$6Ô 7ð 7ð 7ð 7ñ „[ð7ð ð >Ô#;ð Àð ð ð ñ „[ðð ð r!   r”  c                   ó   — e Zd Zd„ ZdS )ÚControlDirFormatInfoc                 ó>   — || _         || _        || _        || _        d S r0   )Ú
deprecatedÚnativeÚhiddenÚexperimental)r   r×  rÖ  rØ  rÙ  s        r    r   zControlDirFormatInfo.__init__|  s%   € Ø$ˆŒØˆŒØˆŒØ(ˆÔÐÐr!   N)r#   r$   r%   r   r'   r!   r    rÔ  rÔ  z  s#   € € € € € ð)ð )ð )ð )ð )r!   rÔ  c                   óZ   ‡ — e Zd ZdZˆ fd„Z	 	 dd„Zdd„Z	 	 dd„Zd„ Zd	„ Z	d
„ Z
d„ Zˆ xZS )ÚControlDirFormatRegistryzÐ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                 ón   •— t          ¦   «         | _        t          ¦   «                              ¦   «          dS )z"Create a ControlDirFormatRegistry.N)rQ   Ú_registration_orderr[  r   )r   r^  s    €r    r   z!ControlDirFormatRegistry.__init__Š  s+   ø€ å#'¡6¤6ˆÔ Ý‰Œ×ÒÑÔÐÐÐr!   TFc                 ó    — t           j                             | |||t          ||||¦  «        ¦  «         | j                             |¦  «         dS )a'  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Ô  rÝ  rä   )r   rµ  ÚfactoryÚhelpr×  rÖ  rØ  rÙ  s           r    r`  z!ControlDirFormatRegistry.register�  sY   € õ 	Ô×"Ò" 4¨¨g°tÝ#7¸À
ÈFÐT`Ñ#aÔ#añ	cô 	cð 	càÔ ×'Ò'¨Ñ,Ô,Ð,Ð,Ð,r!   c                 ó´   — |                       |¦  «        }t          j                             | ||t	          |j        |j        ||j        ¬¦  «        ¦  «         dS )z˜Register a format alias.

        Args:
          key: Alias name
          target: Target format
          hidden: Whether the alias is hidden
        )r×  rÖ  rØ  rÙ  N)Úget_infor   rß  Úregister_aliasrÔ  r×  rÖ  rÙ  )r   rµ  r  rØ  Úinfos        r    rä  z'ControlDirFormatRegistry.register_alias�  sk   € ð �}Š}˜VÑ$Ô$ˆÝÔ×(Ò(¨¨s°FÝ)=Ø48´KÈDÌOØ4:ÈÔIZð*\ñ *\ô *\ñ	]ô 	]ð 	]ð 	]ð 	]r!   c	                 ó¢   — t           j                             | ||||t          ||||¦  «        ¦  «         | j                             |¦  «         d S r0   )r   rß  Úregister_lazyrÔ  rÝ  rä   )	r   rµ  rk  rl  rá  r×  rÖ  rØ  rÙ  s	            r    rç  z&ControlDirFormatRegistry.register_lazy«  s[   € åÔ×'Ò'¨¨c°;ÀØ(,Õ.BÀ6È:ÐW]Ð_kÑ.lÔ.lñ	nô 	nð 	nàÔ ×'Ò'¨Ñ,Ô,Ð,Ð,Ð,r!   c                 ó2   — |                       d|¦  «         dS )zySet the 'default' key to be a clone of the supplied key.

        This method must be called once and only once.
        ÚdefaultN)rä  ©r   rµ  s     r    Úset_defaultz$ControlDirFormatRegistry.set_default±  s    € ð
 	×Ò˜I sÑ+Ô+Ð+Ð+Ð+r!   c                 óœ   — d| v r|                       d¦  «         |                      |¦  «          |                      d¦  «        ¦   «         }dS )z¡Set the FormatRegistry default and Repository default.

        This is a transitional method while Repository.set_default_format
        is deprecated.
        ré  N)rc  rë  r‘   )r   rµ  r   s      r    Úset_default_repositoryz/ControlDirFormatRegistry.set_default_repository¸  sR   € ð ˜ÐÐØ�KŠK˜	Ñ"Ô"Ð"Ø×Ò˜ÑÔÐØ$�—’˜)Ñ$Ô$Ñ&Ô&ˆˆˆr!   c                 ó<   —  |                       |¦  «        ¦   «         S r0   )r‘   rê  s     r    Úmake_controldirz(ControlDirFormatRegistry.make_controldirÃ  s   € Øˆt�xŠx˜‰}Œ}‰ŒÐr!   c                 ó`  — d}d }|                       d¦  «        }g }| j        D ]>}|dk    rŒ	|                       |¦  «        }||k    r|}Œ'|                     ||f¦  «         Œ?d„ }|�&| ||d|z  |                      d¦  «        ¦  «        z  }g }	g }
|D ]p\  }}|                      |¦  «        }|j        rŒ"|j        r|	                     ||f¦  «         ŒA|j        r|
                     ||f¦  «         Œ`| ||||¦  «        z  }Œq|dz  }d}t          |
¦  «        dk    r3|dz  }|
D ]*\  }}|                      |¦  «        }| ||||¦  «        z  }Œ+n|dz  }t          |	¦  «        dk    r3|d	z  }|	D ]*\  }}|                      |¦  «        }| ||||¦  «        z  }Œ+n|d
z  }|dz  }|dk    r|S |S )NrV   ré  c           	      ó~   — |j         rd|z   }d                     | t                               |ddd¬¦  «        ¦  «        S )Nz	(native) z	:{}:
{}

z    F)Úinitial_indentÚsubsequent_indentÚbreak_long_words)r×  r   ÚtextwrapÚfill)rµ  rá  rå  s      r    Úwrappedz4ControlDirFormatRegistry.help_topic.<locals>.wrappedÔ  sU   € ØŒ{ð *Ø" TÑ)�Ø!×(Ò(¨Ý%-§]¢]°4ÈØEKØDIð &3ñ &Kô &KñLô Lð Lr!   z(default) %sz8
See :doc:`formats-help` for more about storage formats.r   z'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_helprÝ  rä   rã  rØ  rÖ  rÙ  rÝ   )r   ÚtopicÚoutputÚdefault_realkeyÚdefault_helpÚ
help_pairsrµ  rá  r÷  Údeprecated_pairsÚexperimental_pairsrå  Úother_outputs                r    Ú
help_topicz#ControlDirFormatRegistry.help_topicÆ  s„  € ØˆØˆØ—}’} YÑ/Ô/ˆØˆ
ØÔ+ð 	/ð 	/ˆCØ�iÒÐØØ—=’= Ñ%Ô%ˆDØ�|Ò#Ð#Ø"%��à×!Ò! 3¨ +Ñ.Ô.Ð.Ð.ð	Lð 	Lð 	Lð Ð&Ø�g�g˜o¨~ÀÑ/LØ"Ÿmšm¨IÑ6Ô6ñ8ô 8ñ 8ˆFàÐØÐØ#ð 		3ð 		3‰IˆC�Ø—=’= Ñ%Ô%ˆDØŒ{ð 3ØØ”ð 3Ø ×'Ò'¨¨d¨Ñ4Ô4Ð4Ð4ØÔ"ð 3Ø"×)Ò)¨3°¨+Ñ6Ô6Ð6Ð6à˜'˜' # t¨TÑ2Ô2Ñ2��ØÐMÑMˆØˆÝÐ!Ñ"Ô" QÒ&Ð&ØÐGÑGˆLØ/ð 9ð 9‘	��TØ—}’} SÑ)Ô)�Ø  ¨¨T°4Ñ 8Ô 8Ñ8��ð9ð Ø<ñ=ˆLåÐÑ Ô  1Ò$Ð$ØÐGÑGˆLØ-ð 9ð 9‘	��TØ—}’} SÑ)Ô)�Ø  ¨¨T°4Ñ 8Ô 8Ñ8��ð9ð Ø<ñ=ˆLàØGñ	Hˆð �OÒ#Ð#ØÐàˆMr!   )TFFFr5  )r#   r$   r%   rE   r   r`  rä  rç  rë  rí  rï  r  r…  r†  s   @r    rÛ  rÛ  ƒ  sÒ   ø€ € € € € ðð ðð ð ð ð ð
 DIØ,1ð-ð -ð -ð -ð]ð ]ð ]ð ]ð IMØCHð-ð -ð -ð -ð,ð ,ð ,ð	'ð 	'ð 	'ðð ð ð<ð <ð <ð <ð <ð <ð <r!   rÛ  c                   ó$   — e Zd ZdZd„ Zd„ Zd„ ZdS )ÚRepoInitHookParamsa#  Object 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                 ó>   — || _         || _        || _        || _        dS )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)rj   r   r2   rd   )r   rj   r   r2   rd   s        r    r   zRepoInitHookParams.__init__  s$   € ð %ˆŒØˆŒØ$ˆŒØˆŒˆˆr!   c                 ó"   — | j         |j         k    S r0   )Ú__dict__)r   Úothers     r    Ú__eq__zRepoInitHookParams.__eq__  s   € ØŒ} ¤Ò.Ð.r!   c                 ó¤   — | j         r%d                     | j        j        | j         ¦  «        S d                     | j        j        | j        ¦  «        S )Nz<{} for {}>)rj   r   r^  r#   r2   r9   s    r    Ú__repr__zRepoInitHookParams.__repr__"  sV   € ØŒ?ð 	5Ø ×'Ò'¨¬Ô(?Ø$(¤Oñ5ô 5ð 5ð !×'Ò'¨¬Ô(?Ø$(¤Oñ5ô 5ð 5r!   N)r#   r$   r%   rE   r   r  r
  r'   r!   r    r  r    sK   € € € € € ð	ð 	ðð ð ð/ð /ð /ð5ð 5ð 5ð 5ð 5r!   r  c                 ó„   — t                                ¦   «         D ]%\  }} |¦   «                              | ¦  «        r dS Œ&dS )z2Check if filename is used for control directories.TF)Úformat_registryÚitemsr_   )r`   rµ  r   s      r    r_   r_   +  sR   € õ '×,Ò,Ñ.Ô.ð ð ‰ˆˆVØˆ6‰8Œ8×'Ò'¨Ñ1Ô1ð 	Ø�4�4ð	ð ˆur!   c                   ó>   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd
d„Z	 	 dd	„Z	dS )ÚRepositoryAcquisitionPolicya  Abstract 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                 ó0   — || _         || _        || _        dS )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_onr½  rš   s       r    r   z$RepositoryAcquisitionPolicy.__init__>  s!   € ð "ˆŒØ)ˆÔØ!1ˆÔÐÐr!   c                 ób  — | j         €dS | j        €| j         }nV	 t                               | j         | j        |j        ¦  «        }n)# t          j        $ r |                      ¦   «         }Y nw xY w	 |                     |¦  «         dS # t          j	        t          j        f$ r | j        r‚ Y dS w xY w)zApply any configuration data from this policy to the branch.

        Default implementation sets repository stacking.
        N)r  r  r’   Ú
rebase_urlrB   ÚInvalidRebaseURLsÚ_get_full_stack_onÚset_stacked_on_urlÚ_mod_branchÚUnstackableBranchFormatr   ÚUnstackableRepositoryFormatr  )r   r+   r  s      r    Úconfigure_branchz,RepositoryAcquisitionPolicy.configure_branchK  sê   € ð
 Œ>Ð!ØˆFØÔÐ%Ø”~ˆHˆHð5Ý#×.Ò.¨t¬~Ø/3Ô/AØ/5¬ñ@ô @��øõ Ô-ð 5ð 5ð 5Ø×2Ò2Ñ4Ô4���ð5øøøð	Ø×%Ò% hÑ/Ô/Ð/Ð/Ð/øÝÔ3ÝÔ2ð4ð 	ð 	ð 	àÔ%ð Øðð ð ð	øøøs#   š+A Á#A,Á+A,Á0B Â#B.Â-B.c                 ó"   — | j         duo| j        S )z-Return True if this policy requires stacking.N)r  r  r9   s    r    Úrequires_stackingz-RepositoryAcquisitionPolicy.requires_stackingb  s   € àŒ~ TÐ)ÐD¨dÔ.DÐDr!   c                 óz   — | j         €dS | j        €| j         S t                               | j        | j         ¦  «        S )z4Get a fully-qualified URL for the stack_on location.N)r  r  r’   Újoinr9   s    r    r  z.RepositoryAcquisitionPolicy._get_full_stack_onf  s9   € àŒ>Ð!Ø�4ØÔÐ%Ø”>Ð!å—=’= Ô!3°T´^ÑDÔDÐDr!   Nc                 óœ  — |                       ¦   «         }|€dS 	 t                               ||¬¦  «        }n# t          j        $ r Y dS w xY w	 |                     ¦   «         j        }n)# t          j        $ r |                     ¦   «         }Y nw xY w	 | 	                    |¦  «         d| _
        dS # t          j        $ r | j
        r‚ Y dS w xY w)z>Add a fallback to the supplied repository, if stacking is set.Nr,  T)r  rL   r  r   Ú	JailBreakr\   rj   rX   r†   Úadd_fallback_repositoryr  r  )r   rj   r„   r  Ústacked_dirÚstacked_repos         r    Ú_add_fallbackz)RepositoryAcquisitionPolicy._add_fallbacko  s   € à×*Ò*Ñ,Ô,ˆØÐØˆFð	Ý$Ÿ/š/ØÐ.Að *ñ Cô CˆKˆKøåÔð 	ð 	ð 	ð ˆFˆFð	øøøð	9Ø&×2Ò2Ñ4Ô4Ô?ˆLˆLøÝÔ$ð 	9ð 	9ð 	9Ø&×6Ò6Ñ8Ô8ˆLˆLˆLð	9øøøð	*Ø×.Ò.¨|Ñ<Ô<Ð<ð
 &*ˆDÔ"Ð"Ð"øõ	 Ô1ð 	ð 	ð 	ØÔ%ð Øðð ð ð	øøøs3   š7 ·A
Á	A
ÁA( Á(#BÂBÂB0 Â0CÃ
CFc                 ó4   — t          t          j        ¦  «        ‚)aµ  Acquire 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).
        )r8   r  Úacquire_repository)r   rý   rd   r„   s       r    r)  z.RepositoryAcquisitionPolicy.acquire_repository‡  s   € õ "Ý'Ô:ñ<ô <ð 	<r!   r0   )NFN)
r#   r$   r%   rE   r   r  r  r  r'  r)  r'   r!   r    r  r  6  s’   € € € € € ðð ð2ð 2ð 2ðð ð ð.Eð Eð EðEð Eð Eð*ð *ð *ð *ð0 BGØ/3ð<ð <ð <ð <ð <ð <r!   r  N)2Ú__docformat__Útypingr   r   r   r   r   r	   r
   r   r   ÚglobalsrV   r   r   r   r   r´   r   r   rG   r+   r   rj   r   Úworkingtreer   r   r   r)   r.   r4   rL   r6  r:  rC   ÚFormatRegistryrY  rˆ  r  r”  rÔ  rß  rI   rÛ  r  r_   r  r  Únetwork_format_registryr'   r!   r    ú<module>r0     s  ðð" €ðð OÐ NÐ NÐ NÐ NÐ NÐ NÐ NÐ NÐ NÐ NÐ NÐ NÐ NÐ NÐ NÐ NÐ NÐ NÐ Nà $Ð $Ð $Ð $Ð $Ð $Ø €ˆGˆG‰IŒIð 
ñ 
ô 
ð 
ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð )ØÐÐÐÐÐØ&Ð&Ð&Ð&Ð&Ð&Ø(Ð(Ð(Ð(Ð(Ð(ð?ð ?ð ?ð ?ð ?˜&œ/ñ ?ô ?ð ?ð6ð 6ð 6ð 6ð 6˜&œ/ñ 6ô 6ð 6ð%ð %ð %ð %ð %˜vœñ %ô %ð %ð &ð  &ð  &ð  &ð  &ñ  &ô  &ð  &ðF1ð 1ð 1ð 1ð 1Ð!ñ 1ô 1ð 1ðDð ð ð ð �e”kñ ô ð ð" #�?Ñ$Ô$€
Ô ð(9ð (9ð (9ð (9ð (9ñ (9ô (9ð (9ðV?ð ?ð ?ð ?ð ? XÔ%<Ð=SÔ%Tñ ?ô ?ð ?ðD8ð 8ð 8ð 8ð 8ñ 8ô 8ð 8ð"z;ð z;ð z;ð z;ð z;ñ z;ô z;ð z;ðz2ð 2ð 2ð 2ð 2ñ 2ô 2ð 2ðj)ð )ð )ð )ð )ñ )ô )ð )ðð ð ð ð ˜xÔ0°Ð6FÐ1FÔGñ ô ð ðD#5ð #5ð #5ð #5ð #5ñ #5ô #5ð #5ðLð ð ð`<ð `<ð `<ð `<ð `<ñ `<ô `<ð `<ðL +Ð*Ñ,Ô,€àC˜(Ô1Ð2BÔCÑEÔEÐ ðð r!   