§
    cÌcµÁ  ã                   óJ  — d dl mZ d dlmZmZmZ ddlmZ  e e¦   «         d¦  «         ddlm	Z	m
Z
 ddlmZ dd	lmZmZmZmZmZ dd
lmZmZmZmZmZ ddlmZ ddlmZ ddlmZm Z  ddl!m"Z" erddl#m$Z$  G d„ dee¦  «        Z% G d„ de%¦  «        Z& G d„ de&¦  «        Z' G d„ de'¦  «        Z( G d„ de	j)        e¦  «        Z* G d„ de*¦  «        Z+ G d„ de*¦  «        Z, G d„ de*¦  «        Z- G d „ d!e*¦  «        Z. G d"„ d#¦  «        Z/ G d$„ d%¦  «        Z0 G d&„ d'¦  «        Z1d(S ))é    )ÚBytesIO)ÚOptionalÚUnionÚTYPE_CHECKINGé   )Úlazy_importzª
from breezy import (
    cache_utf8,
    config as _mod_config,
    lockdir,
    shelf,
    ui,
    )
from breezy.bzr import (
    tag as _mod_tag,
    vf_search,
    )
é   )ÚbzrdirÚrio)ÚMetaDirRepository)ÚerrorsÚlockable_filesÚrevisionÚ	transportÚurlutils)ÚBranchÚBranchFormatÚBranchWriteLockResultÚformat_registryÚUnstackableBranchFormat)Ú
ControlDir)Úonly_raises)Ú_RelockDebugMixinÚLogicalLockResult)Úmutter)ÚRemoteRepositoryc            	       ó&  ‡ — e Zd ZU dZeedf         ed<   ej        ed<   e	de
j        fd„¦   «         Zdddd	œd
ej        dededej        fd„Zd„ ZeZd„ Z e	ed¬¦  «        Ze	d„ ¦   «         Zd„ Zd„ Zd„ Zd„ Zd„ Zdefd„Zd<d„Zd„ Z ee j!        e j"        ¦  «        d„ ¦   «         Z#d„ Z$d„ Z%d„ Z&d „ Z'd!„ Z(d"„ Z)d#„ Z*d$„ Z+d%„ Z,d&„ Z-d'„ Z.d<d(„Z/d)„ Z0d*„ Z1d<d+„Z2d,„ Z3d-„ Z4d.„ Z5d/„ Z6d0„ Z7ˆ fd1„Z8d=d3„Z9d<d4„Z:d<d5„Z;d<d6„Z<d7eddfd8„Z=d>d9„Z>d:„ Z?d>d;„Z@ˆ xZAS )?Ú	BzrBrancha�  A branch stored in the actual filesystem.

    Note that it's "local" in the context of the filesystem; it doesn't
    really matter if it's on an nfs/smb/afs/coda/... share, as long as
    it's writable, and can be accessed via the normal filesystem API.

    :ivar _transport: Transport for file operations on this branch's
        control files, typically pointing to the .bzr/branch directory.
    :ivar repository: Repository for this branch.
    :ivar base: The url of the base directory for this branch; the one
        containing the .bzr directory.
    :ivar name: Optional colocated branch name as it exists in the control
        directory.
    r   Ú
repositoryÚ
controldirÚreturnc                 ó   — | j         S ©N)Ú
_transport©Úselfs    ú3/usr/lib/python3/dist-packages/breezy/bzr/branch.pyÚcontrol_transportzBzrBranch.control_transportT   s
   € àŒÐó    NF)Ú_formatÚignore_fallbacksÚpossible_transportsÚa_controldirÚnameÚ_repositoryÚ_control_filesc                óz  — || _         | j         j                             d¦  «        | _        |dk    r-| j                             dt          j        |¦  «        ¦  «         | j        j        | _        || _	        || _
        || _        |j        | _        || _        d| _        t          j        | |¦  «         d| _        dS )z2Create new branch object at a particular location.z..Ú ÚbranchN)r    r   ÚcloneÚ_user_transportÚset_segment_parameterr   ÚescapeÚbaseÚ_baser.   r*   Úcontrol_filesr$   r   Ú
conf_storer   Ú__init__Ú_tags_bytes)r&   r-   r.   r/   r0   r*   r+   r,   s           r'   r<   zBzrBranch.__init__X   sµ   € ð 'ˆŒØ#œÔ8×>Ò>¸tÑDÔDˆÔØ�2Š:ˆ:ØÔ ×6Ò6Ø�(œ/¨$Ñ/Ô/ñ1ô 1ð 1àÔ)Ô.ˆŒ
ØˆŒ	ØˆŒØ+ˆÔØ(Ô3ˆŒØ%ˆŒØˆŒÝŒ˜Ð1Ñ2Ô2Ð2ØˆÔÐÐr)   c                 óL   — d                      | j        j        | j        ¦  «        S )Nz{}({}))ÚformatÚ	__class__Ú__name__Úuser_urlr%   s    r'   Ú__str__zBzrBranch.__str__n   s   € Ø�Š˜tœ~Ô6¸¼ÑFÔFÐFr)   c                 ó   — | j         S )z7Returns the directory containing the control directory.)r9   r%   s    r'   Ú	_get_basezBzrBranch._get_bases   s
   € àŒzÐr)   z$The URL for the root of this branch.)Údocc                 ó   — | j         S r#   )r5   r%   s    r'   Úuser_transportzBzrBranch.user_transporty   s   € àÔ#Ð#r)   c                 óB   — t                                | j        d¦  «        S )zþGet the concrete config for just the config in this branch.

        This is not intended for client use; see Branch.get_config for the
        public API.

        Added in 1.14.

        :return: An object supporting get_option and set_option.
        úbranch.conf)Ú_mod_configÚTransportConfigr$   r%   s    r'   Ú_get_configzBzrBranch._get_config}   s   € õ ×*Ò*¨4¬?¸MÑJÔJÐJr)   c                 ó\   — | j         €t                               | ¦  «        | _         | j         S r#   )r;   rK   ÚBranchStorer%   s    r'   Ú_get_config_storezBzrBranch._get_config_store‰   s'   € ØŒ?Ð"Ý)×5Ò5°dÑ;Ô;ˆDŒOØŒÐr)   c                 ó6   — |                       ¦   «         }|�|S | S )z7Return the branch that may contain uncommitted changes.)Úget_master_branch©r&   Úmasters     r'   Ú_uncommitted_branchzBzrBranch._uncommitted_branchŽ   s#   € à×'Ò'Ñ)Ô)ˆØÐØˆMàˆKr)   c                 ó\  — |                       ¦   «         }|€|j                             d¦  «         dS |j                             d¦  «        rt          j        ‚t          ¦   «         }|                     |¦  «         |                     d¦  «         |j         	                    d|¦  «         dS )züStore uncommitted changes from a ShelfCreator.

        :param creator: The ShelfCreator containing uncommitted changes, or
            None to delete any stored changes.
        :raises: ChangesAlreadyStored if the branch already has changes.
        Nústored-transformr   )
rU   r$   ÚdeleteÚhasr   ÚChangesAlreadyStoredr   Úwrite_shelfÚseekÚput_file)r&   Úcreatorr3   Ú	transforms       r'   Ústore_uncommittedzBzrBranch.store_uncommitted–   s©   € ð ×)Ò)Ñ+Ô+ˆØˆ?ØÔ×$Ò$Ð%7Ñ8Ô8Ð8ØˆFØÔ× Ò Ð!3Ñ4Ô4ð 	.ÝÔ-Ð-Ý‘I”Iˆ	Ø×Ò˜IÑ&Ô&Ð&Ø�Š�qÑÔÐØÔ×"Ò"Ð#5°yÑAÔAÐAÐAÐAr)   c                 óÎ   — |                       ¦   «         }	 |j                             d¦  «        }n# t          j        $ r Y dS w xY wt
          j                             ||¦  «        S )z½Return a shelf.Unshelver for this branch and tree.

        :param tree: The tree to use to construct the Unshelver.
        :return: an Unshelver or None if no changes are stored.
        rW   N)rU   r$   ÚgetÚ_mod_transportÚ
NoSuchFileÚshelfÚ	UnshelverÚfrom_tree_and_shelf)r&   Útreer3   r_   s       r'   Úget_unshelverzBzrBranch.get_unshelver¨   sp   € ð ×)Ò)Ñ+Ô+ˆð	ØÔ)×-Ò-Ð.@ÑAÔAˆIˆIøÝÔ(ð 	ð 	ð 	Ø�4�4ð	øøøåŒ×2Ò2°4¸ÑCÔCÐCs   –1 ±AÁAc                 ó4   — | j                              ¦   «         S r#   )r:   Ú	is_lockedr%   s    r'   rk   zBzrBranch.is_lockedµ   s   € ØÔ!×+Ò+Ñ-Ô-Ð-r)   c                 óv  — |                       ¦   «         sK|                      d¦  «         | j                             | ¦  «         | j                             ¦   «          d}nd}	 t          | j        | j                             |¬¦  «        ¦  «        S # t          $ r |r| j                             ¦   «          ‚ w xY w)z¿Lock the branch for write operations.

        :param token: A token to permit reacquiring a previously held and
            preserved lock.
        :return: A BranchWriteLockResult.
        ÚwTF©Útoken)	rk   Ú
_note_lockr   Ú_warn_if_deprecatedÚ
lock_writer   Úunlockr:   ÚBaseException)r&   ro   Ú	took_locks      r'   rr   zBzrBranch.lock_write¸   sÍ   € ð �~Š~ÑÔð 	Ø�OŠO˜CÑ Ô Ð ØŒO×/Ò/°Ñ5Ô5Ð5ØŒO×&Ò&Ñ(Ô(Ð(ØˆIˆIàˆIð	Ý(Ø”ØÔ"×-Ò-°EÐ-Ñ:Ô:ñ<ô <ð <øõ ð 	ð 	ð 	Øð )Ø”×&Ò&Ñ(Ô(Ð(Øð	øøøs   Á#-B Â'B8c                 ót  — |                       ¦   «         sK|                      d¦  «         | j                             | ¦  «         | j                             ¦   «          d}nd}	 | j                             ¦   «          t          | j        ¦  «        S # t          $ r |r| j                             ¦   «          ‚ w xY w)z`Lock the branch for read operations.

        :return: A breezy.lock.LogicalLockResult.
        ÚrTF)	rk   rp   r   rq   Ú	lock_readr:   r   rs   rt   )r&   ru   s     r'   rx   zBzrBranch.lock_readÏ   sÂ   € ð
 �~Š~ÑÔð 	Ø�OŠO˜CÑ Ô Ð ØŒO×/Ò/°Ñ5Ô5Ð5ØŒO×%Ò%Ñ'Ô'Ð'ØˆIˆIàˆIð	ØÔ×(Ò(Ñ*Ô*Ð*Ý$ T¤[Ñ1Ô1Ð1øÝð 	ð 	ð 	Øð )Ø”×&Ò&Ñ(Ô(Ð(Øð	øøøs   Á#,B Â'B7c                 óÂ  — | j         j        dk    r | j        �| j                             ¦   «          	 | j                              ¦   «          | j                              ¦   «         s/| j                             ¦   «          |                      ¦   «          d S d S # | j                              ¦   «         s.| j                             ¦   «          |                      ¦   «          w w xY w)Nr	   )r:   Ú_lock_countr;   Úsave_changesrs   rk   r   Ú_clear_cached_stater%   s    r'   rs   zBzrBranch.unlockã   sÝ   € àÔÔ)¨QÒ.Ð.°4´?Ð3NØŒO×(Ò(Ñ*Ô*Ð*ð	+ØÔ×%Ò%Ñ'Ô'Ð'àÔ%×/Ò/Ñ1Ô1ð +Ø”×&Ò&Ñ(Ô(Ð(à×(Ò(Ñ*Ô*Ð*Ð*Ð*ð+ð +ø�4Ô%×/Ò/Ñ1Ô1ð +Ø”×&Ò&Ñ(Ô(Ð(à×(Ò(Ñ*Ô*Ð*Ð*ð+øøøs   ²B ÂA	Cc                 ó>   — | j         j        dk    rd S | j         j        S )Nr   )r:   rz   Ú
_lock_moder%   s    r'   Úpeek_lock_modezBzrBranch.peek_lock_modeï   s$   € ØÔÔ)¨QÒ.Ð.Ø�4àÔ%Ô0Ð0r)   c                 ó4   — | j                              ¦   «         S r#   )r:   Úget_physical_lock_statusr%   s    r'   r�   z"BzrBranch.get_physical_lock_statusõ   s   € ØÔ!×:Ò:Ñ<Ô<Ð<r)   c                 óø  — |rt          |t          ¦  «        st          j        || ¬¦  «        ‚|                      ¦   «         5  |                      ¦   «         \  }}|                      ¦   «         r|                      |¦  «         |                      ||¦  «         |  	                    ||¦  «         |  
                    ¦   «          ||f| _        |                      ||¦  «         d d d ¦  «         d S # 1 swxY w Y   d S )N)Úrevision_idr3   )Ú
isinstanceÚbytesr   ÚInvalidRevisionIdrr   Úlast_revision_infoÚget_append_revisions_onlyÚ_check_history_violationÚ _run_pre_change_branch_tip_hooksÚ_write_last_revision_infor|   Ú_last_revision_info_cacheÚ!_run_post_change_branch_tip_hooks)r&   Úrevnorƒ   Ú	old_revnoÚ	old_revids        r'   Úset_last_revision_infoz BzrBranch.set_last_revision_infoø   sa  € Øð 	6¥*¨[½%Ñ"@Ô"@ð 	6ÝÔ*Ø'°ð6ñ 6ô 6ð 6à�_Š_ÑÔð 	Ið 	IØ#'×#:Ò#:Ñ#<Ô#<Ñ ˆI�yØ×-Ò-Ñ/Ô/ð ;Ø×-Ò-¨kÑ:Ô:Ð:Ø×1Ò1°%¸ÑEÔEÐEØ×*Ò*¨5°+Ñ>Ô>Ð>Ø×$Ò$Ñ&Ô&Ð&Ø-2°KÐ-?ˆDÔ*Ø×2Ò2°9¸iÑHÔHÐHð	Ið 	Ið 	Iñ 	Iô 	Ið 	Ið 	Ið 	Ið 	Ið 	Ið 	Ið 	Iøøøð 	Ið 	Ið 	Ið 	Ið 	Ið 	Is   ÁB C/Ã/C3Ã6C3c                 óZ   — | j                              |                      ¦   «         ¦  «        S )zSee Branch.basis_tree.)r   Úrevision_treeÚlast_revisionr%   s    r'   Ú
basis_treezBzrBranch.basis_tree  s$   € àŒ×,Ò,¨T×-?Ò-?Ñ-AÔ-AÑBÔBÐBr)   c                 óÊ   — g d¢}|D ][}	 | j                              |¦  «        }|                     d¦  «                             d¦  «        c S # t          j        $ r Y ŒXw xY wd S )N)ÚparentÚpullzx-pulló   
úutf-8)r$   Ú	get_bytesÚstripÚdecoderc   rd   )r&   Ú_locsÚlÚcontentss       r'   Ú_get_parent_locationzBzrBranch._get_parent_location
  sŠ   € Ø,Ð,Ð,ˆØð 	=ð 	=ˆAð=Øœ?×4Ò4°QÑ7Ô7�ð  —~’~ eÑ,Ô,×3Ò3°GÑ<Ô<Ð<Ð<Ð<øõ "Ô,ð ð ð Ø�ðøøøð ˆts   ŠAÁA ÁA c                 ó6   — t          | j        | j        ¦  «        ‚r#   ©r   r*   rB   r%   s    r'   Úget_stacked_on_urlzBzrBranch.get_stacked_on_url  ó   € Ý% d¤l°D´MÑBÔBÐBr)   c                 ón   — |                       ¦   «                              d|t          j        ¬¦  «         dS )úSee Branch.set_push_location.Úpush_location)ÚstoreN)Ú
get_configÚset_user_optionrK   ÚSTORE_LOCATION_NORECURSE©r&   Úlocations     r'   Úset_push_locationzBzrBranch.set_push_location  s>   € à�ŠÑÔ×)Ò)Ø˜XÝÔ6ð 	*ñ 	8ô 	8ð 	8ð 	8ð 	8r)   c                 ó  — |€| j                              d¦  «         d S t          |t          ¦  «        r|                     d¦  «        }| j                              d|dz   | j                             ¦   «         ¬¦  «         d S )Nr—   rš   r™   ©Úmode)r$   rX   r„   ÚstrÚencodeÚ	put_bytesr    Ú_get_file_mode©r&   Úurls     r'   Ú_set_parent_locationzBzrBranch._set_parent_location  s�   € Øˆ;ØŒO×"Ò" 8Ñ,Ô,Ð,Ð,Ð,å˜#�sÑ#Ô#ð *Ø—j’j Ñ)Ô)�ØŒO×%Ò% h°°e±Ø+/¬?×+IÒ+IÑ+KÔ+Kð &ñ Mô Mð Mð Mð Mr)   c                 óˆ   — |                       ¦   «         5  |                      d¦  «        cddd¦  «         S # 1 swxY w Y   dS )zIf bound, unbindN)rr   Úset_bound_locationr%   s    r'   ÚunbindzBzrBranch.unbind'  s‡   € à�_Š_ÑÔð 	1ð 	1Ø×*Ò*¨4Ñ0Ô0ð	1ð 	1ð 	1ð 	1ñ 	1ô 	1ð 	1ð 	1ð 	1ð 	1ð 	1ð 	1øøøð 	1ð 	1ð 	1ð 	1ð 	1ð 	1ó   •7·;¾;c                 ó”   — |                       ¦   «         5  |                      |j        ¦  «         ddd¦  «         dS # 1 swxY w Y   dS )a—  Bind this branch to the branch other.

        This does not push or pull data between the branches, though it does
        check for divergence to raise an error when the branches are not
        either the same, or one a prefix of the other. That behaviour may not
        be useful, so that check may be removed in future.

        :param other: The branch to bind to
        :type other: Branch
        N)rr   r»   r8   )r&   Úothers     r'   ÚbindzBzrBranch.bind,  sŽ   € ð. �_Š_ÑÔð 	0ð 	0Ø×#Ò# E¤JÑ/Ô/Ð/ð	0ð 	0ð 	0ñ 	0ô 	0ð 	0ð 	0ð 	0ð 	0ð 	0ð 	0ð 	0øøøð 	0ð 	0ð 	0ð 	0ð 	0ð 	0s   •=½AÁAc                 óš   — 	 | j                              d¦  «        d d…                              d¦  «        S # t          j        $ r Y d S w xY w)NÚboundéÿÿÿÿrš   )r$   r›   r�   rc   rd   r%   s    r'   Úget_bound_locationzBzrBranch.get_bound_locationF  sY   € ð	Ø”?×,Ò,¨WÑ5Ô5°c°r°cÔ:×AÒAÀ'ÑJÔJÐJøÝÔ(ð 	ð 	ð 	Ø�4�4ð	øøøs   ‚47 ·A
Á	A
c                 ó®   — |                       ¦   «         5  | j        €|                      |¦  «        | _        | j        cddd¦  «         S # 1 swxY w Y   dS )zVReturn the branch we are bound to.

        :return: Either a Branch, or None
        N)rx   Ú_master_branch_cacheÚ_get_master_branch)r&   r,   s     r'   rR   zBzrBranch.get_master_branchL  s¢   € ð
 �^Š^ÑÔð 	-ð 	-ØÔ(Ð0Ø,0×,CÒ,CØ'ñ-)ô -)�Ô)àÔ,ð		-ð 	-ð 	-ð 	-ñ 	-ô 	-ð 	-ð 	-ð 	-ð 	-ð 	-ð 	-øøøð 	-ð 	-ð 	-ð 	-ð 	-ð 	-s   •(A
Á
AÁAc                 óÔ   — |                       ¦   «         }|sd S 	 t          j        ||¬¦  «        S # t          j        t          j        f$ r}t          j        | ||¦  «        |‚d }~ww xY w)N©r,   )rÄ   r   Úopenr   ÚNotBranchErrorÚConnectionErrorÚBoundBranchConnectionFailure)r&   r,   Ú	bound_locÚexcs       r'   rÇ   zBzrBranch._get_master_branchW  s�   € Ø×+Ò+Ñ-Ô-ˆ	Øð 	Ø�4ð	/Ý”;˜yØ3FðHñ Hô Hð HøåÔ%¥vÔ'=Ð>ð 	/ð 	/ð 	/ÝÔ5Ø�i ñ&ô &Ø+.ð/øøøøð	/øøøs   š0 °A'ÁA"Á"A'c                 ó   — |                       ¦   «         5  d| _        |rK| j                             d|                     d¦  «        dz   | j                             ¦   «         ¬¦  «         nK	 | j                             d¦  «         n!# t          j	        $ r Y ddd¦  «         dS w xY w	 ddd¦  «         dS 	 ddd¦  «         dS # 1 swxY w Y   dS )ziSet the target where this branch is bound to.

        :param location: URL to the target branch
        NrÂ   rš   r™   r±   FT)
rr   rÆ   r$   rµ   r´   r    r¶   rX   rc   rd   r­   s     r'   r»   zBzrBranch.set_bound_locationb  sj  € ð
 �_Š_ÑÔð 	ð 	Ø(,ˆDÔ%Øð 	Ø”×)Ò)Ø˜XŸ_š_¨WÑ5Ô5¸Ñ=Øœ×7Ò7Ñ9Ô9ð *ñ ;ô ;ð ;ð ;ð!Ø”O×*Ò*¨7Ñ3Ô3Ð3Ð3øÝ%Ô0ð !ð !ð !Ø ð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð!øøøàð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð;ð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s6   •ACÁ+BÂCÂB$ÂCÂ#B$Â$CÃCÃ
Cc                 óœ  — |                       ¦   «         5  |                      |¦  «        }|�†|                      ¦   «         }|                      |d¬¦  «         | j                             ¦   «                              ||                      ¦   «         ¦  «        r	 ddd¦  «         dS |cddd¦  «         S 	 ddd¦  «         dS # 1 swxY w Y   dS )z¤Synchronise this branch with the master branch if any.

        :return: None or the last_revision that was pivoted out during the
                 update.
        NT)Ú	overwrite)rr   rR   r”   r˜   r   Ú	get_graphÚis_ancestor)r&   r,   rT   Úold_tips       r'   ÚupdatezBzrBranch.updatet  sM  € ð �_Š_ÑÔð 		ð 		Ø×+Ò+Ð,?Ñ@Ô@ˆFØÐ!Ø×,Ò,Ñ.Ô.�Ø—	’	˜&¨D�	Ñ1Ô1Ð1Ø”?×,Ò,Ñ.Ô.×:Ò:Ø ×!3Ò!3Ñ!5Ô!5ñ7ô 7ð  àð		ð 		ð 		ñ 		ô 		ð 		ð 		ð 		ð ð		ð 		ð 		ð 		ñ 		ô 		ð 		ð 		ð ð		ð 		ð 		ñ 		ô 		ð 		ð 		ð 		ð 		ð 		ð 		ð 		øøøð 		ð 		ð 		ð 		ð 		ð 		s   •BCÂ%CÂ3CÃCÃCc                 óè   — | j                              d¦  «        }|                     d¦  «                             dd¦  «        \  }}t                               |¦  «        }t          |¦  «        }||fS )Núlast-revisionr™   ó    r	   )r$   r›   ÚrstripÚsplitÚ
cache_utf8Úget_cached_utf8Úint)r&   Úrevision_stringrŽ   rƒ   s       r'   Ú_read_last_revision_infoz"BzrBranch._read_last_revision_info…  sh   € Øœ/×3Ò3°OÑDÔDˆØ,×3Ò3°EÑ:Ô:×@Ò@ÀÀqÑIÔIÑˆˆ{Ý ×0Ò0°Ñ=Ô=ˆÝ�E‘
”
ˆØ�kÐ!Ð!r)   c                 ó|   — d||fz  }| j                              d|| j                             ¦   «         ¬¦  «         dS )z«Simply write out the revision id, with no checks.

        Use set_last_revision_info to perform this safely.

        Does not update the revision_history cache.
        s   %d %s
rØ   r±   N)r$   rµ   r    r¶   )r&   rŽ   rƒ   Ú
out_strings       r'   r‹   z#BzrBranch._write_last_revision_infoŒ  sV   € ð   5¨+Ð"6Ñ6ˆ
ØŒ×!Ò! /°:Ø'+¤×'EÒ'EÑ'GÔ'Gð 	"ñ 	Iô 	Ið 	Ið 	Ið 	Ir)   c                 óø   — |                       ¦   «         5  | j                             |¦  «         | j                             d| j                             ¦   «         ¦  «         ddd¦  «         dS # 1 swxY w Y   dS )zÏUpdate the feature flags for this branch.

        :param updated_flags: Dictionary mapping feature names to necessities
            A necessity can be None to indicate the feature should be removed
        r?   N)rr   r*   Ú_update_feature_flagsr(   rµ   Ú	as_string)r&   Úupdated_flagss     r'   Úupdate_feature_flagszBzrBranch.update_feature_flags—  s¼   € ð �_Š_ÑÔð 	4ð 	4ØŒL×.Ò.¨}Ñ=Ô=Ð=ØÔ"×,Ò,Ø˜$œ,×0Ò0Ñ2Ô2ñ4ô 4ð 4ð	4ð 	4ð 	4ñ 	4ô 	4ð 	4ð 	4ð 	4ð 	4ð 	4ð 	4ð 	4øøøð 	4ð 	4ð 	4ð 	4ð 	4ð 	4s   •AA/Á/A3Á6A3c                 ó¸   — |                       ¦   «         5  | j        €| j                             d¦  «        | _        | j        cddd¦  «         S # 1 swxY w Y   dS )aÏ  Get the bytes of a serialised tags dict.

        Note that not all branches support tags, nor do all use the same tags
        logic: this method is specific to BasicTags. Other tag implementations
        may use the same method name and behave differently, safely, because
        of the double-dispatch via
        format.make_tags->tags_instance->get_tags_dict.

        :return: The bytes of the tags file.
        :seealso: Branch._set_tags_bytes.
        NÚtags)rx   r=   r$   r›   r%   s    r'   Ú_get_tags_byteszBzrBranch._get_tags_bytes¢  sŸ   € ð �^Š^ÑÔð 	$ð 	$ØÔÐ'Ø#'¤?×#<Ò#<¸VÑ#DÔ#D�Ô ØÔ#ð	$ð 	$ð 	$ð 	$ñ 	$ô 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$øøøð 	$ð 	$ð 	$ð 	$ð 	$ð 	$s   •-AÁAÁAc                 ó¢   — |                       ¦   «         5  || _        | j                             d|¦  «        cddd¦  «         S # 1 swxY w Y   dS )zVMirror method for _get_tags_bytes.

        :seealso: Branch._get_tags_bytes.
        ré   N)rr   r=   r$   rµ   )r&   r…   s     r'   Ú_set_tags_byteszBzrBranch._set_tags_bytes³  s•   € ð
 �_Š_ÑÔð 	<ð 	<Ø$ˆDÔØ”?×,Ò,¨V°UÑ;Ô;ð	<ð 	<ð 	<ð 	<ñ 	<ô 	<ð 	<ð 	<ð 	<ð 	<ð 	<ð 	<øøøð 	<ð 	<ð 	<ð 	<ð 	<ð 	<s   •"AÁAÁAc                 óV   •— t          ¦   «                              ¦   «          d | _        d S r#   )Úsuperr|   r=   ©r&   r@   s    €r'   r|   zBzrBranch._clear_cached_state¼  s'   ø€ Ý‰Œ×#Ò#Ñ%Ô%Ð%ØˆÔÐÐr)   Tc                 ó¬   — ddl m} |                      ¦   «         5   || |¬¦  «        }|                      ¦   «         cddd¦  «         S # 1 swxY w Y   dS )z7Make sure the data stored in this branch is consistent.r	   )ÚBranchReconciler)ÚthoroughN)Ú	reconcilerñ   rr   )r&   rò   rñ   Ú
reconcilers       r'   ró   zBzrBranch.reconcileÀ  s¬   € à/Ð/Ð/Ð/Ð/Ð/Ø�_Š_ÑÔð 	*ð 	*Ø)Ð)¨$¸ÐBÑBÔBˆJØ×'Ò'Ñ)Ô)ð	*ð 	*ð 	*ð 	*ñ 	*ô 	*ð 	*ð 	*ð 	*ð 	*ð 	*ð 	*øøøð 	*ð 	*ð 	*ð 	*ð 	*ð 	*s   ›!A	Á	AÁAc                 ó6   — t          j        | j        | ¦  «        ‚)z4Set the branch location to use for a tree reference.)r   ÚUnsupportedOperationÚset_reference_info)r&   Úfile_idÚbranch_locationÚpaths       r'   r÷   zBzrBranch.set_reference_infoÇ  ó   € åÔ)¨$Ô*AÀ4ÑHÔHÐHr)   c                 ó6   — t          j        | j        | ¦  «        ‚)z;Get the tree_path and branch_location for a tree reference.)r   rö   Úget_reference_info)r&   rø   rú   s      r'   rý   zBzrBranch.get_reference_infoË  rû   r)   c                 ó‚  — 	 |                       |¦  «        d         }n# t          j        $ r d}Y nw xY w|€J	 t          j        | j        j                             |¦  «        |¬¦  «        S # t          j        $ r Y dS w xY wt          j	        t          j        t          j        | j        ¦  «        |¦  «        |¬¦  «        S )z¯Return the parent branch for a tree-reference.

        :param path: The path of the nested tree in the tree
        :return: A branch associated with the nested tree
        r   NrÉ   )rý   r   rö   r   Úopen_from_transportr    Úroot_transportr4   rË   rÊ   r   ÚjoinÚstrip_segment_parametersrB   )r&   rø   rú   r,   rù   s        r'   Úreference_parentzBzrBranch.reference_parentÏ  sì   € ð	#Ø"×5Ò5°gÑ>Ô>¸qÔAˆOˆOøÝÔ*ð 	#ð 	#ð 	#Ø"ˆOˆOˆOð	#øøøàÐ"ðÝÔ1Ø”OÔ2×8Ò8¸Ñ>Ô>Ø(;ð=ñ =ô =ð =øõ Ô(ð ð ð Ø�t�tðøøøåŒ{ÝŒMÝÔ1°$´-Ñ@Ô@À/ñSô Sà 3ð5ñ 5ô 5ð 	5s   ‚ ž2±2¸2A+ Á+A>Á=A>r¸   c                 ó  — | j                              ¦   «         st          | j         | j        ¦  «        ‚|                      ¦   «         5  |                      ¦   «          |s^	 |                      ¦   «          n3# t          j        t          t          j	        f$ r Y ddd¦  «         dS w xY w|  
                    ¦   «          n"|                      || j        j        g¬¦  «         |                      d|¦  «         ddd¦  «         dS # 1 swxY w Y   dS )zùSet the URL this branch is stacked against.

        :raises UnstackableBranchFormat: If the branch does not support
            stacking.
        :raises UnstackableRepositoryFormat: If the repository does not support
            stacking.
        NrÉ   Ústacked_on_location)r*   Úsupports_stackingr   rB   rr   Ú_check_stackable_repor¤   r   Ú
NotStackedÚUnstackableRepositoryFormatÚ_unstackÚ_activate_fallback_locationr    r   Ú_set_config_locationr·   s     r'   Úset_stacked_on_urlzBzrBranch.set_stacked_on_urlå  s¤  € ð Œ|×-Ò-Ñ/Ô/ð 	GÝ)¨$¬,¸¼ÑFÔFÐFØ�_Š_ÑÔð 	Bð 	Bð ×&Ò&Ñ(Ô(Ð(Øð 	OðØ×+Ò+Ñ-Ô-Ð-Ð-øÝÔ)Õ+BÝÔ:ð<ð ð ð àð	Bð 	Bð 	Bñ 	Bô 	Bð 	Bð 	Bð 	Bðøøøð —’‘”��à×0Ò0Ø¨d¬oÔ.LÐ-Mð 1ñ Oô Oð Oð ×%Ò%Ð&;¸SÑAÔAÐAð#	Bð 	Bð 	Bñ 	Bô 	Bð 	Bð 	Bð 	Bð 	Bð 	Bð 	Bð 	Bøøøð 	Bð 	Bð 	Bð 	Bð 	Bð 	Bs7   ÁDÁ A5Á4DÁ5!B%ÂDÂ$B%Â%ADÄDÄ	Dc                 óz   — | j         j        j        s)t          j        | j         j        | j         j        ¦  «        ‚d S r#   )r   r*   Úsupports_external_lookupsr   r	  rB   r%   s    r'   r  zBzrBranch._check_stackable_repo  sF   € ØŒÔ&Ô@ð 	CÝÔ4Ø”Ô'¨¬Ô)AñCô Cð Cð	Cð 	Cr)   c           	      ó:  — t           j                             ¦   «         5 }| j        }t	          |j        ¦  «        dk    rt          d|›d|j        ›d�¦  «        ‚t          j        | j	        j
        j        ¦  «        }|                     ¦   «         }|j        rt          d| j        ›d�¦  «        ‚|                     ¦   «         j        }|| _        | j                             |¬¦  «         |�|                     ¦   «          |                     ¦   «          |�| j                             ¦   «          d	}	 	 |                     ¦   «          n# t$          j        $ r Y n
w xY w|dz  }Œ1|d	k    rt          d¦  «        ‚t)          |dz
  ¦  «        D ]}| j                             ¦   «          Œ|                     ¦   «         5  	 t-          | j                             ¦   «         ¦  «        }n## t$          j        $ r t-          ¦   «         }Y nw xY wt4                               | j        ||                      ¦   «         g|d
¬¦  «                             ¦   «         }	| j                             ||	¬¦  «         ddd¦  «         n# 1 swxY w Y   ddd¦  «         dS # 1 swxY w Y   dS )z‚Change a branch to be unstacked, copying data as needed.

        Don't call this directly, use set_stacked_on_url(None).
        r	   z)can't cope with fallback repositories of z (fallbacks: ú)zdidn't expect z to have fallback_repositoriesrn   Nr   Tz5old_repository should have been locked at least once.)Úrequired_idsÚif_present_idsÚfind_ghosts)Ú
fetch_spec)ÚuiÚ
ui_factoryÚnested_progress_barr   ÚlenÚ_fallback_repositoriesÚAssertionErrorr   rÊ   r    r   r8   Úfind_repositoryrr   Úrepository_tokenÚleave_lock_in_placers   Údont_leave_lock_in_placer   ÚLockNotHeldÚrangerx   Úsetré   Úget_reverse_tag_dictÚTagsNotSupportedÚ	vf_searchÚNotInOtherForRevsr”   ÚexecuteÚfetch)
r&   ÚpbÚold_repositoryÚ
new_bzrdirÚnew_repositoryÚ
lock_tokenÚold_lock_countÚiÚtags_to_fetchr  s
             r'   r
  zBzrBranch._unstack  s¢  € õ
 Œ]×.Ò.Ñ0Ô0ð E	M°Bð "œ_ˆNÝ�>Ô8Ñ9Ô9¸QÒ>Ð>Ý$�nð '˜˜¨Ô(MÐ(MÐ(MðOñPô Pð Põ $œØ”Ô.Ô3ñ5ô 5ˆJà'×7Ò7Ñ9Ô9ˆNØÔ4ð *Ý$�nà”��ð)ñ*ô *ð *ð (×2Ò2Ñ4Ô4ÔEˆJØ,ˆDŒOØŒO×&Ò&¨ZÐ&Ñ8Ô8Ð8ØÐ%Ø×2Ò2Ñ4Ô4Ð4Ø×!Ò!Ñ#Ô#Ð#ØÐ%ð ”×8Ò8Ñ:Ô:Ð:ØˆNð$ðØ"×)Ò)Ñ+Ô+Ð+Ð+øÝÔ)ð ð ð Ø�Eðøøøà !Ñ#�ð$ð  Ò"Ð"Ý$ØKñMô Mð Må˜>¨AÑ-Ñ.Ô.ð -ð -�Ø”×*Ò*Ñ,Ô,Ð,Ð,à×)Ò)Ñ+Ô+ð Mð Mð*Ý$'¨¬	×(FÒ(FÑ(HÔ(HÑ$IÔ$I�M�MøÝÔ.ð *ð *ð *Ý$'¡E¤E�M�M�Mð*øøøå&×8Ò8Ø”O ^Ø"&×"4Ò"4Ñ"6Ô"6Ð!7Ø#0¸dð 9ñ Dô D÷ ELÂGÁIÄIð ð ”×%Ò% nÀÐ%ÑLÔLÐLðMð Mð Mñ Mô Mð Mð Mð Mð Mð Mð Møøøð Mð Mð Mð MðsE	Mð E	Mð E	Mñ E	Mô E	Mð E	Mð E	Mð E	Mð E	Mð E	Mð E	Mð E	Møøøð E	Mð E	Mð E	Mð E	Mð E	Mð E	Ms€   ŸDJÄ4E	ÅJÅ	EÅJÅEÅA JÆ;I8Æ=&G$Ç#I8Ç$HÈI8ÈHÈA(I8É,JÉ8I<	É<JÉ?I<	Ê JÊJÊJc                 óÂ   — | j                              ¦   «          | j                             ¦   «          |                      ¦   «         }|�|                     ¦   «          dS dS )zäBreak a lock if one is present from another instance.

        Uses the ui factory to ask for confirmation if the lock may be from
        an active process.

        This will probe the repository for its lock as well.
        N)r:   Ú
break_lockr   rR   rS   s     r'   r2  zBzrBranch.break_lockS  sd   € ð 	Ô×%Ò%Ñ'Ô'Ð'ØŒ×"Ò"Ñ$Ô$Ð$Ø×'Ò'Ñ)Ô)ˆØÐØ×ÒÑÔÐÐÐð Ðr)   r#   )T)r!   N)BrA   Ú
__module__Ú__qualname__Ú__doc__r   r   Ú__annotations__r
   ÚBzrDirÚpropertyrc   Ú	Transportr(   r³   r   ÚLockableFilesr<   rC   Ú__repr__rE   r8   rH   rM   rP   rU   r`   ri   Úboolrk   rr   rx   r   r   r   Ú
LockBrokenrs   r   r�   r‘   r•   r¡   r¤   r¯   r¹   r¼   rÀ   rÄ   rR   rÇ   r»   rÖ   rà   r‹   rç   rê   rì   r|   ró   r÷   rý   r  r  r  r
  r2  Ú__classcell__©r@   s   @r'   r   r   A   sÿ  ø€ € € € € € ðð ð Ð'Ð);Ð;Ô<Ð<Ð<Ñ<Ø”ÐÐÑàð >Ô#;ð ð ð ñ „Xðð Ø#(Ø%)ð ð  ð  ¨¬ð  ¸Sð  Ø/ð à!/Ô!=ð ð  ð  ð  ð,Gð Gð Gð €Hðð ð ð ˆ8�IÐ#IÐJÑJÔJ€Dàð$ð $ñ „Xð$ð
Kð 
Kð 
Kðð ð ð
ð ð ðBð Bð Bð$Dð Dð Dð.˜4ð .ð .ð .ð .ðð ð ð ð.ð ð ð( €[�Ô# VÔ%6Ñ7Ô7ð	+ð 	+ñ 8Ô7ð	+ð1ð 1ð 1ð=ð =ð =ðIð Ið IðCð Cð Cð	ð 	ð 	ðCð Cð Cð8ð 8ð 8ðMð Mð Mð1ð 1ð 1ð
0ð 0ð 0ð4ð ð ð	-ð 	-ð 	-ð 	-ð	/ð 	/ð 	/ðð ð ð$ð ð ð ð""ð "ð "ð	Ið 	Ið 	Ið	4ð 	4ð 	4ð$ð $ð $ð"<ð <ð <ð ð  ð  ð  ð  ð*ð *ð *ð *ðIð Ið Ið IðIð Ið Ið Ið5ð 5ð 5ð 5ð,B cð B¨dð Bð Bð Bð Bð:Cð Cð Cð Cð
JMð JMð JMðX ð  ð  ð  ð  ð  ð  ð  r)   r   c                   ó˜   ‡ — e Zd ZdZdd„Zˆ fd„Zˆ fd„Zd„ Zd„ Zd„ Z	d	„ Z
d
„ Zd„ Zdd„Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zdd„Zd„ Zˆ xZS )Ú
BzrBranch8z.A branch that stores tree-reference locations.Nc                 ó†  — | j         rd S |€| j        j        g}	 |                      ¦   «         }t          j        d         D ]A} || |¦  «        }|€1t          j                             |¦  «        }t          d|z  ¦  «        ‚ŒB|                      ||¬¦  «         d S # t          j
        t          j        t          f$ r Y d S w xY w)NÚtransform_fallback_locationz?'transform_fallback_location' hook %s returned None, not a URL.rÉ   )Ú_ignore_fallbacksr    r   r¤   r   ÚhooksÚget_hook_namer  r  r   r	  r  r   )r&   r,   r¸   ÚhookÚ	hook_names        r'   Ú
_open_hookzBzrBranch8._open_hooke  s  € ØÔ!ð 	ØˆFØÐ&Ø#'¤?Ô#AÐ"BÐð	>Ø×)Ò)Ñ+Ô+ˆCõ
 œÐ%BÔCð 8ð 8�Ø�d˜4 ‘o”o�Ø�;Ý &¤× :Ò :¸4Ñ @Ô @�IÝ(ð+Ø-6ñ7ñ8ô 8ð 8ð ð
 ×,Ò,ØÐ)<ð -ñ >ô >ð >ð >ð >øõ Ô2µFÔ4EÝ'ð)ð 	ð 	ð 	àˆDˆDð	øøøs   šB Â!C Â?C c                 óŒ   •— |                      dd¦  «        | _         t          ¦   «         j        |i |¤Ž d | _        d | _        d S )Nr+   F)rb   rD  rî   r<   rŒ   Ú_reference_info)r&   ÚargsÚkwargsr@   s      €r'   r<   zBzrBranch8.__init__z  sL   ø€ Ø!'§¢Ð,>ÀÑ!FÔ!FˆÔØ�‰ŒÔ˜$Ð) &Ð)Ð)Ð)Ø)-ˆÔ&Ø#ˆÔÐÐr)   c                 ód   •— t          ¦   «                              ¦   «          d | _        d | _        d S r#   )rî   r|   rŒ   rK  rï   s    €r'   r|   zBzrBranch8._clear_cached_state€  s/   ø€ Ý‰Œ×#Ò#Ñ%Ô%Ð%Ø)-ˆÔ&Ø#ˆÔÐÐr)   c                 óü   — |                       ¦   «         }t          j        |¦  «        rd S | j                             ¦   «         }|                     |¦  «        D ]}||k    r d S Œt          j        | j        ¦  «        ‚r#   )	r”   Ú_mod_revisionÚis_nullr   rÓ   Úiter_lefthand_ancestryr   ÚAppendRevisionsOnlyViolationrB   )r&   rƒ   r”   ÚgraphÚlh_ancestors        r'   r‰   z#BzrBranch8._check_history_violation…  s…   € Ø×*Ò*Ñ,Ô,ˆÝÔ  Ñ/Ô/ð 	ØˆFØ”×)Ò)Ñ+Ô+ˆØ ×7Ò7¸ÑDÔDð 	ð 	ˆKØ˜mÒ+Ð+Ø��ð ,åÔ1°$´-Ñ@Ô@Ð@r)   c                 ó¤   — |                       ¦   «         \  }}|                      |dz
  ¬¦  «         t          t          | j        ¦  «        ¦  «        S )z9Generate the revision history from last revision
        r	   ©Ú
stop_index)r‡   Ú_extend_partial_historyÚlistÚreversedÚ_partial_revision_history_cache)r&   Ú
last_revnor”   s      r'   Ú_gen_revision_historyz BzrBranch8._gen_revision_history�  sN   € ð %)×$;Ò$;Ñ$=Ô$=Ñ!ˆ
�MØ×$Ò$°
¸Q±Ð$Ñ?Ô?Ð?Ý•H˜TÔAÑBÔBÑCÔCÐCr)   c                 ó�   — |                       ¦   «         5  |                      d|d¬¦  «         ddd¦  «         dS # 1 swxY w Y   dS )úSet the parent branchÚparent_locationT)Úmake_relativeN)rr   r  r·   s     r'   r¹   zBzrBranch8._set_parent_location–  sš   € à�_Š_ÑÔð 	<ð 	<Ø×%Ò%Ø! 3°dð &ñ <ô <ð <ð	<ð 	<ð 	<ñ 	<ô 	<ð 	<ð 	<ð 	<ð 	<ð 	<ð 	<ð 	<øøøð 	<ð 	<ð 	<ð 	<ð 	<ð 	<s   •;»?Á?c                 óˆ   — |                       ¦   «         5  |                      d¦  «        cddd¦  «         S # 1 swxY w Y   dS )r`  ra  N)rx   Ú_get_config_locationr%   s    r'   r¡   zBzrBranch8._get_parent_locationœ  sœ   € à�^Š^ÑÔð 	@ð 	@Ø×,Ò,Ð->Ñ?Ô?ð	@ð 	@ð 	@ð 	@ñ 	@ô 	@ð 	@ð 	@ð 	@ð 	@ð 	@ð 	@øøøð 	@ð 	@ð 	@ð 	@ð 	@ð 	@r½   c                 óÌ  — t          ¦   «         }t          j        |¦  «        }|                     ¦   «         D ]K\  }\  }}t          j        ||¬¦  «        }|�|                     d|¦  «         |                     |¦  «         ŒL|                      ¦   «         5  | j         	                    d| 
                    ¦   «         ¦  «         || _        ddd¦  «         dS # 1 swxY w Y   dS )z„Replace all reference info stored in a branch.

        :param info_dict: A dict of {file_id: (branch_location, tree_path)}
        )rø   rù   NÚ	tree_pathÚ
references)r   r   Ú	RioWriterÚitemsÚStanzaÚaddÚwrite_stanzarr   r$   rµ   ÚgetvaluerK  )r&   Ú	info_dictÚsÚwriterrø   rù   rf  Ústanzas           r'   Ú_set_all_reference_infoz"BzrBranch8._set_all_reference_info¡  s*  € õ
 ‰IŒIˆÝ”˜qÑ!Ô!ˆØ5>·_²_Ñ5FÔ5Fð 	(ð 	(Ñ1ˆGÑ1�o yÝ”Z¨Ø0?ðAñ Aô AˆFàÐ$Ø—
’
˜;¨	Ñ2Ô2Ð2Ø×Ò Ñ'Ô'Ð'Ð'Ø�_Š_ÑÔð 	-ð 	-ØŒO×%Ò% l°A·J²J±L´LÑAÔAÐAØ#,ˆDÔ ð	-ð 	-ð 	-ñ 	-ô 	-ð 	-ð 	-ð 	-ð 	-ð 	-ð 	-ð 	-øøøð 	-ð 	-ð 	-ð 	-ð 	-ð 	-s   Â5CÃCÃ Cc                 óz  — |                       ¦   «         5  | j        �| j        cddd¦  «         S 	 | j                             d¦  «        5 }t	          j        |¦  «        }d„ |D ¦   «         }ddd¦  «         n# 1 swxY w Y   n# t          j        $ r i }Y nw xY w|| _        |cddd¦  «         S # 1 swxY w Y   dS )z~Return all the reference info stored in a branch.

        :return: A dict of {tree_path: (branch_location, file_id)}
        Nrg  c                 ón   — i | ]2}|d                                d¦  «        |d         d|v r|d         ndf“Œ3S )rø   rš   rù   rf  N)r´   )Ú.0ro  s     r'   ú
<dictcomp>z6BzrBranch8._get_all_reference_info.<locals>.<dictcomp>½  s`   € ð !*ð !*ð !*ð ð ˜)œ×+Ò+¨GÑ4Ô4ØÐ/Ô0Ø.9¸QÐ.>Ð.>˜A˜kœN˜NÀDð7Jð!*ð !*ð !*r)   )rx   rK  r$   rb   r   Úread_stanzasrc   rd   )r&   Úrio_fileÚstanzasrn  s       r'   Ú_get_all_reference_infoz"BzrBranch8._get_all_reference_info²  s�  € ð
 �^Š^ÑÔð 	ð 	ØÔ#Ð/ØÔ+ð	ð 	ð 	ð 	ñ 	ô 	ð 	ð 	ð	Ø”_×(Ò(¨Ñ6Ô6ð *¸(Ý!Ô.¨xÑ8Ô8�Gð!*ð !*ð ")ð	!*ñ !*ô !*�Ið*ð *ð *ñ *ô *ð *ð *ð *ð *ð *ð *øøøð *ð *ð *ð *øøõ "Ô,ð ð ð Ø�	�	�	ðøøøà#,ˆDÔ Øð	ð 	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	sX   •B0±BÁ!A8Á,BÁ8A<	Á<BÁ?A<	Â BÂB0ÂBÂB0ÂBÂB0Â0B4Â7B4c                 óp   — |                       ¦   «         }||f||<   |€||= |                      |¦  «         dS )a(  Set the branch location to use for a tree reference.

        :param branch_location: The location of the branch to retrieve tree
            references from.
        :param file_id: The file-id of the tree reference.
        :param tree_path: The path of the tree reference in the tree.
        N)rz  rr  )r&   rø   rù   rf  rn  s        r'   r÷   zBzrBranch8.set_reference_infoÇ  sL   € ð ×0Ò0Ñ2Ô2ˆ	Ø-¨yÐ9ˆ	�'ÑØÐ"Ø˜'Ð"Ø×$Ò$ YÑ/Ô/Ð/Ð/Ð/r)   c                 óR   — |                       ¦   «                              |d¦  «        S )z~Get the tree_path and branch_location for a tree reference.

        :return: a tuple of (branch_location, tree_path)
        ©NN)rz  rb   )r&   rø   s     r'   rý   zBzrBranch8.get_reference_infoÕ  s&   € ð
 ×+Ò+Ñ-Ô-×1Ò1°'¸<ÑHÔHÐHr)   c                 ó2   — |                       d|¦  «         dS )r§   r¨   N)r  r­   s     r'   r¯   zBzrBranch8.set_push_locationÜ  s   € à×!Ò! /°8Ñ<Ô<Ð<Ð<Ð<r)   c                 óú   — d| _         |                      ¦   «         }|€/|                     d¦  «        sdS |                     dd¦  «         dS |                      d||¬¦  «         |                     dd¦  «         dS )	r§   NrÂ   FÚFalseTÚbound_location©ÚconfigÚTrue)rÆ   Úget_config_stackrb   r"  r  )r&   r®   Úconfs      r'   r»   zBzrBranch8.set_bound_locationà  s‘   € à$(ˆÔ!Ø×$Ò$Ñ&Ô&ˆØÐØ—8’8˜GÑ$Ô$ð Ø�uà—’˜ 'Ñ*Ô*Ð*Ø�tà×%Ò%Ð&6¸Ø-1ð &ñ 3ô 3ð 3à�HŠH�W˜fÑ%Ô%Ð%Øˆtr)   c                 óŽ   — |                       ¦   «         }|                     d¦  «        |k    rdS |                      d|¬¦  «        S )zhReturn the bound location in the config file.

        Return None if the bound parameter does not matchrÂ   Nr�  r‚  )r…  rb   rd  )r&   rÂ   r†  s      r'   Ú_get_bound_locationzBzrBranch8._get_bound_locationð  sK   € ð ×$Ò$Ñ&Ô&ˆØ�8Š8�GÑÔ Ò%Ð%Ø�4Ø×(Ò(Ð)9À$Ð(ÑGÔGÐGr)   c                 ó,   — |                       d¦  «        S )zSee Branch.get_bound_location.T©rˆ  r%   s    r'   rÄ   zBzrBranch8.get_bound_locationù  s   € à×'Ò'¨Ñ-Ô-Ð-r)   c                 ó,   — |                       d¦  «        S )z!See Branch.get_old_bound_locationFrŠ  r%   s    r'   Úget_old_bound_locationz!BzrBranch8.get_old_bound_locationý  s   € à×'Ò'¨Ñ.Ô.Ð.r)   c                 ó”   — t                                | ¦  «        }|                      d|¬¦  «        }|€t          j        | ¦  «        ‚|S )Nr  r‚  )rK   ÚBranchOnlyStackrd  r   r  )r&   r†  Ústacked_urls      r'   r¤   zBzrBranch8.get_stacked_on_url  sT   € õ ×*Ò*¨4Ñ0Ô0ˆØ×/Ò/Ð0EØ7;ð 0ñ =ô =ˆàÐÝÔ# DÑ)Ô)Ð)àÐr)   c                 ó  — |dk    rt           j        S |                      ¦   «         5  |                      ¦   «         \  }}|dk    s||k    rt	          j        |d|f¦  «        ‚|�||dz
           cddd¦  «         S ||z
  }t          | j        ¦  «        |k    r|                      |¬¦  «         t          | j        ¦  «        |k    r| j        |         cddd¦  «         S t	          j	        | |¦  «        ‚# 1 swxY w Y   dS )z,Find the revision id of the specified revno.r   Nr	   rW  )
rP  ÚNULL_REVISIONrx   r‡   r   ÚRevnoOutOfBoundsr  r\  rY  ÚNoSuchRevision)r&   rŽ   Úhistoryr]  Úlast_revision_idÚindexs         r'   Ú
get_rev_idzBzrBranch8.get_rev_id  sr  € à�AŠ:ˆ:Ý Ô.Ð.à�^Š^ÑÔð 	9ð 	9Ø+/×+BÒ+BÑ+DÔ+DÑ(ˆJÐ(Ø˜Šzˆz˜U ZÒ/Ð/ÝÔ-¨e°a¸°_ÑEÔEÐEàÐ"Ø˜u q™yÔ)ð	9ð 	9ð 	9ð 	9ñ 	9ô 	9ð 	9ð 	9ð  Ñ&ˆEÝ�4Ô7Ñ8Ô8¸EÒAÐAØ×,Ò,¸Ð,Ñ>Ô>Ð>Ý�4Ô7Ñ8Ô8¸5Ò@Ð@ØÔ;¸EÔBð	9ð 	9ð 	9ð 	9ñ 	9ô 	9ð 	9ð 	9õ Ô+¨D°%Ñ8Ô8Ð8ð	9ð 	9ð 	9ð 	9øøøð 	9ð 	9ð 	9ð 	9ð 	9ð 	9s   §AC4Á;AC4ÃC4Ã4C8Ã;C8c                 óT  — t          j        |¦  «        rdS |                      ¦   «         5  	 | j                             |¦  «        }n²# t
          $ r¥ 	 |                      |¬¦  «         n2# t          j        $ r }t          j	        ||j
        ¦  «        |‚d}~ww xY wt          | j        ¦  «        dz
  }|dk     rt          j        | |¦  «        ‚| j        |         |k    rt          j        | |¦  «        ‚Y nw xY w|                      ¦   «         |z
  cddd¦  «         S # 1 swxY w Y   dS )z%Given a revision id, return its revnor   )Ústop_revisionNr	   )rP  rQ  rx   r\  r–  Ú
ValueErrorrY  r   ÚRevisionNotPresentÚGhostRevisionsHaveNoRevnorƒ   r  r“  rŽ   )r&   rƒ   r–  rÏ   s       r'   Úrevision_id_to_revnozBzrBranch8.revision_id_to_revno$  sŸ  € åÔ  Ñ-Ô-ð 	Ø�1Ø�^Š^ÑÔð 	(ð 	(ðCØÔ<×BÒBÀ;ÑOÔO��øÝð 
Cð 
Cð 
Cð?Ø×0Ò0¸{Ð0ÑKÔKÐKÐKøÝÔ0ð ?ð ?ð ?Ý Ô:Ø# S¤_ñ6ô 6Ø;>ð?øøøøð?øøøõ ˜DÔ@ÑAÔAÀAÑE�Ø˜1’9�9Ý Ô/°°kÑBÔBÐBØÔ7¸Ô>À+ÒMÐMÝ Ô/°°kÑBÔBÐBð NÐMð
Cøøøð —:’:‘<”< %Ñ'ð	(ð 	(ð 	(ð 	(ñ 	(ô 	(ð 	(ð 	(ð 	(ð 	(ð 	(ð 	(øøøð 	(ð 	(ð 	(ð 	(ð 	(ð 	(sY   «D­AÁDÁ
C7ÁA*Á)C7Á*BÁ9BÂBÂAC7Ã4DÃ6C7Ã7DÄD!Ä$D!r#   )rA   r3  r4  r5  rI  r<   r|   r‰   r^  r¹   r¡   rr  rz  r÷   rý   r¯   r»   rˆ  rÄ   rŒ  r¤   r—  r�  r>  r?  s   @r'   rA  rA  b  st  ø€ € € € € Ø8Ð8ð>ð >ð >ð >ð*$ð $ð $ð $ð $ð$ð $ð $ð $ð $ð
Að Að AðDð Dð Dð<ð <ð <ð@ð @ð @ð
-ð -ð -ð"ð ð ð*0ð 0ð 0ð 0ðIð Ið Ið=ð =ð =ðð ð ð Hð Hð Hð.ð .ð .ð/ð /ð /ðð ð ð9ð 9ð 9ð 9ð*(ð (ð (ð (ð (ð (ð (r)   rA  c                   ó$   ‡ — e Zd ZdZdˆ fd„	Zˆ xZS )Ú
BzrBranch7z0A branch with support for a fallback repository.Nc                 óÖ   •— t          ¦   «                              |||¦  «         t                               ¦   «         }t	          d|¦  «         | j                             d|¦  «         d S )NzUpgrading branch to format %rr?   )rî   r÷   ÚBzrBranchFormat8Úget_format_stringr   r$   rµ   )r&   rø   rù   rf  Úformat_stringr@   s        €r'   r÷   zBzrBranch7.set_reference_info<  sf   ø€ Ý‰Œ×"Ò"Ø�_ iñ	1ô 	1ð 	1å(×:Ò:Ñ<Ô<ˆÝÐ.°Ñ>Ô>Ð>ØŒ×!Ò! (¨MÑ:Ô:Ð:Ð:Ð:r)   r#   )rA   r3  r4  r5  r÷   r>  r?  s   @r'   rŸ  rŸ  9  sC   ø€ € € € € Ø:Ð:ð;ð ;ð ;ð ;ð ;ð ;ð ;ð ;ð ;ð ;r)   rŸ  c                   ó   — e Zd ZdZd„ ZdS )Ú
BzrBranch6zžSee BzrBranchFormat6 for the capabilities of this branch.

    This subclass of BzrBranch7 disables the new features BzrBranch7 added,
    i.e. stacking.
    c                 ó6   — t          | j        | j        ¦  «        ‚r#   r£   r%   s    r'   r¤   zBzrBranch6.get_stacked_on_urlK  r¥   r)   N)rA   r3  r4  r5  r¤   © r)   r'   r¥  r¥  D  s2   € € € € € ðð ðCð Cð Cð Cð Cr)   r¥  c                   ó†   — e Zd ZdZd„ Zedd„¦   «         Zd„ Zdd„Z	 	 dd„Z		 	 	 dd	„Z
ed
„ ¦   «         Zd„ Zd„ Z	 	 dd„ZdS )ÚBranchFormatMetadirzABase class for branch formats that live in meta directories.
    c                 ól   — t          j        | ¦  «         t          j                             | ¦  «         d S r#   )r   r<   r
   Ú	BzrFormatr%   s    r'   r<   zBranchFormatMetadir.__init__S  s0   € ÝÔ˜dÑ#Ô#Ð#ÝÔ×!Ò! $Ñ'Ô'Ð'Ð'Ð'r)   Nc                 ó\  — 	 |                      d|¬¦  «        }n.# t          j        $ r}t          j        ||¬¦  «        |‚d}~ww xY w	 |                     d¦  «        }n3# t          j        $ r!}t          j        |j        |¬¦  «        |‚d}~ww xY w|                      t          d|¦  «        S )z6Return the format for the branch object in controldir.N©r.   ©rú   r    r?   r3   )	Úget_branch_transportrc   rd   r   rË   r›   r8   Ú_find_formatr   )Úklassr    r.   r   rÏ   r£  s         r'   Úfind_formatzBranchFormatMetadir.find_formatW  sà   € ð	SØ"×7Ò7¸À4Ð7ÑHÔHˆIˆIøÝÔ(ð 	Sð 	Sð 	SÝÔ'¨T¸jÐIÑIÔIÈsÐRøøøøð	Søøøð	EØ%×/Ò/°Ñ9Ô9ˆMˆMøÝÔ(ð 	Eð 	Eð 	EÝÔ'Ø”^°
ð<ñ <ô <ØADðEøøøøð	Eøøøð ×!Ò!¥/°8¸]ÑKÔKÐKs,   ‚ šA©A Á AÁ	A ÁBÁ.B
Â
Bc                 ó*   — t          | j        ¦  «        ‚)z(What class to instantiate on open calls.)ÚNotImplementedErrorÚ_branch_classr%   s    r'   rµ  z!BranchFormatMetadir._branch_classe  s   € å! $Ô"4Ñ5Ô5Ð5r)   c                 ó   — |rdS dS )Ns   append_revisions_only = True
r)   r§  )r&   Úappend_revisions_onlys     r'   Ú_get_initial_configz'BranchFormatMetadir._get_initial_configi  s   € Ø ð 	Ø4Ð4ð �3r)   c                 ót  — |€|                      ¦   «         }t          d| |j        ¦  «         |                     | |¬¦  «        }t	          j        |dt          j        ¦  «        }|                     ¦   «          | 	                    ¦   «          	 |d|  
                    ¦   «         fgz  }|D ]/\  }}|                     |||                     ¦   «         ¬¦  «         Œ0	 |                     ¦   «          n# |                     ¦   «          w xY w|                      ||d|¬¦  «        }	|                      |||	¦  «         |	S )	aT  Initialize a branch in a control dir, with specified files

        :param a_controldir: The bzrdir to initialize the branch in
        :param utf8_files: The files to create as a list of
            (filename, content) tuples
        :param name: Name of colocated branch to create, if any
        :return: a branch in this format
        Nzcreating branch %r in %sr­  Úlockr?   r±   T)Ú_foundÚfound_repository)Ú_get_selected_branchr   rB   r¯  r   r:  ÚlockdirÚLockDirÚcreate_lockrr   rå   rµ   r¶   rs   rÊ   Ú_run_post_branch_init_hooks)
r&   r-   Ú
utf8_filesr.   r   Úbranch_transportr:   ÚfilenameÚcontentr3   s
             r'   Ú_initialize_helperz&BranchFormatMetadir._initialize_helperq  sh  € ð ˆ<Ø×4Ò4Ñ6Ô6ˆDÝÐ)¨4°Ô1FÑGÔGÐGØ'×<Ò<¸TÈÐ<ÑMÔMÐÝ&Ô4Ð5EØ5;½W¼_ñNô Nˆà×!Ò!Ñ#Ô#Ð#Ø× Ò Ñ"Ô"Ð"ð	#Ø˜H d§n¢nÑ&6Ô&6Ð7Ð8Ñ8ˆJØ'1ð 8ð 8Ñ#�˜7Ø ×*Ò*Ø˜gØ%×4Ò4Ñ6Ô6ð +ñ 8ô 8ð 8ð 8ð8ð
 × Ò Ñ"Ô"Ð"Ð"øˆM× Ò Ñ"Ô"Ð"Ð"øøøØ—’˜<¨°dØ,6ð ñ 8ô 8ˆà×(Ò(¨°t¸VÑDÔDÐDØˆs   ÂAC/ Ã/DFc           	      óþ  — |€|                      ¦   «         }|sAt                               ||¬¦  «        }|j        | j        k    rt	          d|›d| ›�¦  «        ‚|                     d|¬¦  «        }	 t          j        |dt          j	        ¦  «        }	|€| 
                    ¦   «         } |                      ¦   «         | |	|||||¬¦  «        S # t          j        $ r!}
t          j        |j        |¬¦  «        |
‚d}
~
ww xY w)zSee BranchFormat.open().Nr­  úwrong format ú found for rº  )r*   r0   r.   r-   r/   r+   r,   r®  )r½  r©  r²  r@   r  r¯  r   r:  r¾  r¿  r  rµ  rc   rd   r   rË   r8   )r&   r-   r.   r»  r+   r¼  r,   r?   r   r:   rÏ   s              r'   rÊ   zBranchFormatMetadir.open�  sF  € ð ˆ<Ø×4Ò4Ñ6Ô6ˆDØð 	5Ý(×4Ò4°\ÈÐ4ÑMÔMˆFØÔ 4¤>Ò1Ð1Ý$�nØ&, f f¨d¨dð&4ñ 5ô 5ð 5à ×5Ò5°dÀÐ5ÑFÔFˆ	ð	GÝ*Ô8¸ÀFÝ9@¼ñJô JˆMàÐ'Ø#/×#?Ò#?Ñ#AÔ#AÐ Ø'�4×%Ò%Ñ'Ô'Ø¨]ÀØ)Ð7GØ!1Ø$7ð	9ñ 9ô 9ð 9øõ
 Ô(ð 	Gð 	Gð 	GÝÔ'Ø”^°ð>ñ >ô >ØCFðGøøøøð	Gøøøs   Á2AC ÃC<ÃC7Ã7C<c                 óV   — t          j        ¦   «         }|                     | ¦  «         |S r#   )r
   ÚBzrDirMetaFormat1Úset_branch_format)r&   Úrets     r'   Ú_matchingcontroldirz'BranchFormatMetadir._matchingcontroldirª  s)   € åÔ&Ñ(Ô(ˆØ×Ò˜dÑ#Ô#Ð#Øˆ
r)   c                 ó   — dS ©NTr§  r%   s    r'   Úsupports_tagsz!BranchFormatMetadir.supports_tags°  ó   € Øˆtr)   c                 ó   — dS rÐ  r§  r%   s    r'   Úsupports_leaving_lockz)BranchFormatMetadir.supports_leaving_lock³  rÒ  r)   Tc                 ó|   — t          j        | |||¬¦  «         t          j                             | |||¬¦  «         d S )N)Úallow_unsupportedÚrecommend_upgradeÚbasedir)r   Úcheck_support_statusr
   r«  )r&   rÖ  r×  rØ  s       r'   rÙ  z(BranchFormatMetadir.check_support_status¶  sg   € åÔ)ØÐ$5Ø/¸ð	Bñ 	Bô 	Bð 	Bõ 	Ô×-Ò-ØÐ$5Ø/¸ð 	.ñ 	Bô 	Bð 	Bð 	Bð 	Br)   r#   r}  )NFFNN)TN)rA   r3  r4  r5  r<   Úclassmethodr²  rµ  r¸  rÆ  rÊ   r8  rÎ  rÑ  rÔ  rÙ  r§  r)   r'   r©  r©  O  s  € € € € € ðð ð(ð (ð (ð ðLð Lð Lñ „[ðLð6ð 6ð 6ðð ð ð ð AEØ&*ðð ð ð ð> 49Ø6:Ø!%ðGð Gð Gð Gð4 ðð ñ „Xðð
ð ð ðð ð ð IMØ%)ðBð Bð Bð Bð Bð Br)   r©  c                   óP   — e Zd ZdZd„ Zed„ ¦   «         Zd„ Z	 	 d
d„Zd„ Z	d„ Z
d	ZdS )ÚBzrBranchFormat6a7  Branch format with last-revision and tags.

    Unlike previous formats, this has no explicit revision history. Instead,
    this just stores the last-revision, and the left-hand history leading
    up to there is the history.

    This format was introduced in bzr 0.15
    and became the default in 0.91.
    c                 ó   — t           S r#   )r¥  r%   s    r'   rµ  zBzrBranchFormat6._branch_classË  ó   € ÝÐr)   c                 ó   — dS )ú%See BranchFormat.get_format_string().s"   Bazaar Branch Format 6 (bzr 0.15)
r§  ©Úclss    r'   r¢  z"BzrBranchFormat6.get_format_stringÎ  s
   € ð 6Ð5r)   c                 ó   — dS )ú*See BranchFormat.get_format_description().zBranch format 6r§  r%   s    r'   Úget_format_descriptionz'BzrBranchFormat6.get_format_descriptionÓ  ó   € à Ð r)   Nc                 óf   — dd|                       |¦  «        fdg}|                      ||||¦  «        S ©ú/Create a branch of this format in a_controldir.©rØ   s   0 null:
rJ   ©ré   r)   ©r¸  rÆ  ©r&   r-   r.   r   r·  rÂ  s         r'   Ú
initializezBzrBranchFormat6.initialize×  sK   € ð ,Ø˜D×4Ò4Ð5JÑKÔKÐLØðˆ
ð
 ×&Ò&Ø˜* d¨Jñ8ô 8ð 	8r)   c                 ó6   — t                                |¦  «        S ©z+See breezy.branch.BranchFormat.make_tags().©Ú_mod_tagÚ	BasicTags©r&   r3   s     r'   Ú	make_tagszBzrBranchFormat6.make_tagsâ  ó   € å×!Ò! &Ñ)Ô)Ð)r)   c                 ó   — dS rÐ  r§  r%   s    r'   Ú"supports_set_append_revisions_onlyz3BzrBranchFormat6.supports_set_append_revisions_onlyæ  rÒ  r)   T©NNN)rA   r3  r4  r5  rµ  rÚ  r¢  rå  rî  rõ  rø  Úsupports_reference_locationsr§  r)   r'   rÜ  rÜ  À  s–   € € € € € ðð ðð ð ð ð6ð 6ñ „[ð6ð!ð !ð !ð >BØ)-ð	8ð 	8ð 	8ð 	8ð*ð *ð *ðð ð ð $(Ð Ð Ð r)   rÜ  c                   óV   — e Zd ZdZd„ Zed„ ¦   «         Zd„ Z	 	 dd„Zd„ Z	d„ Z
d	„ Zd
ZdS )r¡  z@Metadir format supporting storing locations of subtree branches.c                 ó   — t           S r#   )rA  r%   s    r'   rµ  zBzrBranchFormat8._branch_classï  rÞ  r)   c                 ó   — dS )rà  s(   Bazaar Branch Format 8 (needs bzr 1.15)
r§  rá  s    r'   r¢  z"BzrBranchFormat8.get_format_stringò  s
   € ð <Ð;r)   c                 ó   — dS )rä  zBranch format 8r§  r%   s    r'   rå  z'BzrBranchFormat8.get_format_description÷  ræ  r)   Nc                 óh   — dd|                       |¦  «        fddg}|                      ||||¦  «        S )ré  rê  rJ   rë  )rg  r)   rì  rí  s         r'   rî  zBzrBranchFormat8.initializeû  sR   € ð 6Ø$Ø×2Ò2Ð3HÑIÔIðKà#Ø)ð	ˆ
ð ×&Ò&Ø˜* d¨Jñ8ô 8ð 	8r)   c                 ó6   — t                                |¦  «        S rð  rñ  rô  s     r'   rõ  zBzrBranchFormat8.make_tags  rö  r)   c                 ó   — dS rÐ  r§  r%   s    r'   rø  z3BzrBranchFormat8.supports_set_append_revisions_only  rÒ  r)   c                 ó   — dS rÐ  r§  r%   s    r'   r  z"BzrBranchFormat8.supports_stacking  rÒ  r)   Trù  )rA   r3  r4  r5  rµ  rÚ  r¢  rå  rî  rõ  rø  r  rú  r§  r)   r'   r¡  r¡  ì  s¡   € € € € € ØJÐJðð ð ð ð<ð <ñ „[ð<ð!ð !ð !ð >BØ)-ð
8ð 
8ð 
8ð 
8ð*ð *ð *ðð ð ðð ð ð $(Ð Ð Ð r)   r¡  c                   óV   — e Zd ZdZ	 	 dd„Zd„ Zed„ ¦   «         Zd„ Zd„ Z	d„ Z
d	„ Zd
ZdS )ÚBzrBranchFormat7a  Branch format with last-revision, tags, and a stacked location pointer.

    The stacked location pointer is passed down to the repository and requires
    a repository format with supports_external_lookups = True.

    This format was introduced in bzr 1.6.
    Nc                 óf   — dd|                       |¦  «        fdg}|                      ||||¦  «        S rè  rì  rí  s         r'   rî  zBzrBranchFormat7.initialize  sO   € ð 6Ø$Ø×2Ò2Ð3HÑIÔIðKà#ðˆ
ð
 ×&Ò&Ø˜* d¨Jñ8ô 8ð 	8r)   c                 ó   — t           S r#   )rŸ  r%   s    r'   rµ  zBzrBranchFormat7._branch_class(  rÞ  r)   c                 ó   — dS )rà  s'   Bazaar Branch Format 7 (needs bzr 1.6)
r§  rá  s    r'   r¢  z"BzrBranchFormat7.get_format_string+  s
   € ð ;Ð:r)   c                 ó   — dS )rä  zBranch format 7r§  r%   s    r'   rå  z'BzrBranchFormat7.get_format_description0  ræ  r)   c                 ó   — dS rÐ  r§  r%   s    r'   rø  z3BzrBranchFormat7.supports_set_append_revisions_only4  rÒ  r)   c                 ó   — dS rÐ  r§  r%   s    r'   r  z"BzrBranchFormat7.supports_stacking7  rÒ  r)   c                 ó6   — t                                |¦  «        S rð  rñ  rô  s     r'   rõ  zBzrBranchFormat7.make_tags:  rö  r)   Trù  )rA   r3  r4  r5  rî  rµ  rÚ  r¢  rå  rø  r  rõ  rú  r§  r)   r'   r  r    s¥   € € € € € ðð ð >BØ)-ð	8ð 	8ð 	8ð 	8ðð ð ð ð;ð ;ñ „[ð;ð!ð !ð !ðð ð ðð ð ð*ð *ð *ð $(Ð Ð Ð r)   r  c                   ób   — e Zd ZdZed„ ¦   «         Zd„ Zdd„Zd„ Zd„ Z		 	 dd„Z
d	„ Z	 	 	 dd„ZdS )ÚBranchReferenceFormatzèBzr branch reference format.

    Branch references are used in implementing checkouts, they
    act as an alias to the real branch which is at some other url.

    This format has:
     - A location file
     - a format string
    c                 ó   — dS )rà  s$   Bazaar-NG Branch Reference Format 1
r§  rá  s    r'   r¢  z'BranchReferenceFormat.get_format_stringN  s
   € ð 8Ð7r)   c                 ó   — dS )rä  zCheckout reference format 1r§  r%   s    r'   rå  z,BranchReferenceFormat.get_format_descriptionS  s   € à,Ð,r)   Nc                 óØ   — |                      d|¬¦  «        }t          j        |j        ¦  «        }t          j        ||                     d¦  «                             d¦  «        ¦  «        S )z!See BranchFormat.get_reference().Nr­  r®   rš   )r¯  r   r  rB   r  r›   r�   )r&   r-   r.   r   r¸   s        r'   Úget_referencez#BranchReferenceFormat.get_referenceW  se   € à ×5Ò5°dÀÐ5ÑFÔFˆ	ÝÔ/°Ô0EÑFÔFˆÝŒ}Ø�×$Ò$ ZÑ0Ô0×7Ò7¸Ñ@Ô@ñBô Bð 	Br)   c                 óf   — |j         }|                     d|                     d¦  «        ¦  «         d S )Nr®   rš   )rB   rµ   r´   )r&   r-   r   Ú	to_branchÚto_urls        r'   Ú_write_referencez&BranchReferenceFormat._write_reference^  s4   € ØÔ#ˆð 	×Ò˜J¨¯ª°gÑ(>Ô(>Ñ?Ô?Ð?Ð?Ð?r)   c                 ób   — |                      d|¬¦  «        }|                      |||¦  «         dS )z!See BranchFormat.set_reference().Nr­  )r¯  r  )r&   r-   r.   r  r   s        r'   Úset_referencez#BranchReferenceFormat.set_referenceh  s8   € à ×5Ò5°dÀÐ5ÑFÔFˆ	Ø×Ò˜l¨I°yÑAÔAÐAÐAÐAr)   c                 óö  — |€t          j        | ¦  «        ‚t          d|j        ¦  «         |j        j        rt          j        | |j        ¦  «        ‚|€|                     ¦   «         }|                     | |¬¦  «        }|  	                    |||¦  «         | 
                    d|                      ¦   «         ¦  «         |                      ||d|j        j        g¬¦  «        }|                      |||¦  «         |S )ré  Nzcreating branch reference in %sr­  r?   T)r»  r,   )r   ÚUninitializableFormatr   rB   r*   Úfixed_componentsÚIncompatibleFormatr½  r¯  r  rµ   rå   rÊ   r    r   rÁ  )r&   r-   r.   Útarget_branchr   r·  rÃ  r3   s           r'   rî  z BranchReferenceFormat.initializem  s  € ð Ð õ Ô.¨tÑ4Ô4Ð4ÝÐ0°,Ô2GÑHÔHÐHØÔÔ0ð 	HÝÔ+¨D°,Ô2FÑGÔGÐGØˆ<Ø×4Ò4Ñ6Ô6ˆDØ'×<Ò<¸TÈÐ<ÑMÔMÐØ×Ò˜lÐ,<¸mÑLÔLÐLØ×"Ò" 8¨T¯^ª^Ñ-=Ô-=Ñ>Ô>Ð>Ø—’˜<¨°dØ0=Ô0HÔ0WÐ/Xð ñ Zô Zˆà×(Ò(¨°t¸VÑDÔDÐDØˆr)   c                 ó   ‡ ‡— 	 	 dˆˆ fd„	}|S )z2Create a clone() routine for a branch dynamically.Nc                 ó4   •— ‰                      | ‰|¬¦  «        S )zSee Branch.clone().)r  r.   )rî  )Ú	to_bzrdirrƒ   Úrepository_policyr.   Útag_selectorÚa_branchr?   s        €€r'   r4   zCBranchReferenceFormat._make_reference_clone_function.<locals>.cloneƒ  s    ø€ ð ×$Ò$ Y¸hÈTÐ$ÑRÔRÐRr)   ©NNNNr§  )r?   r"  r4   s   `` r'   Ú_make_reference_clone_functionz4BranchReferenceFormat._make_reference_clone_function�  s;   øø€ àLPØ#ð	Sð 	Sð 	Sð 	Sð 	Sð 	Sð 	Sð ˆr)   Fc                 óv  — |€|                      ¦   «         }|sAt                               ||¬¦  «        }|j        | j        k    rt	          d|›d| ›�¦  «        ‚|€|                      ||¦  «        }t          j        ||¬¦  «        }	|	                     ||¬¦  «        }
|  	                    |
¦  «        |
_
        |
S )aÕ  Return the branch that the branch reference in a_controldir points at.

        :param a_controldir: A BzrDir that contains a branch.
        :param name: Name of colocated branch to open, if any
        :param _found: a private parameter, do not use it. It is used to
            indicate if format probing has already be done.
        :param ignore_fallbacks: when set, no fallback branches will be opened
            (if there are any).  Default is to open fallbacks.
        :param location: The location of the referenced branch.  If
            unspecified, this will be determined from the branch reference in
            a_controldir.
        :param possible_transports: An optional reusable transports list.
        Nr­  rÈ  rÉ  rÉ   )r+   r,   )r½  r©  r²  r@   r  r  r   rÊ   Úopen_branchr$  r4   )r&   r-   r.   r»  r®   r,   r+   r¼  r?   Úreal_bzrdirÚresults              r'   rÊ   zBranchReferenceFormat.openŒ  sá   € ð  ˆ<Ø×4Ò4Ñ6Ô6ˆDØð 	5Ý(×4Ò4°\ÈÐ4ÑMÔMˆFØÔ 4¤>Ò1Ð1Ý$�nØ&, f f¨d¨dð&4ñ 5ô 5ð 5àÐØ×)Ò)¨,¸Ñ=Ô=ˆHÝ ”oØÐ*=ð?ñ ?ô ?ˆà×(Ò(Ø-Ø 3ð )ñ 5ô 5ˆð ×:Ò:¸6ÑBÔBˆŒØˆr)   r#   r#  )NFNNFN)rA   r3  r4  r5  rÚ  r¢  rå  r  r  r  rî  r$  rÊ   r§  r)   r'   r  r  C  sÒ   € € € € € ðð ð ð8ð 8ñ „[ð8ð-ð -ð -ðBð Bð Bð Bð@ð @ð @ðBð Bð Bð
 AEØ:>ðð ð ð ð(	ð 	ð 	ð DHØ8=Ø"ð'ð 'ð 'ð 'ð 'ð 'r)   r  c                   ó   — e Zd ZdZd„ ZdS )ÚConverter5to6z3Perform an in-place upgrade of format 5 to format 6c                 ó¤  — t          ¦   «         }|                     |j        d¬¦  «        } |j        |                     ¦   «         Ž  |                     ¦   «         5  |                     |                     ¦   «         ¦  «         |                     | 	                    ¦   «         ¦  «         | 
                    |                     ¦   «         ¦  «         d d d ¦  «         n# 1 swxY w Y   |j                             i ¦  «         |j                             d|                     ¦   «         |j                             ¦   «         ¬¦  «         |j                             d¦  «         |                     ¦   «         5  	 |                     d ¦  «         n# t&          j        $ r Y nw xY w|                     d ¦  «         d d d ¦  «         d S # 1 swxY w Y   d S )NT)r»  r?   r±   zrevision-history)rÜ  rÊ   r    r‹   r‡   rr   Ú
set_parentÚ
get_parentr»   rÄ   r¯   Úget_push_locationré   Ú_set_tag_dictr$   rµ   rå   r¶   rX   rc   rd   )r&   r3   r?   Ú
new_branchs       r'   ÚconvertzConverter5to6.convert¹  s[  € å!Ñ#Ô#ˆØ—[’[ Ô!2¸4�[Ñ@Ô@ˆ
ð 	-ˆ
Ô,¨f×.GÒ.GÑ.IÔ.IÐJÐJØ×"Ò"Ñ$Ô$ð 	Eð 	EØ×!Ò! &×"3Ò"3Ñ"5Ô"5Ñ6Ô6Ð6Ø×)Ò)¨&×*CÒ*CÑ*EÔ*EÑFÔFÐFØ×(Ò(¨×)AÒ)AÑ)CÔ)CÑDÔDÐDð	Eð 	Eð 	Eñ 	Eô 	Eð 	Eð 	Eð 	Eð 	Eð 	Eð 	Eøøøð 	Eð 	Eð 	Eð 	Eð 	Œ×%Ò% bÑ)Ô)Ð)ð 	Ô×'Ò'Ø�f×&Ò&Ñ(Ô(ØÔ&×5Ò5Ñ7Ô7ð 	(ñ 	9ô 	9ð 	9ð
 	Ô×$Ò$Ð%7Ñ8Ô8Ð8Ø×ÒÑ Ô ð 	,ð 	,ðØ×!Ò! $Ñ'Ô'Ð'Ð'øÝ!Ô,ð ð ð Ø�ðøøøà×%Ò% dÑ+Ô+Ð+ð	,ð 	,ð 	,ñ 	,ô 	,ð 	,ð 	,ð 	,ð 	,ð 	,ð 	,ð 	,øøøð 	,ð 	,ð 	,ð 	,ð 	,ð 	,sI   ÁA6CÃC!Ã$C!Å6GÅ8FÆGÆF ÆGÆF Æ GÇG	ÇG	N©rA   r3  r4  r5  r1  r§  r)   r'   r*  r*  ¶  s)   € € € € € Ø=Ð=ð,ð ,ð ,ð ,ð ,r)   r*  c                   ó   — e Zd ZdZd„ ZdS )ÚConverter6to7z3Perform an in-place upgrade of format 6 to format 7c                 ó¨   — t          ¦   «         }|                     dd¦  «         |j                             d|                     ¦   «         ¦  «         d S )Nr  r2   r?   )r  r  r$   rµ   rå   ©r&   r3   r?   s      r'   r1  zConverter6to7.convertÚ  sO   € Ý!Ñ#Ô#ˆØ×#Ò#Ð$9¸2Ñ>Ô>Ð>àÔ×#Ò# H¨f×.>Ò.>Ñ.@Ô.@ÑAÔAÐAÐAÐAr)   Nr2  r§  r)   r'   r4  r4  ×  ó.   € € € € € Ø=Ð=ðBð Bð Bð Bð Br)   r4  c                   ó   — e Zd ZdZd„ ZdS )ÚConverter7to8z3Perform an in-place upgrade of format 7 to format 8c                 ó²   — t          ¦   «         }|j                             dd¦  «         |j                             d|                     ¦   «         ¦  «         d S )Nrg  r)   r?   )r¡  r$   rµ   rå   r6  s      r'   r1  zConverter7to8.convertä  sQ   € Ý!Ñ#Ô#ˆØÔ×#Ò# L°#Ñ6Ô6Ð6àÔ×#Ò# H¨f×.>Ò.>Ñ.@Ô.@ÑAÔAÐAÐAÐAr)   Nr2  r§  r)   r'   r9  r9  á  r7  r)   r9  N)2Úior   Útypingr   r   r   r   Úglobalsr2   r
   r   r   r   r   r   r   rP  r   rc   r   r3   r   r   r   r   r   r    r   Ú
decoratorsr   rº  r   r   Útracer   Úremoter   r   rA  rŸ  r¥  r«  r©  rÜ  r¡  r  r  r*  r4  r9  r§  r)   r'   ú<module>rA     sú  ðð$ Ð Ð Ð Ð Ð Ø 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1à %Ð %Ð %Ð %Ð %Ð %Ø €ˆGˆG‰IŒIð ñ ô ð ð Ð Ð Ð Ð Ð Ð Ð Ø )Ð )Ð )Ð )Ð )Ð )ðð ð ð ð ð ð ð ð ð ð ð ð ð ðð ð ð ð ð ð ð ð ð ð ð ð ð ð $Ð #Ð #Ð #Ð #Ð #ðð ð ð ð ð ð 8Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7ðð ð ð ð ð ð ð )Ø(Ð(Ð(Ð(Ð(Ð(ð^ ð ^ ð ^ ð ^ ð ^ �Ð)ñ ^ ô ^ ð ^ ðBT(ð T(ð T(ð T(ð T(�ñ T(ô T(ð T(ðn;ð ;ð ;ð ;ð ;�ñ ;ô ;ð ;ðCð Cð Cð Cð C�ñ Cô Cð CðnBð nBð nBð nBð nB˜&Ô*¨Lñ nBô nBð nBðb)(ð )(ð )(ð )(ð )(Ð*ñ )(ô )(ð )(ðX%(ð %(ð %(ð %(ð %(Ð*ñ %(ô %(ð %(ðP,(ð ,(ð ,(ð ,(ð ,(Ð*ñ ,(ô ,(ð ,(ð^pð pð pð pð pÐ/ñ pô pð pðf,ð ,ð ,ð ,ð ,ñ ,ô ,ð ,ðBBð Bð Bð Bð Bñ Bô Bð BðBð Bð Bð Bð Bñ Bô Bð Bð Bð Br)   