§
    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ZddlZddlmZmZmZmZmZmZmZ ddlmZmZmZmZ dd	lmZ dd
lm Z  ddl!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, erddl-m.Z.m/Z/  G d„ dej0        ¦  «        Z1 G d„ dej2        ¦  «        Z3 G d„ de¦  «        Z4 G d„ de¦  «        Z5 G d„ de¦  «        Z6 e6¦   «         e4_         G d„ d¦  «        Z7 G d„ d¦  «        Z8 G d„ d¦  «        Z9 G d „ d!e¦  «        Z: ej;        e5         ¦   «         Z<	  e:e<¦  «        Z=e= >                    d"d#d$¦  «         e= >                    d%d&d'¦  «         e= >                    d(d&d)¦  «         e= >                    d*d&d+¦  «         e= >                    d,d&d-¦  «         e= ?                    d(¦  «          G d.„ d/e"¦  «        Z@ G d0„ d1¦  «        ZA G d2„ d3eA¦  «        ZB G d4„ d5eA¦  «        ZC G d6„ d7¦  «        ZD G d8„ d9e e4         ¦  «        ZEd:„ ZF G d;„ d<eE¦  «        ZGeE H                    eG¦  «         dS )=Úgoogleé    )ÚOptionalÚTupleÚListÚcastÚDictÚTextIOÚTYPE_CHECKINGÚUnioné   )Úlazy_importzi
from breezy import (
    ui,
    )
from breezy.bzr import (
    fetch,
    remote,
    vf_search,
    )
N)ÚconfigÚdebugÚerrorsÚrevisionÚ
repositoryÚregistryÚurlutils)Ú
ControlDirÚControlComponentÚControlComponentFormatÚControlComponentFormatRegistry)ÚHooks)ÚInterObject)ÚLogicalLockResult)Ú
RevisionID)ÚmutterÚmutter_callsiteÚnoteÚis_quietÚwarning)Úget_transportÚ	Transport)ÚTagConflictÚ
TagUpdatesc                   ó   — e Zd ZdZd„ ZdS )ÚUnstackableBranchFormatzzThe branch '%(url)s'(%(format)s) is not a stackable format. You will need to upgrade the branch to permit branch stacking.c                 ó`   — t           j                             | ¦  «         || _        || _        d S ©N)r   ÚBzrErrorÚ__init__ÚformatÚurl)Úselfr,   r-   s      ú//usr/lib/python3/dist-packages/breezy/branch.pyr+   z UnstackableBranchFormat.__init__D   s*   € ÝŒ× Ò  Ñ&Ô&Ð&ØˆŒØˆŒˆˆó    N©Ú__name__Ú
__module__Ú__qualname__Ú_fmtr+   © r0   r/   r'   r'   ?   s+   € € € € € ðM€Dðð ð ð ð r0   r'   c                   ó   — e Zd ZdZd„ ZdS )ÚBindingUnsupportedz+Branch at %(url)s does not support binding.c                 ój   — t           j                             | ¦  «         || _        |j        | _        d S r)   )r   r*   r+   ÚbranchÚuser_urlr-   ©r.   r:   s     r/   r+   zBindingUnsupported.__init__N   s,   € ÝŒ× Ò  Ñ&Ô&Ð&ØˆŒØ”?ˆŒˆˆr0   Nr1   r6   r0   r/   r8   r8   J   s(   € € € € € à8€Dð#ð #ð #ð #ð #r0   r8   c                   ó¨  — e Zd ZU dZeed<   ee         ed<   eed<   ded<   eee	e
f                  ed<   ej        ed<   d	ed
<   edefd„¦   «         Zd�deee                  ddfd„Zd„ Zd„ Zd‘d„Z	 	 d’dee	         dee
         ddfd„Zd„ Zed“d„¦   «         Ze	 	 	 d”dedee         defd„¦   «         Zed�d„¦   «         Zd„ Zd„ Zdej        fd„Z d‘d „Z!d!„ Z"d"„ Z#d“d#„Z$d$„ Z% ee$e%¦  «        Z&d%„ Z'	 	 d’d&„Z(d�d'„Z)d(„ Z*d)„ Z+d*„ Z,d+„ Z-d•d,„Z.d-„ Z/d.„ Z0d/„ Z1d0„ Z2d1„ Z3	 	 	 d–d4„Z4d5„ Z5d6„ Z6d7„ Z7d8„ Z8d9„ Z9d:„ Z:d;eddfd<„Z;d—d=„Z<dee         fd>„Z=d?„ Z>	 	 	 d˜d@„Z?	 d�deee                  ded          fdA„Z@defdB„ZAdCee	         dDe
ddfdE„ZB	 	 d’dDe
dFee
         dGed          ddfdH„ZCdIee         ddfdJ„ZDdIee         ddfdK„ZEdIeddfdL„ZFdM„ ZGdN„ ZHd‘dO„ZIdP„ ZJdee
         fdQ„ZKdR„ ZLdS„ ZMde
fdT„ZNdee	e
f         fdU„ZOdV„ ZPddWœdX„ZQdDe
de	fdY„ZRd�dCe	dZeee
                  de
fd[„ZSdddd\œd]d d^edee
         deee                  dd_f
d`„ZTddddaœdbd d^edee
         dcefdd„ZUde„ ZVdee         fdf„ZWdg„ ZXdddhœdi„ZYddjœdedee         fdk„ZZdee         fdl„Z[dee         fdm„Z\dneddfdo„Z]dee         fdp„Z^dneddfdq„Z_dee         fdr„Z`dneddfds„Zadt„ Zbdu„ Zcd‘dv„ZddCe	ddfdw„ZedCe	ddfdx„ZfdddddyœdzedDee
         dee         dd fd{„Zgddddddd|œd}„Zhd~„ Zidddœd€„Zjd�„ Zkd‚„ Zld•dƒ„Zmddddddd„œd…„Znddddd†d‡œdˆ„Zod™d‰„ZpdŠ„ Zqd‹„ ZrdŒ„ Zsd�„ ZtdŽ„ Zud�„ ZvdS )šÚBranchzÆBranch holding a history of revisions.

    Attributes:
      hooks: An instance of BranchHooks.
      _master_branch_cache: cached result of get_master_branch, see
        _clear_cached_state.
    Ú
controldirÚnameÚbaseÚBranchFormatÚ_formatÚ_last_revision_info_cacher   ÚBranchHooksÚhooksÚreturnc                 ó   — | j         j        S r)   )r?   Úuser_transport©r.   s    r/   rI   zBranch.user_transportk   s   € àŒÔ-Ð-r0   NÚpossible_transportsc                 ó  — | j                              | ¦  «        | _        d | _        d | _        i | _        g | _        d | _        d | _        d | _	        |  
                    |¦  «         t          j        d         }|D ]} || ¦  «         Œd S )NÚopen)rC   Ú	make_tagsÚtagsÚ_revision_history_cacheÚ_revision_id_to_revno_cacheÚ#_partial_revision_id_to_revno_cacheÚ_partial_revision_history_cacherD   Ú_master_branch_cacheÚ_merge_sorted_revisions_cacheÚ
_open_hookr>   rF   )r.   rK   rF   Úhooks       r/   r+   zBranch.__init__o   s˜   € Ø”L×*Ò*¨4Ñ0Ô0ˆŒ	Ø'+ˆÔ$Ø+/ˆÔ(ØJLˆÔ0ØACˆÔ,Ø)-ˆÔ&Ø$(ˆÔ!Ø-1ˆÔ*Ø�ŠÐ+Ñ,Ô,Ð,Ý”˜VÔ$ˆØð 	ð 	ˆDØˆD�‰JŒJˆJˆJð	ð 	r0   c                 ó   — dS )z<Called by init to allow simpler extension of the base class.Nr6   ©r.   rK   s     r/   rV   zBranch._open_hook}   s   € € € r0   c                 ó*  — | j         j        D ]!}|j        |k    rt          d|| ¦  «          dS Œ"|                      ||¦  «        }|                     | j         ¦  «        rt          j        | j        |¦  «        ‚| j                              |¦  «         dS )zAActivate the branch/repository from url as a fallback repository.z)duplicate activation of fallback %r on %rN)	r   Ú_fallback_repositoriesr;   r   Ú_get_fallback_repositoryÚhas_same_locationr   ÚUnstackableLocationErrorÚadd_fallback_repository)r.   r-   rK   Úexisting_fallback_repoÚrepos        r/   Ú_activate_fallback_locationz"Branch._activate_fallback_location€   s¨   € à&*¤oÔ&Lð 	ð 	Ð"Ø%Ô.°#Ò5Ð5õ ÐBÀCÈÑNÔNÐNØ��ð 6ð ×,Ò,¨SÐ2EÑFÔFˆØ×!Ò! $¤/Ñ2Ô2ð 	FÝÔ1°$´-ÀÑEÔEÐEØŒ×/Ò/°Ñ5Ô5Ð5Ð5Ð5r0   c                 ó*   — t          | j        ¦  «        ‚)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.
        )ÚNotImplementedErrorÚ
break_lockrJ   s    r/   re   zBranch.break_lockŽ   s   € õ " $¤/Ñ2Ô2Ð2r0   Ú
stop_indexÚstop_revisionc                 ó  — t          | j        ¦  «        dk    r|                      ¦   «         g| _        t          j        | j        | j        ||¬¦  «         | j        d         t
          j        k    r| j                             ¦   «          dS dS )a.  Extend the partial history to include a given index

        If a stop_index is supplied, stop when that index has been reached.
        If a stop_revision is supplied, stop when that revision is
        encountered.  Otherwise, stop when the beginning of history is
        reached.

        Args:
          stop_index: The index which should be present.  When it is
            present, history extension will stop.
          stop_revision: The revision id which should be present.  When
            it is encountered, history extension will stop.
        r   )rf   rg   éÿÿÿÿN)ÚlenrS   Úlast_revisionr   Ú_iter_for_revnoÚ_mod_revisionÚNULL_REVISIONÚpop)r.   rf   rg   s      r/   Ú_extend_partial_historyzBranch._extend_partial_history˜   s    € õ  ˆtÔ3Ñ4Ô4¸Ò9Ð9Ø48×4FÒ4FÑ4HÔ4HÐ3IˆDÔ0ÝÔ"ØŒO˜TÔAØ!°ð	@ñ 	@ô 	@ð 	@ð Ô/°Ô3ÝÔ+ò,ð ,àÔ0×4Ò4Ñ6Ô6Ð6Ð6Ð6ð,ð ,r0   c                 ó:   — |                       ¦   «         }d|fd|fgS )zJGet the references needed for check().

        See breezy.check.
        zrevision-existenceúlefthand-distance)rk   )r.   Úrevids     r/   Ú_get_check_refszBranch._get_check_refs±   s+   € ð
 ×"Ò"Ñ$Ô$ˆØ% uÐ-Ð0CÀUÐ/KÐLÐLr0   Fc                 ó^   — t          j        | ||¬¦  «        }|                     ||¬¦  «        S )z“Open the branch rooted at base.

        For instance, if the branch is at URL/.bzr/branch,
        Branch.open(URL) -> a Branch instance.
        )rK   Ú_unsupported)ÚunsupportedrK   )r   rM   Úopen_branch)rA   rv   rK   Úcontrols       r/   rM   zBranch.open¹   sH   € õ ”/ØÐ&9Ø%ð'ñ 'ô 'ˆð ×"Ò"Ø$Ø 3ð #ñ 5ô 5ð 	5r0   Ú	transportrv   c                 ó\   — t          j        | |¦  «        }|                     |||¬¦  «        S )z#Open the branch rooted at transport)r@   rw   rK   )r   Úopen_from_transportrx   )rz   r@   rv   rK   ry   s        r/   r|   zBranch.open_from_transportÇ   s@   € õ
 Ô0Ø�|ñ%ô %ˆà×"Ò"Ø <Ø 3ð #ñ 5ô 5ð 	5r0   c                 óf   — t          j        | |¦  «        \  }}|                     |¬¦  «        }||fS )a  Open an existing branch which contains url.

        This probes for a branch at url, 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.
        ©rK   )r   Úopen_containingrx   )r-   rK   ry   Úrelpathr:   s        r/   r   zBranch.open_containingÒ   sC   € õ &Ô5ØÐ$ñ&ô &Ñˆ�à×$Ò$Ð9LÐ$ÑMÔMˆØ˜Ð Ð r0   c                 ó\   — |                       ¦   «         o| j                             ¦   «         S )zÙShould _basic_push merge this branch's tags into the target?

        The default implementation returns False if this branch has no tags,
        and True the rest of the time.  Subclasses may override this.
        )Úsupports_tagsrO   Úget_tag_dictrJ   s    r/   Ú_push_should_merge_tagszBranch._push_should_merge_tagsä   s)   € ð ×!Ò!Ñ#Ô#Ð@¨¬	×(>Ò(>Ñ(@Ô(@Ð@r0   c                 ó*   — t          j        | ¦  «        S )zÆGet a breezy.config.BranchConfig for this Branch.

        This can then be used to get and set configuration options for the
        branch.

        Returns: A breezy.config.BranchConfig.
        )Ú_mod_configÚBranchConfigrJ   s    r/   Ú
get_configzBranch.get_configì   s   € õ Ô'¨Ñ-Ô-Ð-r0   c                 ó*   — t          j        | ¦  «        S )zÄGet a breezy.config.BranchStack for this Branch.

        This can then be used to get and set configuration options for the
        branch.

        Returns: A breezy.config.BranchStack.
        )r†   ÚBranchStackrJ   s    r/   Úget_config_stackzBranch.get_config_stackö   s   € õ Ô& tÑ,Ô,Ð,r0   c                 ó*   — t          | j        ¦  «        ‚)a  Store uncommitted changes from a ShelfCreator.

        Args:
          creator: The ShelfCreator containing uncommitted changes, or
            None to delete any stored changes.
        :raises: ChangesAlreadyStored if the branch already has changes.
        )rd   Ústore_uncommitted)r.   Úcreators     r/   r�   zBranch.store_uncommitted   s   € õ " $Ô"8Ñ9Ô9Ð9r0   c                 ó*   — t          | j        ¦  «        ‚)zÆReturn a shelf.Unshelver for this branch and tree.

        Args:
          tree: The tree to use to construct the Unshelver.
        Returns: an Unshelver or None if no changes are stored.
        )rd   Úget_unshelver)r.   Útrees     r/   r�   zBranch.get_unshelver
  s   € õ " $Ô"4Ñ5Ô5Ð5r0   c                 ó|   — t          j        | j        |¦  «        }t                               ||¬¦  «        }|j        S )z)Get the repository we fallback to at url.r~   )r   ÚjoinrA   r>   rM   r   )r.   r-   rK   Úa_branchs       r/   r\   zBranch._get_fallback_repository  s4   € åŒm˜DœI sÑ+Ô+ˆÝ—;’;˜sÐ8K�;ÑLÔLˆØÔ"Ð"r0   c                 ó²  — |                       ¦   «         }|s®|                     ¦   «         sš	 |                      |¦  «        }|r)| j        |j        k    rt	          j        | j        ¦  «        ‚|�|j        S nO# t          j        $ r}|‚d }~wt          j        $ r)}t          dt          |¦  «        z   ¦  «         Y d }~nd }~ww xY w| 
                    ¦   «         S )Nz@Could not connect to bound branch, falling back to local nick.
 )rˆ   Úhas_explicit_nicknameÚget_master_branchr;   r   ÚRecursiveBindÚnickr*   r   ÚstrÚget_nickname)r.   ÚlocalrK   r   ÚmasterÚes         r/   Ú	_get_nickzBranch._get_nick  s&  € Ø—’Ñ"Ô"ˆàð 	B˜V×9Ò9Ñ;Ô;ð 	BðBØ×/Ò/Ð0CÑDÔD�Øð >˜dœm¨v¬Ò>Ð>Ý Ô.¨t¬}Ñ=Ô=Ð=ØÐ%à!œ;Ð&ð &øõ Ô'ð ð ð Ø�øøøøÝ”?ð Bð Bð Bõ ð 8Ý:=¸a¹&¼&ñAñ Bô Bð Bð Bð Bð Bð Bð BøøøøðBøøøð
 ×"Ò"Ñ$Ô$Ð$s$   ¬AA6 Á6CÂBÂCÂB=Â=Cc                 óZ   — |                       ¦   «                              d|d¬¦  «         d S )NÚnicknameT)Úwarn_masked)rˆ   Úset_user_option)r.   r™   s     r/   Ú	_set_nickzBranch._set_nick-  s-   € Ø�ŠÑÔ×)Ò)¨*°dÈÐ)ÑMÔMÐMÐMÐMr0   c                 ó*   — t          | j        ¦  «        ‚r)   )rd   Ú	is_lockedrJ   s    r/   r¦   zBranch.is_locked2  s   € Ý! $¤.Ñ1Ô1Ð1r0   c                 óp  — dt           j        v rt          dd¦  «         | j                             ¦   «         }|�+|                     ||¦  «        st          j        | |¦  «        ‚|                     |g¦  «        }||vrt          j	        | |¦  «        ‚|}g }t          j        }||v rzt          ||         ¦  «        dk    ra ||¦  «         |                     |¦  «         ||         d         }|                     |g¦  «        }||v rt          ||         ¦  «        dk    °a|                     ¦   «          |S )NÚevilé   z&_lefthand_history scales with history.r   )r   Údebug_flagsr   r   Ú	get_graphÚis_ancestorr   ÚDivergedBranchesÚget_parent_mapÚNoSuchRevisionrm   Úcheck_not_reserved_idrj   ÚappendÚreverse)	r.   Úrevision_idÚlast_revÚother_branchÚgraphÚparents_mapÚcurrent_rev_idÚnew_historyr°   s	            r/   Ú_lefthand_historyzBranch._lefthand_history5  sX  € à•UÔ&Ð&Ð&Ý˜AÐGÑHÔHÐHà”×)Ò)Ñ+Ô+ˆØÐØ×$Ò$ X¨{Ñ;Ô;ð BåÔ-¨d°LÑAÔAÐAà×*Ò*¨K¨=Ñ9Ô9ˆØ˜kÐ)Ð)ÝÔ'¨¨kÑ:Ô:Ð:Ø$ˆØˆÝ -Ô CÐà Ð,Ð,Ý�{ >Ô2Ñ3Ô3°aÒ7Ð7Ø!Ð! .Ñ1Ô1Ð1Ø×Ò˜~Ñ.Ô.Ð.Ø(¨Ô8¸Ô;ˆNØ×.Ò.°Ð/?Ñ@Ô@ˆKð  Ð,Ð,Ý�{ >Ô2Ñ3Ô3°aÒ7Ð7ð
 	×ÒÑÔÐØÐr0   c                 ó*   — t          | j        ¦  «        ‚)zºLock the branch for write operations.

          token: A token to permit reacquiring a previously held and
            preserved lock.
        Returns: A BranchWriteLockResult.
        )rd   Ú
lock_write)r.   Útokens     r/   r¼   zBranch.lock_writeP  ó   € õ " $¤/Ñ2Ô2Ð2r0   c                 ó*   — t          | j        ¦  «        ‚)z`Lock the branch for read operations.

        Returns: A breezy.lock.LogicalLockResult.
        )rd   Ú	lock_readrJ   s    r/   rÀ   zBranch.lock_readY  ó   € õ
 " $¤.Ñ1Ô1Ð1r0   c                 ó*   — t          | j        ¦  «        ‚r)   )rd   ÚunlockrJ   s    r/   rÃ   zBranch.unlock`  s   € Ý! $¤+Ñ.Ô.Ð.r0   c                 ó*   — t          | j        ¦  «        ‚)z1Return lock mode for the Branch: 'r', 'w' or None)rd   Úpeek_lock_moderJ   s    r/   rÅ   zBranch.peek_lock_modec  s   € å! $Ô"5Ñ6Ô6Ð6r0   c                 ó*   — t          | j        ¦  «        ‚r)   )rd   Úget_physical_lock_statusrJ   s    r/   rÇ   zBranch.get_physical_lock_statusg  ó   € Ý! $Ô"?Ñ@Ô@Ð@r0   c                 ó¤   — |                       ¦   «         5  |                      |¦  «        }|r
|| j        |<   |cddd¦  «         S # 1 swxY w Y   dS )aÔ  Return the revision_id for a dotted revno.

        Args:
          revno: a tuple like (1,) or (1,1,2)
          _cache_reverse: a private parameter enabling storage
           of the reverse mapping in a top level cache. (This should
           only be done in selective circumstances as we want to
           avoid having the mapping cached multiple times.)
        Returns: the revision_id
        :raises errors.NoSuchRevision: if the revno doesn't exist
        N)rÀ   Ú_do_dotted_revno_to_revision_idrR   )r.   ÚrevnoÚ_cache_reverseÚrev_ids       r/   Údotted_revno_to_revision_idz"Branch.dotted_revno_to_revision_idj  s¤   € ð �^Š^ÑÔð 	ð 	Ø×9Ò9¸%Ñ@Ô@ˆFØð IØCH�Ô8¸Ñ@Øð		ð 	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s   •#AÁA	ÁA	c                 óê  ‡— t          ‰¦  «        dk    rT	 |                      ‰d         ¦  «        S # t          j        $ r&}t          j        ‰d         |j        ¦  «        |‚d}~ww xY w|                      ¦   «         }ˆfd„|                     ¦   «         D ¦   «         }t          |¦  «        dk    r|d         S d                     t          t          ‰¦  «        ¦  «        }t          j        | |¦  «        ‚)z£Worker function for dotted_revno_to_revision_id.

        Subclasses should override this if they wish to
        provide a more efficient implementation.
        r   r   Nc                 ó&   •— g | ]\  }}‰|k    ¯|‘ŒS r6   r6   )Ú.0r³   Ú
this_revnorË   s      €r/   ú
<listcomp>z:Branch._do_dotted_revno_to_revision_id.<locals>.<listcomp>ˆ  s2   ø€ ð 0ð 0ð 0Ñ(?¨°Zà  JÒ.Ð.ð $à.Ð.Ð.r0   ú.)rj   Ú
get_rev_idr   ÚRevisionNotPresentÚGhostRevisionsHaveNoRevnor³   Úget_revision_id_to_revno_mapÚitemsr“   Úmaprš   r¯   )r.   rË   ÚexcÚrevision_id_to_revnoÚrevision_idsÚ	revno_strs    `    r/   rÊ   z&Branch._do_dotted_revno_to_revision_id|  s  ø€ õ ˆu‰:Œ:˜Š?ˆ?ð[Ø—’ u¨Q¤xÑ0Ô0Ð0øÝÔ,ð [ð [ð [ÝÔ6°u¸Q´xÀÄÑQÔQÐWZÐZøøøøð[øøøà#×@Ò@ÑBÔBÐð0ð 0ð 0ð 0Ø/×5Ò5Ñ7Ô7ð0ñ 0ô 0ˆõ ˆ|ÑÔ Ò!Ð!Ø ”?Ð"àŸš¥¥S¨%¡¤Ñ1Ô1ˆIÝÔ'¨¨iÑ8Ô8Ð8s   –1 ±A&Á !A!Á!A&c                 óˆ   — |                       ¦   «         5  |                      |¦  «        cddd¦  «         S # 1 swxY w Y   dS )zhGiven a revision id, return its dotted revno.

        Returns: a tuple like (1,) or (400,1,3).
        N)rÀ   Ú_do_revision_id_to_dotted_revno)r.   r³   s     r/   Úrevision_id_to_dotted_revnoz"Branch.revision_id_to_dotted_revno‘  s�   € ð
 �^Š^ÑÔð 	Eð 	EØ×7Ò7¸ÑDÔDð	Eð 	Eð 	Eð 	Eñ 	Eô 	Eð 	Eð 	Eð 	Eð 	Eð 	Eð 	Eøøøð 	Eð 	Eð 	Eð 	Eð 	Eð 	Es   •7·;¾;c                 óš  — | j                              |¦  «        }|�|S | j        r1| j                             |¦  «        }|€t          j        | |¦  «        ‚	 |                      |¦  «        }|fS # t          j        $ rI}|                      ¦   «                              |¦  «        }|€t          j        | |¦  «        |‚Y d}~nd}~ww xY w|S )z)Worker function for revision_id_to_revno.N)rR   ÚgetrQ   r   r¯   rÜ   rØ   )r.   r³   ÚresultrË   rÛ   s        r/   rà   z&Branch._do_revision_id_to_dotted_revno™  sñ   € ð Ô9×=Ò=¸kÑJÔJˆØÐØˆMØÔ+ð 	?ØÔ5×9Ò9¸+ÑFÔFˆFØˆ~ÝÔ+¨D°+Ñ>Ô>Ð>ð	HØ×-Ò-¨kÑ:Ô:ˆEØ�8ˆOøÝÔ$ð 	Hð 	Hð 	Hà×6Ò6Ñ8Ô8×<Ò<¸[ÑIÔIˆFØˆ~ÝÔ+¨D°+Ñ>Ô>ÀCÐGð ˆ~ˆ~ˆ~ˆ~øøøøð	Høøøð
 ˆs   ÁA0 Á0CÁ??CÃCc                 ó  — dt           j        v rt          dd¦  «         |                      ¦   «         5  | j        �| j        }n)|                      ¦   «         }|                      |¦  «         |cddd¦  «         S # 1 swxY w Y   dS )zûReturn the revision_id => dotted revno map.

        This will be regenerated on demand, but will be cached.

        Returns: A dictionary mapping revision_id => dotted revno.
            This dictionary should not be modified by the caller.
        r¨   é   z2get_revision_id_to_revno_map scales with ancestry.N)r   rª   r   rÀ   rQ   Ú_gen_revno_mapÚ_cache_revision_id_to_revno)r.   Úmappings     r/   rØ   z#Branch.get_revision_id_to_revno_map®  sÞ   € ð •UÔ&Ð&Ð&ÝØÐGñIô Ið Ià�^Š^ÑÔð 
	ð 
	ØÔ/Ð;ØÔ:��à×-Ò-Ñ/Ô/�Ø×0Ò0°Ñ9Ô9Ð9ð
 ð
	ð 
	ð 
	ð 
	ñ 
	ô 
	ð 
	ð 
	ð 
	ð 
	ð 
	ð 
	øøøð 
	ð 
	ð 
	ð 
	ð 
	ð 
	s   ³:A:Á:A>ÂA>c                 óB   — d„ |                       ¦   «         D ¦   «         }|S )aV  Create a new mapping from revision ids to dotted revnos.

        Dotted revnos are generated based on the current tip in the revision
        history.
        This is the worker function for get_revision_id_to_revno_map, which
        just caches the return value.

        Returns: A dictionary mapping revision_id => dotted revno.
        c                 ó   — i | ]
\  }}}}||“ŒS r6   r6   )rÑ   rÍ   ÚdepthrË   Úend_of_merges        r/   ú
<dictcomp>z)Branch._gen_revno_map.<locals>.<dictcomp>Ï  s/   € ð  3ð  3ð  3Ù@˜f e¨U°LˆF�Eð 3ð  3ð  3r0   )Úiter_merge_sorted_revisions©r.   rÜ   s     r/   rç   zBranch._gen_revno_mapÅ  s5   € ð 3ð  3à×/Ò/Ñ1Ô1ð 3ñ  3ô  3Ðð $Ð#r0   Úexcluder²   c                 óò  — |                       ¦   «         5  | j        €I|                      ¦   «         }| j                             |g¦  «        }|                     |¦  «        | _        |                      | j        |||¦  «        }|                      |¦  «        }|dk    r|cddd¦  «         S |dk    r(t          t          |¦  «        ¦  «        cddd¦  «         S t          d|z  ¦  «        ‚# 1 swxY w Y   dS )a¦  Walk the revisions for a branch in merge sorted order.

        Merge sorted order is the output from a merge-aware,
        topological sort, i.e. all parents come before their
        children going forward; the opposite for reverse.

        Args:
          start_revision_id: the revision_id to begin walking from.
            If None, the branch tip is used.
          stop_revision_id: the revision_id to terminate the walk
            after. If None, the rest of history is included.
          stop_rule: if stop_revision_id is not None, the precise rule
            to use for termination:

            * 'exclude' - leave the stop revision out of the result (default)
            * 'include' - the stop revision is the last item in the result
            * 'with-merges' - include the stop revision and all of its
              merged revisions in the result
            * 'with-merges-without-common-ancestry' - filter out revisions
              that are in both ancestries
          direction: either 'reverse' or 'forward':

            * reverse means return the start_revision_id first, i.e.
              start at the most recent revision and go backwards in history
            * forward returns tuples in the opposite order to reverse.
              Note in particular that forward does *not* do any intelligent
              ordering w.r.t. depth as some clients of this API may like.
              (If required, that ought to be done at higher layers.)

        Returns: an iterator over (revision_id, depth, revno, end_of_merge)
            tuples where:

            * revision_id: the unique id of the revision
            * depth: How many levels of merging deep this node has been
              found.
            * revno_sequence: This field provides a sequence of
              revision numbers for all revisions. The format is:
              (REVNO, BRANCHNUM, BRANCHREVNO). BRANCHNUM is the number of the
              branch that the revno is on. From left to right the REVNO numbers
              are the sequence numbers within that branch of the revision.
            * end_of_merge: When True the next node (earlier in history) is
              part of a different merge.
        Nr²   Úforwardzinvalid direction %r)rÀ   rU   rk   r   Úget_known_graph_ancestryÚ
merge_sortÚ_filter_merge_sorted_revisionsÚ_filter_start_non_ancestorsÚreversedÚlistÚ
ValueError)r.   Ústart_revision_idÚstop_revision_idÚ	stop_ruleÚ	directionrk   Úknown_graphÚfiltereds           r/   rï   z"Branch.iter_merge_sorted_revisionsÔ  sŠ  € ð\ �^Š^ÑÔð 	Eð 	Eð Ô1Ð9Ø $× 2Ò 2Ñ 4Ô 4�Ø"œo×FÒFØ"�Oñ%ô %�à5@×5KÒ5KØ!ñ6#ô 6#�Ô2à×:Ò:ØÔ2Ð4EØ  )ñ-ô -ˆHð
 ×7Ò7¸ÑAÔAˆHØ˜IÒ%Ð%Øð#	Eð 	Eð 	Eð 	Eñ 	Eô 	Eð 	Eð 	Eð$ ˜IÒ%Ð%Ý¥ X¡¤Ñ/Ô/ð'	Eð 	Eð 	Eð 	Eñ 	Eô 	Eð 	Eð 	Eõ* !Ð!7¸)Ñ!CÑDÔDÐDð+	Eð 	Eð 	Eð 	Eøøøð 	Eð 	Eð 	Eð 	Eð 	Eð 	Es   •B
C,Â,!C,ÃC,Ã,C0Ã3C0c              #   ó  K  — t          |¦  «        }|�6|D ]3}|j        }||k    rŒt          j        t          |g¦  «        |¦  «        } |€%|D ] }|j        }||j        |j        |j        fV — Œ!dS |dk    r.|D ])}|j        }||k    r dS ||j        |j        |j        fV — Œ*dS |dk    r.|D ])}|j        }||j        |j        |j        fV — ||k    r dS Œ*dS |dk    rZ| j                             ¦   «         }| 	                    ||g¦  «        }	|D ]%}|j        }||	vrŒ||j        |j        |j        fV — Œ&dS |dk    r¸| j         
                    |¦  «        }
|
j        r|
j        d         }nt          j        }d}g }|D ]t}|j        }||k    r dS |r||v r\||j        |j        |j        fV — |s||k    r=| j         
                    |¦  «        }|j        rd}|                     |j        ¦  «         ŒudS t          d	|z  ¦  «        ‚)
z4Iterate over an inclusive range of sorted revisions.Nrñ   Úincludez#with-merges-without-common-ancestryzwith-mergesr   FTzinvalid stop_rule %r)ÚiterÚkeyÚ	itertoolsÚchainÚmerge_depthrË   rí   r   r«   Úfind_unique_ancestorsÚget_revisionÚ
parent_idsrm   rn   Úextendrú   )r.   Úmerge_sorted_revisionsrû   rü   rý   Úrev_iterÚnoderÍ   r¶   Ú	ancestorsÚstop_revÚleft_parentÚreached_stop_revision_idÚrevision_id_whitelistÚrevs                  r/   rö   z%Branch._filter_merge_sorted_revisions  sM  è è € õ Ð.Ñ/Ô/ˆØÐ(Ø ð 	ð 	�Øœ�ØÐ.Ò.Ð.Øõ
  )œ­t°T°F©|¬|¸XÑFÔF�HØØÐ#à ð *ð *�Øœ�Ø˜tÔ/°´ØÔ(ð*ð *ð *ð *ð *ð*ð *ð ˜)Ò#Ð#Ø ð *ð *�Øœ�ØÐ-Ò-Ð-Ø�F�FØ˜tÔ/°´ØÔ(ð*ð *ð *ð *ð *ð	*ð *ð ˜)Ò#Ð#Ø ð ð �Øœ�Ø˜tÔ/°´ØÔ(ð*ð *ð *ð *àÐ-Ò-Ð-Ø�F�Fð .ð	ð ð Ð?Ò?Ð?ð ”O×-Ò-Ñ/Ô/ˆEØ×3Ò3Ð4EØ5EÐ4FñHô HˆIà ð *ð *�Øœ�Ø Ð*Ð*ØØ˜tÔ/°´ØÔ(ð*ð *ð *ð *ð *ð	*ð *ð ˜-Ò'Ð'Ø”×3Ò3Ð4DÑEÔEˆHØÔ"ð :Ø&Ô1°!Ô4��å+Ô9�ð (-Ð$Ø$&Ð!Ø ð Ið I�Øœ�Ø˜[Ò(Ð(à�F�FØ0ð 	IØ!Ð%:Ð:Ð:Ø! 4Ô#3°T´ZØÔ,ð.ð .ð .ð .à/ð I°6Ð=MÒ3MÐ3Mà"œo×:Ò:¸6ÑBÔB˜Øœ>ð IØ7;Ð4Ø1×8Ò8¸¼ÑHÔHÐHøðIð Iõ  Ð3°iÑ?Ñ@Ô@Ð@r0   c              #   ó(  K  — 	 t          |¦  «        }n# t          $ r Y d S w xY w|\  }}}}|V — |s|E d {V —† d}t          ¦   «         }| j                             |g¦  «        }	|	                     |g ¦  «        }
|
r|                     |
¦  «         nd S |D ]z\  }}}}|si||v rd| j                             |g¦  «        }	|	                     |g ¦  «        }
|                     |¦  «         |                     |
¦  «         |dk    rd}nŒr||||fV — Œ{d S )NFr   T)ÚnextÚStopIterationÚsetr   r®   rã   ÚupdateÚremove)r.   r  ÚfirstrÍ   r  rË   rí   ÚcleanÚ	whitelistÚpmapÚparentss              r/   r÷   z"Branch._filter_start_non_ancestorse  sˆ  è è € ð	Ý˜‘N”NˆEˆEøÝð 	ð 	ð 	ØˆFˆFð	øøøà5:Ñ2ˆ�˜e \ØˆˆˆØð 	 ð  ÐÐÐÐÐÐÐàˆÝ‘E”Eˆ	ØŒ×-Ò-¨v¨hÑ7Ô7ˆØ—(’(˜6 2Ñ&Ô&ˆØð 	Ø×Ò˜WÑ%Ô%Ð%Ð%ð ˆFà:Bð 	=ð 	=Ñ6ˆV�[ %¨Øð Ø˜YÐ&Ð&Øœ?×9Ò9¸6¸(ÑCÔC�DØ"Ÿhšh v¨rÑ2Ô2�GØ×$Ò$ VÑ,Ô,Ð,Ø×$Ò$ WÑ-Ô-Ð-Ø" aÒ'Ð'ð !%˜øð Ø˜;¨¨|Ð<Ð<Ð<Ð<Ð<ð	=ð 	=s   „ ”
"¡"c                 ó8   — | j                              ¦   «          dS )zÁTell this branch object not to release the physical lock when this
        object is unlocked.

        If lock_write doesn't return a token, then this method is not
        supported.
        N)Úcontrol_filesÚleave_in_placerJ   s    r/   Úleave_lock_in_placezBranch.leave_lock_in_place”  s   € ð 	Ô×)Ò)Ñ+Ô+Ð+Ð+Ð+r0   c                 ó8   — | j                              ¦   «          dS )zæTell this branch object to release the physical lock when this
        object is unlocked, even if it didn't originally acquire it.

        If lock_write doesn't return a token, then this method is not
        supported.
        N)r!  Údont_leave_in_placerJ   s    r/   Údont_leave_lock_in_placezBranch.dont_leave_lock_in_place�  s   € ð 	Ô×.Ò.Ñ0Ô0Ð0Ð0Ð0r0   c                 ó    — t          | ¦  «        ‚)zfBind the local branch the other branch.

        Args:
          other: The branch to bind to
        )r8   ©r.   Úothers     r/   ÚbindzBranch.bind¦  s   € õ ! Ñ&Ô&Ð&r0   c                 ó†   — | j                              ¦   «         sdS |                      ¦   «                              d¦  «        S )zHWhether it is only possible to append revisions to the history.
        FÚappend_revisions_only)rC   Ú"supports_set_append_revisions_onlyr‹   rã   rJ   s    r/   Úget_append_revisions_onlyz Branch.get_append_revisions_only®  s@   € ð Œ|×>Ò>Ñ@Ô@ð 	Ø�5Ø×$Ò$Ñ&Ô&×*Ò*Ð+BÑCÔCÐCr0   Úenabledc                 óº   — | j                              ¦   «         st          j        | j        ¦  «        ‚|                      ¦   «                              d|¦  «         d S )Nr,  )rC   r-  r   ÚUpgradeRequiredr;   r‹   r  )r.   r/  s     r/   Úset_append_revisions_onlyz Branch.set_append_revisions_onlyµ  sT   € ØŒ|×>Ò>Ñ@Ô@ð 	8ÝÔ(¨¬Ñ7Ô7Ð7Ø×ÒÑÔ×#Ò#Ð$;¸WÑEÔEÐEÐEÐEr0   c                 óÀ   — |                       ¦   «         5  t                               || ¦  «                             |||¬¦  «        cddd¦  «         S # 1 swxY w Y   dS )a:  Copy revisions from from_branch into this branch.

        Args:
          from_branch: Where to copy from.
          stop_revision: What revision to stop at (None for at the end
                              of the branch.
          limit: Optional rough limit of revisions to fetch
        Returns: None
        )ÚlimitÚlossyN)r¼   ÚInterBranchrã   Úfetch)r.   Úfrom_branchrg   r4  r5  s        r/   r7  zBranch.fetchº  s¥   € ð �_Š_ÑÔð 	9ð 	9Ý—?’? ;°Ñ5Ô5×;Ò;Ø U°%ð <ñ 9ô 9ð	9ð 	9ð 	9ð 	9ñ 	9ô 	9ð 	9ð 	9ð 	9ð 	9ð 	9ð 	9øøøð 	9ð 	9ð 	9ð 	9ð 	9ð 	9s   •1AÁAÁAc                 ó   — dS )z’Return the URL of the branch we are bound to.

        Older format branches cannot bind, please be sure to use a metadir
        branch.
        Nr6   rJ   s    r/   Úget_bound_locationzBranch.get_bound_locationÈ  s	   € ð ˆtr0   c                 ó4   — t          j        | j        ¦  «        ‚)z<Return the URL of the branch we used to be bound to
        ©r   r1  r;   rJ   s    r/   Úget_old_bound_locationzBranch.get_old_bound_locationÐ  s   € õ Ô$ T¤]Ñ3Ô3Ð3r0   c	                 ór   — |€|                       ¦   «         }| j                             | ||||||||¦	  «	        S )aG  Obtain a CommitBuilder for this branch.

        Args:
          parents: Revision ids of the parents of the new revision.
          config: Optional configuration to use.
          timestamp: Optional timestamp recorded for commit.
          timezone: Optional timezone for timestamp.
          committer: Optional committer to set for commit.
          revprops: Optional dictionary of revision properties.
          revision_id: Optional revision id.
          lossy: Whether to discard data that can not be natively
            represented, when pushing to a foreign VCS
        )r‹   r   Úget_commit_builder)	r.   r  Úconfig_stackÚ	timestampÚtimezoneÚ	committerÚrevpropsr³   r5  s	            r/   r?  zBranch.get_commit_builderÕ  sI   € ð" ÐØ×0Ò0Ñ2Ô2ˆLàŒ×1Ò1Ø�'˜<¨°H¸iØ�k 5ñ*ô *ð 	*r0   c                 ó   — dS )zVReturn the branch we are bound to.

        Returns: Either a Branch, or None
        Nr6   rY   s     r/   r—   zBranch.get_master_branchí  ó	   € ð ˆtr0   c                 ó*   — t          | j        ¦  «        ‚)zÑGet the URL this branch is stacked against.

        Raises:
          NotStacked: If the branch is not stacked.
          UnstackableBranchFormat: If the branch does not support
            stacking.
        )rd   Úget_stacked_on_urlrJ   s    r/   rH  zBranch.get_stacked_on_urlö  ó   € õ " $Ô"9Ñ:Ô:Ð:r0   rË   r³   c                 ó*   — t          | j        ¦  «        ‚)a†  Set the last revision of this branch.

        The caller is responsible for checking that the revno is correct
        for this revision id.

        It may be possible to set the branch last revision to an id not
        present in the repository.  However, branches can also be
        configured to check constraints on history, in which case this may not
        be permitted.
        )rd   Úset_last_revision_info)r.   rË   r³   s      r/   rK  zBranch.set_last_revision_info   s   € õ " $Ô"=Ñ>Ô>Ð>r0   r´   rµ   c                 ó–  — |                       ¦   «         5  | j                             ¦   «         }|                      ¦   «         \  }}||ft          j        dfg}|�+|                     ||¦  «        st          j        | |¦  «        ‚| 	                    ||¦  «        }|  
                    ||¦  «         ddd¦  «         dS # 1 swxY w Y   dS )z$See Branch.generate_revision_historyr   N)r¼   r   r«   Úlast_revision_inform   rn   r¬   r   r­   Úfind_distance_to_nullrK  )	r.   r³   r´   rµ   r¶   Ú
last_revnoÚ
last_revidÚknown_revision_idsrË   s	            r/   Úgenerate_revision_historyz Branch.generate_revision_history  s!  € ð �_Š_ÑÔð 	<ð 	<Ø”O×-Ò-Ñ/Ô/ˆEØ'+×'>Ò'>Ñ'@Ô'@Ñ$ˆZ˜à˜ZÐ(ÝÔ,¨aÐ0ð"Ðð Ð#Ø×(Ò(¨°;Ñ?Ô?ð Få Ô1°$¸ÑEÔEÐEØ×/Ò/ØÐ/ñ1ô 1ˆEà×'Ò'¨¨{Ñ;Ô;Ð;ð	<ð 	<ð 	<ñ 	<ô 	<ð 	<ð 	<ð 	<ð 	<ð 	<ð 	<ð 	<øøøð 	<ð 	<ð 	<ð 	<ð 	<ð 	<s   •BB>Â>CÃCr-   c                 ó*   — t          | j        ¦  «        ‚r)   )rd   Ú_set_parent_location©r.   r-   s     r/   rT  zBranch._set_parent_location!  ó   € Ý! $Ô";Ñ<Ô<Ð<r0   c                 ój  — |�nt          |t          ¦  «        r?	 |                     d¦  «         n(# t          $ r}t	          j        |d¦  «        |‚d}~ww xY wt	          j        | j        |¦  «        }|                      ¦   «         5  |  	                    |¦  «         ddd¦  «         dS # 1 swxY w Y   dS )zSee Branch.set_parent.NÚasciiz4Urls must be 7-bit ascii, use breezy.urlutils.escape)
Ú
isinstancerš   ÚencodeÚUnicodeEncodeErrorr   Ú
InvalidURLÚrelative_urlrA   r¼   rT  )r.   r-   rÛ   s      r/   Ú
set_parentzBranch.set_parent$  s  € ð ˆ?Ý˜#�sÑ#Ô#ð ?ð?Ø—J’J˜wÑ'Ô'Ð'Ð'øÝ)ð ?ð ?ð ?Ý"Ô-Øð 5ñ6ô 6à;>ð?øøøøð?øøøõ Ô'¨¬	°3Ñ7Ô7ˆCØ�_Š_ÑÔð 	+ð 	+Ø×%Ò% cÑ*Ô*Ð*ð	+ð 	+ð 	+ñ 	+ô 	+ð 	+ð 	+ð 	+ð 	+ð 	+ð 	+ð 	+øøøð 	+ð 	+ð 	+ð 	+ð 	+ð 	+s&   ™/ ¯
A¹AÁAÂB(Â(B,Â/B,c                 ó*   — t          | j        ¦  «        ‚)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.
        )rd   Úset_stacked_on_urlrU  s     r/   r`  zBranch.set_stacked_on_url6  rI  r0   c                 ó   — || _         dS )a  Set the cached revision history to rev_history.

        The revision_history method will use this cache to avoid regenerating
        the revision history.

        This API is semi-public; it only for use by subclasses, all other code
        should consider it to be private.
        N)rP   )r.   Úrev_historys     r/   Ú_cache_revision_historyzBranch._cache_revision_history@  s   € ð (3ˆÔ$Ð$Ð$r0   c                 ó   — || _         dS )zÃSet the cached revision_id => revno map to revision_id_to_revno.

        This API is semi-public; it only for use by subclasses, all other code
        should consider it to be private.
        N)rQ   rð   s     r/   rè   z"Branch._cache_revision_id_to_revnoK  s   € ð ,@ˆÔ(Ð(Ð(r0   c                 óh   — d| _         d| _        d| _        d| _        d| _        g | _        i | _        dS )a0  Clear any cached data on this branch, e.g. cached revision history.

        This means the next call to revision_history will need to call
        _gen_revision_history.

        This API is semi-public; it is only for use by subclasses, all other
        code should consider it to be private.
        N)rP   rQ   rD   rT   rU   rS   rR   rJ   s    r/   Ú_clear_cached_statezBranch._clear_cached_stateS  sB   € ð (,ˆÔ$Ø+/ˆÔ(Ø)-ˆÔ&Ø$(ˆÔ!Ø-1ˆÔ*Ø/1ˆÔ,Ø35ˆÔ0Ð0Ð0r0   c                 ó*   — t          | j        ¦  «        ‚)a  Return sequence of revision hashes on to this branch.

        Unlike revision_history, this method always regenerates or rereads the
        revision history, i.e. it does not cache the result, so repeated calls
        may be expensive.

        Concrete subclasses should override this instead of revision_history so
        that subclasses do not need to deal with caching logic.

        This API is semi-public; it only for use by subclasses, all other code
        should consider it to be private.
        )rd   Ú_gen_revision_historyrJ   s    r/   rh  zBranch._gen_revision_historyd  s   € õ " $Ô"<Ñ=Ô=Ð=r0   c                 óÌ   — dt           j        v rt          dd¦  «         | j        �| j        }n)|                      ¦   «         }|                      |¦  «         t          |¦  «        S )Nr¨   ræ   z%revision_history scales with history.)r   rª   r   rP   rh  rc  rù   )r.   Úhistorys     r/   Ú_revision_historyzBranch._revision_historys  se   € Ø•UÔ&Ð&Ð&Ý˜AÐFÑGÔGÐGØÔ'Ð3ØÔ2ˆGˆGà×0Ò0Ñ2Ô2ˆGØ×(Ò(¨Ñ1Ô1Ð1Ý�G‰}Œ}Ðr0   c                 ó6   — |                       ¦   «         d         S )z‘Return current revision number for this branch.

        That is equivalent to the number of revisions committed to
        this branch.
        r   ©rM  rJ   s    r/   rË   zBranch.revno}  s   € ð ×&Ò&Ñ(Ô(¨Ô+Ð+r0   c                 ó4   — t          j        | j        ¦  «        ‚)z,Older format branches cannot bind or unbind.r<  rJ   s    r/   ÚunbindzBranch.unbind…  s   € åÔ$ T¤]Ñ3Ô3Ð3r0   c                 ó6   — |                       ¦   «         d         S )z*Return last revision id, or NULL_REVISION.r   rm  rJ   s    r/   rk   zBranch.last_revision‰  s   € à×&Ò&Ñ(Ô(¨Ô+Ð+r0   c                 ó¬   — |                       ¦   «         5  | j        €|                      ¦   «         | _        | j        cddd¦  «         S # 1 swxY w Y   dS )zdReturn information about the last revision.

        Returns: A tuple (revno, revision_id).
        N)rÀ   rD   Ú_read_last_revision_inforJ   s    r/   rM  zBranch.last_revision_info�  sž   € ð
 �^Š^ÑÔð 	2ð 	2ØÔ-Ð5à×1Ò1Ñ3Ô3ð Ô.àÔ1ð		2ð 	2ð 	2ð 	2ñ 	2ô 	2ð 	2ð 	2ð 	2ð 	2ð 	2ð 	2øøøð 	2ð 	2ð 	2ð 	2ð 	2ð 	2s   •'A	Á	AÁAc                 ó*   — t          | j        ¦  «        ‚r)   )rd   rr  rJ   s    r/   rr  zBranch._read_last_revision_info˜  rÈ   r0   )r5  c                ó    — | j                              |j         ¦  «        s|                      ||¦  «         |                      ||¦  «         ||fS )a¶  Set the last revision info, importing from another repo if necessary.

        This is used by the bound branch code to upload a revision to
        the master branch first before updating the tip of the local branch.
        Revisions referenced by source's tags are also transferred.

        Args:
          source: Source branch to optionally fetch from
          revno: Revision number of the new tip
          revid: Revision id of the new tip
          lossy: Whether to discard metadata that can not be
            natively represented
        Returns: Tuple with the new revision number and revision id
            (should only be different from the arguments when lossy=True)
        )r   r]   r7  rK  )r.   ÚsourcerË   rs   r5  s        r/   Ú"import_last_revision_info_and_tagsz)Branch.import_last_revision_info_and_tags›  sS   € ð" Œ×0Ò0°Ô1BÑCÔCð 	&Ø�JŠJ�v˜uÑ%Ô%Ð%Ø×#Ò# E¨5Ñ1Ô1Ð1Ø�uˆ~Ðr0   c                 óØ   — t          j        |¦  «        rdS |                      ¦   «         }	 |                     |¦  «        dz   S # t          $ r}t          j        | |¦  «        |‚d}~ww xY w)z%Given a revision id, return its revnor   r   N)rm   Úis_nullrk  Úindexrú   r   r¯   )r.   r³   rj  rÛ   s       r/   rÜ   zBranch.revision_id_to_revno±  s€   € åÔ  Ñ-Ô-ð 	Ø�1Ø×(Ò(Ñ*Ô*ˆð	DØ—=’= Ñ-Ô-°Ñ1Ð1øÝð 	Dð 	Dð 	DÝÔ'¨¨kÑ:Ô:ÀÐCøøøøð	Døøøs   ¬A Á
A)ÁA$Á$A)rj  c                 ó°  — |                       ¦   «         5  |dk    rt          j        cddd¦  «         S |                      ¦   «         \  }}||k    r|cddd¦  «         S |dk    s||k    rt	          j        | |¦  «        ‚||z
  }t          | j        ¦  «        |k    r|                      |¦  «         | j        |         cddd¦  «         S # 1 swxY w Y   dS )z,Find the revision id of the specified revno.r   N)	rÀ   rm   rn   rM  r   r¯   rj   rS   rp   )r.   rË   rj  rO  rP  Údistance_from_lasts         r/   rÕ   zBranch.get_rev_id»  sŠ  € à�^Š^ÑÔð 	Lð 	LØ˜ŠzˆzÝ$Ô2ð	Lð 	Lð 	Lð 	Lñ 	Lô 	Lð 	Lð 	Lð &*×%<Ò%<Ñ%>Ô%>Ñ"ˆJ˜
Ø˜
Ò"Ð"Ø!ð	Lð 	Lð 	Lð 	Lñ 	Lô 	Lð 	Lð 	Lð ˜Šzˆz˜U ZÒ/Ð/ÝÔ+¨D°%Ñ8Ô8Ð8Ø!+¨eÑ!3ÐÝ�4Ô7Ñ8Ô8Ð<NÒNÐNØ×,Ò,Ð-?Ñ@Ô@Ð@ØÔ7Ð8JÔKð	Lð 	Lð 	Lð 	Lñ 	Lô 	Lð 	Lð 	Lð 	Lð 	Lð 	Lð 	Løøøð 	Lð 	Lð 	Lð 	Lð 	Lð 	Ls   •C´CÁACÃCÃC©Ú	overwriterg   rK   ru  r}  Ú
PullResultc                óT   — t                               || ¦  «        j        d|||dœ|¤ŽS )z”Mirror source into this branch.

        This branch is considered to be 'local', having low latency.

        Returns: PullResult instance
        r|  r6   )r6  rã   Úpull)r.   ru  r}  rg   rK   Úkwargss         r/   r€  zBranch.pullÊ  sA   € õ �Š˜v tÑ,Ô,Ô1ð ?Ø¨}Ø 3ð?ð ?à7=ð?ð ?ð 	?r0   )r}  rg   r5  Útargetr5  c                óR   — t                               | |¦  «        j        |||fi |¤ŽS )znMirror this branch into target.

        This branch is considered to be 'local', having low latency.
        )r6  rã   Úpush)r.   r‚  r}  rg   r5  r�  s         r/   r„  zBranch.pushØ  s;   € õ �Š˜t VÑ,Ô,Ô1Ø�} eð7ð 7Ø/5ð7ð 7ð 	7r0   c                 óZ   — | j                              |                      ¦   «         ¦  «        S )z'Return `Tree` object for last revision.)r   Úrevision_treerk   rJ   s    r/   Ú
basis_treezBranch.basis_treeâ  s$   € àŒ×,Ò,¨T×-?Ò-?Ñ-AÔ-AÑBÔBÐBr0   c                 ó.  — |                       ¦   «         }|€|S |                     d¦  «        rt          j        |¦  «        }	 t          j        | j        dd…         |¦  «        S # t          j        $ r }t          j        || j	        ¦  «        |‚d}~ww xY w)zÈReturn the parent location of the branch.

        This is the default location for pull/missing.  The usual
        pattern is that the user can override it by specifying a
        location.
        Nú/ri   )
Ú_get_parent_locationÚ
startswithr   Úlocal_path_to_urlr“   rA   ÚInvalidURLJoinr   ÚInaccessibleParentr;   )r.   ÚparentrÛ   s      r/   Ú
get_parentzBranch.get_parentæ  s¦   € ð ×*Ò*Ñ,Ô,ˆØˆ>ØˆMð ×Ò˜SÑ!Ô!ð 	8ÝÔ/°Ñ7Ô7ˆFð	LÝ”= ¤¨3¨B¨3¤°Ñ8Ô8Ð8øÝÔ&ð 	Lð 	Lð 	LÝÔ+¨F°D´MÑBÔBÈÐKøøøøð	Løøøs   Á!A% Á%BÁ4BÂBc                 ó*   — t          | j        ¦  «        ‚r)   )rd   rŠ  rJ   s    r/   rŠ  zBranch._get_parent_locationù  rV  r0   )r   Úmake_relativec                ó    — |€|                       ¦   «         }|€d}n|rt          j        | j        |¦  «        }|                     ||¦  «         d S ©NÚ )r‹   r   r]  rA   r  )r.   r@   r-   r   r’  s        r/   Ú_set_config_locationzBranch._set_config_locationü  sZ   € àˆ>Ø×*Ò*Ñ,Ô,ˆFØˆ;ØˆCˆCØð 	8ÝÔ'¨¬	°3Ñ7Ô7ˆCØ�
Š
�4˜ÑÔÐÐÐr0   )r   c                ó¨   — |€|                       ¦   «         }|                     |¦  «        }|dk    rd }t          t          t                   |¦  «        S r”  )r‹   rã   r   r   rš   )r.   r@   r   Úlocations       r/   Ú_get_config_locationzBranch._get_config_location  sK   € Øˆ>Ø×*Ò*Ñ,Ô,ˆFØ—:’:˜dÑ#Ô#ˆØ�rŠ>ˆ>ØˆHÝ•H�S”M 8Ñ,Ô,Ð,r0   c                 óŒ   — t          t          t                   |                      ¦   «                              d¦  «        ¦  «        S )z:Return the preferred format of submissions to this branch.Úchild_submit_format©r   r   rš   r‹   rã   rJ   s    r/   Úget_child_submit_formatzBranch.get_child_submit_format  s1   € å•H�S”M 4×#8Ò#8Ñ#:Ô#:×#>Ò#>Ð?TÑ#UÔ#UÑVÔVÐVr0   c                 óŒ   — t          t          t                   |                      ¦   «                              d¦  «        ¦  «        S )úÂReturn the submit location of the branch.

        This is the default location for bundle.  The usual
        pattern is that the user can override it by specifying a
        location.
        Úsubmit_branchrœ  rJ   s    r/   Úget_submit_branchzBranch.get_submit_branch  s2   € õ •H�S”M 4×#8Ò#8Ñ#:Ô#:×#>Ò#>¸Ñ#OÔ#OÑPÔPÐPr0   r˜  c                 óV   — |                       ¦   «                              d|¦  «         dS )rŸ  r   N)r‹   r  ©r.   r˜  s     r/   Úset_submit_branchzBranch.set_submit_branch  s,   € ð 	×ÒÑÔ×#Ò# O°XÑ>Ô>Ð>Ð>Ð>r0   c                 ó,   — |                       d¦  «        S )z]Return the public location of the branch.

        This is used by merge directives.
        Úpublic_branch)r™  rJ   s    r/   Úget_public_branchzBranch.get_public_branch$  s   € ð
 ×(Ò(¨Ñ9Ô9Ð9r0   c                 ó2   — |                       d|¦  «         dS )rŸ  r¦  N)r–  r£  s     r/   Úset_public_branchzBranch.set_public_branch+  s    € ð 	×!Ò! /°8Ñ<Ô<Ð<Ð<Ð<r0   c                 óv   — t          t          |                      ¦   «                              d¦  «        ¦  «        S )z3Return None or the location to push this branch to.Úpush_location)r   rš   r‹   rã   rJ   s    r/   Úget_push_locationzBranch.get_push_location4  s,   € å•C˜×.Ò.Ñ0Ô0×4Ò4°_ÑEÔEÑFÔFÐFr0   c                 ó*   — t          | j        ¦  «        ‚)z(Set a new push location for this branch.)rd   Úset_push_locationr£  s     r/   r®  zBranch.set_push_location8  s   € å! $Ô"8Ñ9Ô9Ð9r0   c                 ó¦   — t           j        d         }|sdS |                      ¦   «         \  }}t          | ||||¦  «        }|D ]} ||¦  «         ŒdS )z%Run the post_change_branch_tip hooks.Úpost_change_branch_tipN©r>   rF   rM  ÚChangeBranchTipParams)r.   Ú	old_revnoÚ	old_revidrF   Ú	new_revnoÚ	new_revidÚparamsrW   s           r/   Ú!_run_post_change_branch_tip_hooksz(Branch._run_post_change_branch_tip_hooks<  st   € å”Ð5Ô6ˆØð 	ØˆFØ#×6Ò6Ñ8Ô8Ñˆ	�9Ý&Ø�)˜Y¨	°9ñ>ô >ˆàð 	ð 	ˆDØˆD�‰LŒLˆLˆLð	ð 	r0   c                 ó¦   — t           j        d         }|sdS |                      ¦   «         \  }}t          | ||||¦  «        }|D ]} ||¦  «         ŒdS )z$Run the pre_change_branch_tip hooks.Úpre_change_branch_tipNr±  )r.   rµ  r¶  rF   r³  r´  r·  rW   s           r/   Ú _run_pre_change_branch_tip_hooksz'Branch._run_pre_change_branch_tip_hooksG  st   € å”Ð4Ô5ˆØð 	ØˆFØ#×6Ò6Ñ8Ô8Ñˆ	�9Ý&Ø�)˜Y¨	°9ñ>ô >ˆàð 	ð 	ˆDØˆD�‰LŒLˆLˆLð	ð 	r0   c                 ó   — dS )zŠSynchronise this branch with the master branch if any.

        Returns: None or the last_revision pivoted out during the update.
        Nr6   rJ   s    r/   r  zBranch.updateR  s	   € ð
 ˆtr0   c                 ó@   — |dk    r|                       |¦  «         dS dS )zy        Check whether a revno corresponds to any revision.
        Zero (the NULL revision) is considered valid.
        r   N)Úcheck_real_revno©r.   rË   s     r/   Úcheck_revnozBranch.check_revnoY  s.   € ð
 �AŠ:ˆ:Ø×!Ò! %Ñ(Ô(Ð(Ð(Ð(ð ˆ:r0   c                 ój   — |dk     s||                       ¦   «         k    rt          j        |¦  «        ‚dS )z}        Check whether a revno corresponds to a real revision.
        Zero (the NULL revision) is considered invalid
        r   N)rË   r   ÚInvalidRevisionNumberr¿  s     r/   r¾  zBranch.check_real_revnoa  s8   € ð
 �1Š9ˆ9˜ §
¢
¡¤Ò,Ð,ÝÔ.¨uÑ5Ô5Ð5ð -Ð,r0   )r³   r@   Úrepository_policyÚtag_selectorÚto_controldirc                ó@  — |                      |¬¦  «        }|                      ¦   «         5  |                     ¦   «         5  |�|                     |¦  «         |                      |||¬¦  «         ddd¦  «         n# 1 swxY w Y   ddd¦  «         n# 1 swxY w Y   |S )aP  Clone this branch into to_controldir preserving all semantic values.

        Most API users will want 'create_clone_on_transport', which creates a
        new bzrdir and branch on the fly.

        revision_id: if not None, the revision history in the new branch will
                     be truncated to end with revision_id.
        )r@   N©r³   rÄ  )Úcreate_branchrÀ   r¼   Úconfigure_branchÚcopy_content_into)r.   rÅ  r³   r@   rÃ  rÄ  rä   s          r/   ÚclonezBranch.clonei  sO  € ð ×,Ò,°$Ð,Ñ7Ô7ˆØ�^Š^ÑÔð 	Lð 	L˜v×0Ò0Ñ2Ô2ð 	Lð 	LØ Ð,Ø!×2Ò2°6Ñ:Ô:Ð:Ø×"Ò"Ø K¸lð #ñ Lô Lð Lð	Lð 	Lð 	Lñ 	Lô 	Lð 	Lð 	Lð 	Lð 	Lð 	Lð 	Løøøð 	Lð 	Lð 	Lð 	Lð 	Lð 	Lð 	Lñ 	Lô 	Lð 	Lð 	Lð 	Lð 	Lð 	Lð 	Løøøð 	Lð 	Lð 	Lð 	Lð
 ˆs5   «BÁ 0A<Á0BÁ<B 	Â BÂB 	ÂBÂBÂB)r³   rÃ  r   r5  rÄ  r@   c                ó^  — |�/|                      ¦   «         r|j                             d¬¦  «         |                     ||¬¦  «        }|rt	          j        | |¦  «        ‚|                      ¦   «         5  |                     ¦   «         5  |�|                     |¦  «         |  	                    |||¬¦  «         |  
                    ¦   «         }	|	€|                     | j        ¦  «         n|                     |	¦  «         ddd¦  «         n# 1 swxY w Y   ddd¦  «         n# 1 swxY w Y   |S )a  Create a new line of development from the branch, into to_controldir.

        to_controldir controls the branch format.

        revision_id: if not None, the revision history in the new branch will
                     be truncated to end with revision_id.
        NT)Ú
_skip_repo)r   r@   rÇ  )Úrequires_stackingrC   Úrequire_stackingrÈ  r   ÚLossyPushToSameVCSrÀ   r¼   rÉ  rÊ  r:  r^  r;   )
r.   rÅ  r³   rÃ  r   r5  rÄ  r@   rä   Ú
master_urls
             r/   ÚsproutzBranch.sprout|  sÂ  € ð Ð)Ø%×7Ò7Ñ9Ô9ð *àÔ!×2Ò2¸dÐ2ÑCÔCÐCØ×,Ò,¸
ÈÐ,ÑNÔNˆØð 	:ÝÔ+¨D°&Ñ9Ô9Ð9Ø�^Š^ÑÔð 		.ð 		.˜v×0Ò0Ñ2Ô2ð 		.ð 		.Ø Ð,Ø!×2Ò2°6Ñ:Ô:Ð:Ø×"Ò"Ø K¸lð #ñ Lô Lð Là×0Ò0Ñ2Ô2ˆJØÐ!Ø×!Ò! $¤-Ñ0Ô0Ð0Ð0à×!Ò! *Ñ-Ô-Ð-ð		.ð 		.ð 		.ñ 		.ô 		.ð 		.ð 		.ð 		.ð 		.ð 		.ð 		.øøøð 		.ð 		.ð 		.ð 		.ð 		.ð 		.ð 		.ñ 		.ô 		.ð 		.ð 		.ð 		.ð 		.ð 		.ð 		.øøøð 		.ð 		.ð 		.ð 		.ð ˆs7   Á4D"Â	A6DÃ?D"ÄD	ÄD"ÄD	ÄD"Ä"D&Ä)D&c                 ó  — |                       ¦   «         \  }}|€||}}nK| j                             ¦   «         }	 |                     |||fg¦  «        }n# t          j        $ r d}Y nw xY w|                     ||¦  «         dS )a!  Synchronize last revision and revision history between branches.

        This version is most efficient when the destination is also a
        BzrBranch6, but works for BzrBranch5, as long as the destination's
        repository contains all the lefthand ancestors of the intended
        last_revision.  If not, set_last_revision_info will fail.

        Args:
          destination: The branch to copy the history into
          revision_id: The revision-id to truncate history at.  May
             be None to copy complete history.
        Nr   )rM  r   r«   rN  r   r×   rK  )r.   Údestinationr³   Úsource_revnoÚsource_revision_idrË   r¶   s          r/   Ú_synchronize_historyzBranch._synchronize_history˜  s±   € ð ,0×+BÒ+BÑ+DÔ+DÑ(ˆÐ(ØÐØ!-Ð/A�;ˆEˆEà”O×-Ò-Ñ/Ô/ˆEðØ×3Ò3ØÐ#5°|Ð"DÐ!EñGô G��øåÔ3ð ð ð à���ðøøøð 	×*Ò*¨5°+Ñ>Ô>Ð>Ð>Ð>s   ¹A ÁA'Á&A'rÇ  c                ób   — t                                | |¦  «                             ||¬¦  «        S )aQ  Copy the content of self into destination.

        revision_id: if not None, the revision history in the new branch will
                     be truncated to end with revision_id.
        tag_selector: Optional callback that receives a tag name
            and should return a boolean to indicate whether a tag should be copied
        rÇ  )r6  rã   rÊ  )r.   rÔ  r³   rÄ  s       r/   rÊ  zBranch.copy_content_into²  s8   € õ �Š˜t [Ñ1Ô1×CÒCØ#°,ð Dñ @ô @ð 	@r0   c                 óx   — | j         j        sd S t                               | |¦  «                             ¦   «         S r)   )rC   Úsupports_reference_locationsr6  rã   Úupdate_references)r.   r‚  s     r/   rÛ  zBranch.update_references½  s4   € ØŒ|Ô8ð 	ØˆFÝ�Š˜t VÑ,Ô,×>Ò>Ñ@Ô@Ð@r0   c           	      óN  — |                       ¦   «         5  t          | ¦  «        }|                      ¦   «         \  }}|d|f         }||k    r@|j                             t          j        d                     ||¦  «        ¦  «        ¦  «         |cddd¦  «         S # 1 swxY w Y   dS )aÂ  Check consistency of the branch.

        In particular this checks that revisions given in the revision-history
        do actually match up in the revision graph, and that they're all
        present in the repository.

        Callers will typically also want to check the repository.

        Args:
          refs: Calculated refs for this branch as specified by
            branch._get_check_refs()
        Returns: A BranchCheckResult.
        rr   z+revno does not match len(mainline) {} != {}N)rÀ   ÚBranchCheckResultrM  r   r±   ÚBzrCheckErrorr,   )r.   Úrefsrä   rO  Úlast_revision_idÚactual_revnos         r/   ÚcheckzBranch.checkÂ  sþ   € ð �^Š^ÑÔð 	ð 	Ý& tÑ,Ô,ˆFØ+/×+BÒ+BÑ+DÔ+DÑ(ˆJÐ(ØÐ!4Ð6FÐ GÔHˆLØ˜zÒ)Ð)Ø”×$Ò$¥VÔ%9ØA×HÒHØ" Lñ2ô 2ñ&3ô &3ñ 4ô 4ð 4ð ð	ð 	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s   •A8BÂBÂ!Bc                 óv   — | j         j                             ¦   «         }|                     | j        ¦  «         |S )z‰Return the most suitable metadir for a checkout of this branch.
        Weaves are used if this branch's repository uses weaves.
        )r   r?   Úcheckout_metadirÚset_branch_formatrC   )r.   Úlightweightr,   s      r/   Ú_get_checkout_formatzBranch._get_checkout_formatß  s5   € ð ”Ô+×<Ò<Ñ>Ô>ˆØ× Ò  ¤Ñ.Ô.Ð.Øˆr0   ©r³   Ú
stacked_onÚcreate_prefixÚuse_existing_dirÚno_treerÄ  c          	      ó˜   — |€|                       ¦   «         }| j                             |||||||¬¦  «        }|                     ¦   «         S )aÞ  Create a clone of this branch and its bzrdir.

        Args:
          to_transport: The transport to clone onto.
          revision_id: The revision id to use as tip in the new branch.
            If None the tip is obtained from this branch.
          stacked_on: An optional URL to stack the clone on.
          create_prefix: Create any missing directories leading up to
            to_transport.
          use_existing_dir: Use an existing directory if one exists.
        Nrè  )rk   r?   Úclone_on_transportrx   )	r.   Úto_transportr³   ré  rê  rë  rì  rÄ  Údir_tos	            r/   Úcreate_clone_on_transportz Branch.create_clone_on_transportç  s]   € ð& ÐØ×,Ò,Ñ.Ô.ˆKØ”×3Ò3Ø k¸jØ'Ð:JØ¨,ð 4ñ 8ô 8ˆð ×!Ò!Ñ#Ô#Ð#r0   T)r³   ræ  Úaccelerator_treeÚhardlinkÚrecurse_nestedc                ó„  — t          |¦  «        }|                     ¦   «          |                      |¬¦  «        }	 |                     |¦  «        }	n•# t          j        $ rƒ}
t          j        |¦  «        }		 |	                     ¦   «          t	          j        |j	        ¦  «        |
‚# t          j
        $ r Y nw xY w|	j        j	        | j        j        j	        k    rd}Y d}
~
nd}
~
ww xY w|r|	                     | ¬¦  «        }nj|	                     ¦   «         }|                     ¦   «          |	                     ¦   «         }|                     | ¦  «         |                     | |¬¦  «         d}|	                     ||||¬¦  «        }|                     ¦   «         }|                     ¦   «         5  |                     ¦   «         D ]h}|                     |¦  «        }|€t1          d|¦  «         Œ*|                     |                     |¦  «        |                     |¦  «        |¬¦  «         Œi	 ddd¦  «         n# 1 swxY w Y   |S )	aþ  Create a checkout of a branch.

        Args:
          to_location: The url to produce the checkout at
          revision_id: The revision to check out
          lightweight: If True, produce a lightweight checkout, otherwise,
            produce a bound branch (heavyweight checkout)
          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.
          recurse_nested: Whether to recurse into nested trees
        Returns: The tree of the created checkout
        )ræ  TN)Útarget_branch©rg   )r8  rò  ró  zBranch location for %s unknown.)r³   ræ  )r"   Úensure_baserç  Úinitialize_on_transportr   ÚAlreadyControlDirErrorr   r|   rx   rA   ÚNotBranchErrorÚcontrol_transportr?   Úset_branch_referenceÚdetermine_repository_policyÚacquire_repositoryrÈ  r*  r€  Úcreate_workingtreer‡  rÀ   Úiter_referencesÚreference_parentr!   Úcreate_checkoutÚabspathÚget_reference_revision)r.   Úto_locationr³   ræ  rò  ró  rô  Útr,   ÚcheckoutrÛ   r8  ÚpolicyÚcheckout_branchr‘   r‡  Úpathr  s                     r/   r  zBranch.create_checkout  sÃ  € õ& ˜+Ñ&Ô&ˆØ	�Š‰ŒˆØ×*Ò*°{Ð*ÑCÔCˆð	#Ø×5Ò5°aÑ8Ô8ˆHˆHøÝÔ,ð 	#ð 	#ð 	#õ "Ô5°aÑ8Ô8ˆHðEØ×$Ò$Ñ&Ô&Ð&õ Ô3°A´FÑ;Ô;ÀÐDøõ Ô(ð ð ð Ø�ðøøøð Ô*Ô/Ø”Ô8Ô=ò>ð >ð #�øøøøøøøøøð	#øøøð  ð 
	Ø"×7Ò7ÀdÐ7ÑKÔKˆKˆKà×9Ò9Ñ;Ô;ˆFØ×%Ò%Ñ'Ô'Ð'Ø&×4Ò4Ñ6Ô6ˆOØ× Ò  Ñ&Ô&Ð&ð × Ò  °[Ð ÑAÔAÐAØˆKØ×*Ò*¨;Ø7BØ<LØ4<ð +ñ >ô >ˆð —_’_Ñ&Ô&ˆ
Ø×!Ò!Ñ#Ô#ð 		-ð 		-Ø"×2Ò2Ñ4Ô4ð -ð -�Ø#'×#8Ò#8¸Ñ#>Ô#>Ð Ø#Ð+ÝÐ=¸tÑDÔDÐDØØ ×0Ò0Ø—L’L Ñ&Ô&Ø *× AÒ AÀ$Ñ GÔ GØ +ð 1ñ -ô -ð -ð -ð-ð		-ð 		-ð 		-ñ 		-ô 		-ð 		-ð 		-ð 		-ð 		-ð 		-ð 		-øøøð 		-ð 		-ð 		-ð 		-ð ˆsN   »A ÁC#Á CÁ5B#Â	CÂ#B5Â2CÂ4B5Â5$CÃC#Æ*A>H5È5H9È<H9c                 ó*   — t          | j        ¦  «        ‚)znMake sure the data stored in this branch is consistent.

        Returns: A `ReconcileResult` object.
        )rd   Ú	reconcile)r.   Úthoroughs     r/   r  zBranch.reconcileF  rÁ   r0   c                 ó4   — | j                              ¦   «         S r)   )rC   r‚   rJ   s    r/   r‚   zBranch.supports_tagsM  s   € ØŒ|×)Ò)Ñ+Ô+Ð+r0   c                 óT   — t           j        d         D ]} || |¦  «        }|�|c S ŒdS )zÊTry to automatically find the tag name for a revision.

        Args:
          revision_id: Revision id of the revision.
        Returns: A tag name or None if no tag name could be determined.
        Úautomatic_tag_nameN)r>   rF   )r.   r³   rW   Úrets       r/   r  zBranch.automatic_tag_nameP  sD   € õ ”LÐ!5Ô6ð 	ð 	ˆDØ�$�t˜[Ñ)Ô)ˆCØˆØ�
�
�
ð àˆtr0   c                 óÊ   — |                       |||¦  «        }|dk    rdS |dk    rt          j        | |¦  «        ‚|dk    rdS t          d                     |¦  «        ¦  «        ‚)a	  Ensure that revision_b is a descendant of revision_a.

        This is a helper function for update_revisions.

        :raises: DivergedBranches if revision_b has diverged from revision_a.
        Returns: True if revision_b is a descendant of revision_a.
        Úb_descends_from_aTÚdivergedÚa_descends_from_bFzinvalid relation: {!r})Ú_revision_relationsr   r­   ÚAssertionErrorr,   )r.   Ú
revision_aÚ
revision_br¶   rµ   Úrelations         r/   Ú _check_if_descendant_or_divergedz'Branch._check_if_descendant_or_diverged]  sx   € ð ×+Ò+¨J¸
ÀEÑJÔJˆØÐ*Ò*Ð*Ø�4Ø˜Ò#Ð#ÝÔ)¨$°Ñ=Ô=Ð=ØÐ,Ò,Ð,Ø�5å Ð!9×!@Ò!@ÀÑ!JÔ!JÑKÔKÐKr0   c                 ó¬   — |                      ||g¦  «        }||hk    rdS |||hk    rdS ||hk    rdS t          d                     |¦  «        ¦  «        ‚)z‰Determine the relationship between two revisions.

        Returns: One of: 'a_descends_from_b', 'b_descends_from_a', 'diverged'
        r  r  r  zinvalid heads: {!r})Úheadsr  r,   )r.   r  r  r¶   r  s        r/   r  zBranch._revision_relationsp  sr   € ð
 —’˜Z¨Ð4Ñ5Ô5ˆØ�Z�LÒ Ð Ø&Ð&Ø�z :Ð.Ò.Ð.à�:Ø�z�lÒ"Ð"Ø&Ð&å Ð!6×!=Ò!=¸eÑ!DÔ!DÑEÔEÐEr0   c                 ó”  — |                       ¦   «         h}t          ¦   «         }|                      ¦   «                              d¦  «        r=	 t          | j                             ¦   «         ¦  «        }n# t          j        $ r Y nw xY w|                     t          j
        ¦  «         |                     t          j
        ¦  «         ||fS )a|  Return the heads that must and that should be fetched to copy this
        branch into another repo.

        Returns: a 2-tuple of (must_fetch, if_present_fetch).  must_fetch is a
            set of heads that must be fetched.  if_present_fetch is a set of
            heads that must be fetched if present, but no error is necessary if
            they are not present.
        zbranch.fetch_tags)rk   r  r‹   rã   rO   Úget_reverse_tag_dictr   ÚTagsNotSupportedÚdiscardrm   rn   )r.   Ú
must_fetchÚif_present_fetchs      r/   Úheads_to_fetchzBranch.heads_to_fetch€  sÆ   € ð ×(Ò(Ñ*Ô*Ð+ˆ
Ý™5œ5ÐØ× Ò Ñ"Ô"×&Ò&Ð':Ñ;Ô;ð 	ðÝ#& t¤y×'EÒ'EÑ'GÔ'GÑ#HÔ#HÐ Ð øÝÔ*ð ð ð Ø�ðøøøà×Ò�=Ô6Ñ7Ô7Ð7Ø× Ò ¥Ô!<Ñ=Ô=Ð=ØÐ+Ð+Ð+s   Á&A3 Á3BÂBc                 óB   — ddl m} |j                             | ¦  «        S )zbCreate a memory tree for this branch.

        Returns: An in-memory MutableTree instance
        r   )Ú
memorytree)r•  r'  Ú
MemoryTreeÚcreate_on_branch)r.   r'  s     r/   Úcreate_memorytreezBranch.create_memorytree–  s-   € ð
 	!Ð Ð Ð Ð Ð ØÔ$×5Ò5°dÑ;Ô;Ð;r0   r)   ©rG   N©NN)FN©NFN)F)NNrñ   r²   ©NNF)NNNNNNF)T)wr2   r3   r4   Ú__doc__r   Ú__annotations__r   rš   r   Úintr   r   Ú
RepositoryÚpropertyr#   rI   r   r+   rV   rb   re   rp   rt   ÚstaticmethodrM   Úboolr|   r   r„   rˆ   r†   ÚStackr‹   r�   r�   r\   rŸ   r¤   r™   r¦   rº   r¼   rÀ   rÃ   rÅ   rÇ   rÎ   rÊ   rá   rà   rØ   rç   rï   rö   r÷   r#  r&  r*  r.  r2  r7  r:  r=  r?  r—   rH  rK  rR  rT  r^  r`  rc  rè   rf  rh  rk  rË   ro  rk   rM  rr  rv  rÜ   rÕ   r€  r„  r‡  r�  rŠ  r–  r™  r�  r¡  r¤  r§  r©  r¬  r®  r¸  r»  r  rÀ  r¾  rË  rÒ  r×  rÊ  rÛ  râ  rç  rñ  r  r  r‚   r  r  r  r%  r*  r6   r0   r/   r>   r>   T   s’  € € € € € € ðð ð ÐÐÑà
�3Œ-ÐÐÑà
€I€I�IàÐÐÑà'¨¨c°:¨oÔ(>Ô?Ð?Ð?Ñ?àÔ%Ð%Ð%Ñ%àÐÐÑàð. 	ð .ð .ð .ñ „Xð.ðð ¨H°T¸)´_Ô,Eð ÐQUð ð ð ð ðKð Kð Kð6ð 6ð 6ð3ð 3ð 3ð 3ð /3Ø26ð7ð 7Ø& sœmð7à# JÔ/ð7à;?ð7ð 7ð 7ð 7ð2Mð Mð Mð ð5ð 5ð 5ñ „\ð5ð ØHLØ16Ø04ð5ð 5 yð 5¸À¼ð 5Ø*.ð5ð 5ð 5ñ „\ð5ð ð!ð !ð !ñ „\ð!ð"Að Að Að.ð .ð .ð- +Ô"3ð -ð -ð -ð -ð:ð :ð :ð :ð6ð 6ð 6ð#ð #ð #ð%ð %ð %ð %ð(Nð Nð Nð ˆ8�I˜yÑ)Ô)€Dð2ð 2ð 2ð 7;Ø'+ðð ð ð ð63ð 3ð 3ð 3ð2ð 2ð 2ð/ð /ð /ð7ð 7ð 7ðAð Að Aðð ð ð ð$9ð 9ð 9ð*Eð Eð Eðð ð ð*ð ð ð.$ð $ð $ð =AØ59ØCLðCEð CEð CEð CEðJJAð JAð JAðX-=ð -=ð -=ð^,ð ,ð ,ð1ð 1ð 1ð'ð 'ð 'ðDð Dð DðF°ð F¸$ð Fð Fð Fð Fð
9ð 9ð 9ð 9ð H¨S¤Mð ð ð ð ð4ð 4ð 4ð
 HLØCGØ38ð*ð *ð *ð *ð2 DHðð Ø'/°°Y´Ô'@ðà˜(Ô#ðð ð ð ð; Cð ;ð ;ð ;ð ;ð?Ø! #œð?Ø5?ð?ØDHð?ð ?ð ?ð ?ð DHØEIð<ð <°Zð <Ø,4°ZÔ,@ð<à08¸Ô0Bð<àNRð<ð <ð <ð <ð&=¨°¬ð =¸$ð =ð =ð =ð =ð+˜h sœmð +°ð +ð +ð +ð +ð$; cð ;¨dð ;ð ;ð ;ð ;ð	3ð 	3ð 	3ð@ð @ð @ð6ð 6ð 6ð 6ð">ð >ð >ð 4¨
Ô#3ð ð ð ð ð,ð ,ð ,ð4ð 4ð 4ð,˜zð ,ð ,ð ,ð ,ð	2 E¨#¨z¨/Ô$:ð 	2ð 	2ð 	2ð 	2ðAð Að Að 5:ðð ð ð ð ð,D°
ð D¸sð Dð Dð Dð DðLð L ð L¨h°t¸JÔ7GÔ.Hð LÐT^ð Lð Lð Lð Lð ;@Ø37Ø>Bð?ð ?ð ?˜8ð ?°4ð ?Ø$ ZÔ0ð?à"*¨4°	¬?Ô";ð?ð 'ð?ð ?ð ?ð ?ð ;@Ø37Àuð7ð 7ð 7˜8ð 7°4ð 7Ø$ ZÔ0ð7Ø@Dð7ð 7ð 7ð 7ðCð Cð CðL˜H SœMð Lð Lð Lð Lð&=ð =ð =ð 9=Ø+0ðð ð ð ð ð 9=ð -ð -ð -¨ð -ÀÈ#Äð -ð -ð -ð -ðW¨°#¬ð Wð Wð Wð WðQ 8¨C¤=ð Qð Qð Qð Qð?¨#ð ?°$ð ?ð ?ð ?ð ?ð: 8¨C¤=ð :ð :ð :ð :ð=¨#ð =°$ð =ð =ð =ð =ðG 8¨C¤=ð Gð Gð Gð Gð:¨#ð :°$ð :ð :ð :ð :ð	ð 	ð 	ð	ð 	ð 	ðð ð ð ð) ð )¨ð )ð )ð )ð )ð6 cð 6¨dð 6ð 6ð 6ð 6ð 37ÈdØ $°4ðð ð  :ð Ø# JÔ/ðØ>FÀs¼mðà<Dðð ð ð ð& 48È4Ø e¸$Øðð ð ð ð ð8?ð ?ð ?ð4 =AÈtð 	@ð 	@ð 	@ð 	@ð 	@ðAð Að Að
ð ð ð:ð ð ð ð FJØ-1ÀØ38À$Ø/3ð$ð $ð $ð $ð $ð6 ;?Ø$)¸DØ!&°tðBð Bð Bð Bð BðH2ð 2ð 2ð 2ð,ð ,ð ,ðð ð ðLð Lð Lð&Fð Fð Fð ,ð ,ð ,ð,<ð <ð <ð <ð <r0   r>   c                   ó¨   — e Zd ZdZd„ Zd„ Zdd„Zed„ ¦   «         Zd„ Z	d„ Z
	 	 d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„ Zd„ ZdS )rB   a–  An encapsulation of the initialization and open routines for a format.

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

    Formats are placed in an dict by their format string for reference
    during branch opening. It's not required that these be instances, they
    can be classes themselves with class methods - it simply depends on
    whether state is needed for a given format or not.

    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 time regardless.
    c                 ó   — | j         |j         u S r)   ©Ú	__class__r(  s     r/   Ú__eq__zBranchFormat.__eq__±  s   € ØŒ~ ¤Ð0Ð0r0   c                 ó   — | |k     S r)   r6   r(  s     r/   Ú__ne__zBranchFormat.__ne__´  s   € Ø˜E’MÐ"Ð"r0   Nc                 ó   — dS )a¨  Get the target reference of the branch in controldir.

        format probing must have been completed before calling
        this method - it is assumed that the format of the branch
        in controldir is correct.

        Args:
          controldir: The controldir to get the branch data from.
          name: Name of the colocated branch to fetch
        Returns: None if the branch is not a reference branch.
        Nr6   )r.   r?   r@   s      r/   Úget_referencezBranchFormat.get_reference·  s	   € ð ˆtr0   c                 ó*   — t          | j        ¦  «        ‚)a·  Set the target reference of the branch in controldir.

        format probing must have been completed before calling
        this method - it is assumed that the format of the branch
        in controldir is correct.

        Args:
          controldir: The controldir to set the branch reference for.
          name: Name of colocated branch to set, None for default
          to_branch: branch that the checkout is to reference
        )rd   Úset_reference)r.   r?   r@   Ú	to_branchs       r/   rA  zBranchFormat.set_referenceÅ  s   € õ " $Ô"4Ñ5Ô5Ð5r0   c                 ó*   — t          | j        ¦  «        ‚)z4Return the short format description for this format.)rd   Úget_format_descriptionrJ   s    r/   rD  z#BranchFormat.get_format_descriptionÔ  s   € å! $Ô"=Ñ>Ô>Ð>r0   c                 óv   — t           j        d         }|sd S t          | |||¦  «        }|D ]} ||¦  «         Œd S )NÚpost_branch_init)r>   rF   ÚBranchInitHookParams)r.   r?   r@   r:   rF   r·  rW   s          r/   Ú_run_post_branch_init_hooksz(BranchFormat._run_post_branch_init_hooksØ  sW   € Ý”Ð/Ô0ˆØð 	ØˆFÝ% d¨J¸¸fÑEÔEˆØð 	ð 	ˆDØˆD�‰LŒLˆLˆLð	ð 	r0   c                 ó*   — t          | j        ¦  «        ‚)z}Create a branch of this format in controldir.

        Args:
          name: Name of the colocated branch to create.
        )rd   Ú
initialize)r.   r?   r@   r   r,  s        r/   rJ  zBranchFormat.initializeà  r¾   r0   c                 ó   — dS )zõIs this format supported?

        Supported formats can be initialized and opened.
        Unsupported formats may not support initialization or committing or
        some other features depending on the reason for not being supported.
        Tr6   rJ   s    r/   Úis_supportedzBranchFormat.is_supportedé  rF  r0   c                 ó$   — ddl m}  ||¦  «        S )a¬  Create a tags object for branch.

        This method is on BranchFormat, because BranchFormats are reflected
        over the wire via network_name(), whereas full Branch instances require
        multiple VFS method calls to operate at all.

        The default implementation returns a disabled-tags instance.

        Note that it is normal for branch to be a RemoteBranch when using tags
        on a RemoteBranch.
        r   )ÚDisabledTags)ÚtagrN  )r.   r:   rN  s      r/   rN   zBranchFormat.make_tagsò  s&   € ð 	&Ð%Ð%Ð%Ð%Ð%Øˆ|˜FÑ#Ô#Ð#r0   c                 ó*   — t          | j        ¦  «        ‚)aP  A simple byte string uniquely identifying this format for RPC calls.

        MetaDir branch formats use their disk format string to identify the
        repository over the wire. All in one formats such as bzr < 0.8, and
        foreign formats like svn/git and hg should use some marker which is
        unique and immutable.
        )rd   Únetwork_namerJ   s    r/   rQ  zBranchFormat.network_name  s   € õ " $Ô"3Ñ4Ô4Ð4r0   Fc                 ó*   — t          | j        ¦  «        ‚)aµ  Return the branch object for controldir.

        Args:
          controldir: A ControlDir that contains a branch.
          name: Name of colocated branch to open
          _found: a private parameter, do not use it. It is used to
            indicate if format probing has already be done.
          ignore_fallbacks: when set, no fallback branches will be opened
            (if there are any).  Default is to open fallbacks.
        )rd   rM   )r.   r?   r@   Ú_foundÚignore_fallbacksÚfound_repositoryrK   s          r/   rM   zBranchFormat.open  s   € õ " $¤)Ñ,Ô,Ð,r0   c                 ó   — dS )z7True if this format supports set_append_revisions_only.Fr6   rJ   s    r/   r-  z/BranchFormat.supports_set_append_revisions_only  ó   € àˆur0   c                 ó   — dS )z0True if this format records a stacked-on branch.Fr6   rJ   s    r/   Úsupports_stackingzBranchFormat.supports_stacking  rW  r0   c                 ó   — dS )z4True if this format supports leaving locks in place.Fr6   rJ   s    r/   Úsupports_leaving_lockz"BranchFormat.supports_leaving_lock!  rW  r0   c                 óN   — |                       ¦   «                              ¦   «         S r)   )rD  ÚrstriprJ   s    r/   Ú__str__zBranchFormat.__str__%  s    € Ø×*Ò*Ñ,Ô,×3Ò3Ñ5Ô5Ð5r0   c                 ó   — dS )z6True if this format supports tags stored in the branchFr6   rJ   s    r/   r‚   zBranchFormat.supports_tags(  rW  r0   c                 ó   — dS )z8Whether the tag container for this branch versions tags.Fr6   rJ   s    r/   Útags_are_versionedzBranchFormat.tags_are_versioned,  rW  r0   c                 ó   — dS )z+True if tags can reference ghost revisions.Tr6   rJ   s    r/   Ú supports_tags_referencing_ghostsz-BranchFormat.supports_tags_referencing_ghosts0  ó   € àˆtr0   c                 ó   — dS )z9True if uncommitted changes can be stored in this branch.Tr6   rJ   s    r/   Úsupports_store_uncommittedz'BranchFormat.supports_store_uncommitted4  rd  r0   c                 ó   — dS )z2True if this branch format store revision numbers.Tr6   rJ   s    r/   Ústores_revnozBranchFormat.stores_revno8  rd  r0   r)   )NNN)NFFNN)r2   r3   r4   r/  r;  r=  r?  ÚclassmethodrA  rD  rH  rJ  rL  rN   rQ  rM   r-  rY  r[  r^  r‚   ra  rc  rf  rh  r6   r0   r/   rB   rB   Ÿ  sx  € € € € € ðð ð"1ð 1ð 1ð#ð #ð #ðð ð ð ð ð6ð 6ñ „[ð6ð?ð ?ð ?ðð ð ð <@Ø)-ð3ð 3ð 3ð 3ðð ð ð$ð $ð $ð5ð 5ð 5ð JOØ8<ð-ð -ð -ð -ðð ð ðð ð ðð ð ð6ð 6ð 6ðð ð ðð ð ðð ð ðð ð ðð ð ð ð r0   rB   c                   ó   — e Zd ZdZd„ ZdS )rE   z­A dictionary mapping hook name to a list of callables for branch hooks.

    e.g. ['post_push'] Is the list of items to be called when the
    push function is invoked.
    c                 óZ  — t          j        | dd¦  «         |                      ddd¦  «         |                      ddd¦  «         |                      d	d
d¦  «         |                      ddd¦  «         |                      ddd¦  «         |                      ddd¦  «         |                      ddd¦  «         |                      ddd¦  «         |                      ddd¦  «         |                      ddd¦  «         |                      ddd¦  «         |                      d d!d¦  «         d"S )#z‚Create the default hooks.

        These are all empty initially, because by default nothing should get
        notified.
        zbreezy.branchzBranch.hooksrM   zLCalled with the Branch object that has been opened after a branch is opened.)r   é   Ú	post_pushzŠCalled after a push operation completes. post_push is called with a breezy.branch.BranchPushResult object and only runs in the bzr client.)r   é   Ú	post_pullz„Called after a pull operation completes. post_pull is called with a breezy.branch.PullResult object and only runs in the bzr client.Ú
pre_commitaÔ  Called after a commit is calculated but before it is completed. pre_commit is called with (local, master, old_revno, old_revid, future_revno, future_revid, tree_delta, future_tree). old_revid is NULL_REVISION for the first commit to a branch, tree_delta is a TreeDelta object describing changes from the basis revision. hooks MUST NOT modify this delta.  future_tree is an in-memory tree obtained from CommitBuilder.revision_tree() and hooks MUST NOT modify this tree.)r   é[   Úpost_commitzËCalled in the bzr client after a commit has completed. post_commit is called with (local, master, old_revno, old_revid, new_revno, new_revid). old_revid is NULL_REVISION for the first commit to a branch.Úpost_uncommita  Called in the bzr client after an uncommit completes. post_uncommit is called with (local, master, old_revno, old_revid, new_revno, new_revid) where local is the local branch or None, master is the target branch, and an empty branch receives new_revno of 0, new_revid of None.rº  zÞCalled in bzr client and server before a change to the tip of a branch is made. pre_change_branch_tip is called with a breezy.branch.ChangeBranchTipParams. Note that push, pull, commit, uncommit will all trigger this hook.)r   é   r°  zÞCalled in bzr client and server after a change to the tip of a branch is made. post_change_branch_tip is called with a breezy.branch.ChangeBranchTipParams. Note that push, pull, commit, uncommit will all trigger this hook.)r   r©   Útransform_fallback_locationaq  Called when a stacked branch is activating its fallback locations. transform_fallback_location is called with (branch, url), and should return a new url. Returning the same url allows it to be used as-is, returning a different one can be used to cause the branch to stack on a closer copy of that fallback_location. Note that the branch cannot have history accessing methods called on it during this hook because the fallback locations have not been activated. When there are multiple hooks installed for transform_fallback_location, all are called with the url returned from the previous hook.The order is however undefined.)r   é	   r  zíCalled to determine an automatic tag name for a revision. automatic_tag_name is called with (branch, revision_id) and should return a tag name or None if no tag name could be determined. The first non-None tag name returned will be used.)é   rw  rF  zÚCalled after new branch initialization completes. post_branch_init is called with a breezy.branch.BranchInitHookParams. Note that init, branch and checkout (both heavyweight and lightweight) will all trigger this hook.Úpost_switchzeCalled after a checkout switches branch. post_switch is called with a breezy.branch.SwitchHookParams.N)r   r+   Úadd_hookrJ   s    r/   r+   zBranchHooks.__init__D  sä  € õ 	Œ�t˜_¨nÑ=Ô=Ð=Ø�ŠØð Ø!'ñ	)ô 	)ð 	)ð 	�ŠØðà&ñ		(ô 	(ð 	(ð
 	�ŠØðà"ñ		$ô 	$ð 	$ð
 	�ŠØðð ñ
	ô 
	ð 
	ð 	�ŠØð"ð $+ñ	,ô 	,ð 	,ð 	�ŠØð:ð <Cñ	Dô 	Dð 	Dð 	�ŠØ#ð;ð =Cñ	Dô 	Dð 	Dð 	�ŠØ$ð;ð =Cñ	Dô 	Dð 	Dð 	�ŠØ)ð
.ð 06ñ	7ô 	7ð 	7ð 	�ŠØ ðMð ñ	ô 	ð 	ð 	�ŠØð7ð 9?ñ	@ô 	@ð 	@ð 	�ŠØð.à/5ñ		7ô 	7ð 	7ð 	7ð 	7r0   N)r2   r3   r4   r/  r+   r6   r0   r/   rE   rE   =  s2   € € € € € ðð ðX7ð X7ð X7ð X7ð X7r0   rE   c                   ó$   — e Zd ZdZd„ Zd„ Zd„ ZdS )r²  a¸  Object holding parameters passed to `*_change_branch_tip` hooks.

    There are 5 fields that hooks may wish to access:

    Attributes:
      branch: the branch being changed
      old_revno: revision number before the change
      new_revno: revision number after the change
      old_revid: revision id before the change
      new_revid: revision id after the change

    The revid fields are strings. The revno fields are integers.
    c                 óL   — || _         || _        || _        || _        || _        dS )aO  Create a group of ChangeBranchTip parameters.

        Args:
          branch: The branch being changed.
          old_revno: Revision number before the change.
          new_revno: Revision number after the change.
          old_revid: Tip revision id before the change.
          new_revid: Tip revision id after the change.
        N)r:   r³  rµ  r´  r¶  )r.   r:   r³  rµ  r´  r¶  s         r/   r+   zChangeBranchTipParams.__init__²  s+   € ð ˆŒØ"ˆŒØ"ˆŒØ"ˆŒØ"ˆŒˆˆr0   c                 ó"   — | j         |j         k    S r)   ©Ú__dict__r(  s     r/   r;  zChangeBranchTipParams.__eq__Â  ó   € ØŒ} ¤Ò.Ð.r0   c                 ó|   — d                      | j        j        | j        | j        | j        | j        | j        ¦  «        S )Nz$<{} of {} from ({}, {}) to ({}, {})>)r,   r:  r2   r:   r³  r´  rµ  r¶  rJ   s    r/   Ú__repr__zChangeBranchTipParams.__repr__Å  s:   € Ø5×<Ò<ØŒNÔ# T¤[ØŒN˜DœN¨D¬N¸D¼NñLô Lð 	Lr0   N©r2   r3   r4   r/  r+   r;  r�  r6   r0   r/   r²  r²  £  sP   € € € € € ðð ð#ð #ð #ð /ð /ð /ðLð Lð Lð Lð Lr0   r²  c                   ó$   — e Zd ZdZd„ Zd„ Zd„ ZdS )rG  a  Object holding parameters passed to `*_branch_init` hooks.

    There are 4 fields that hooks may wish to access:

    Attributes:
      format: the branch format
      bzrdir: the ControlDir where the branch will be/has been initialized
      name: name of colocated branch, if any (or None)
      branch: the branch created

    Note that for lightweight checkouts, the bzrdir and format fields refer to
    the checkout, hence they are different from the corresponding fields in
    branch, which refer to the original branch.
    c                 ó>   — || _         || _        || _        || _        dS )aÿ  Create a group of BranchInitHook parameters.

        Args:
          format: the branch format
          controldir: the ControlDir where the branch will be/has been
            initialized
          name: name of colocated branch, if any (or None)
          branch: the branch created

        Note that for lightweight checkouts, the bzrdir and format fields refer
        to the checkout, hence they are different from the corresponding fields
        in branch, which refer to the original branch.
        N)r,   r?   r@   r:   )r.   r,   r?   r@   r:   s        r/   r+   zBranchInitHookParams.__init__Û  s$   € ð ˆŒØ$ˆŒØˆŒ	ØˆŒˆˆr0   c                 ó"   — | j         |j         k    S r)   r}  r(  s     r/   r;  zBranchInitHookParams.__eq__î  r  r0   c                 óL   — d                      | j        j        | j        ¦  «        S )Nz
<{} of {}>)r,   r:  r2   r:   rJ   s    r/   r�  zBranchInitHookParams.__repr__ñ  s   € Ø×"Ò" 4¤>Ô#:¸D¼KÑHÔHÐHr0   Nr‚  r6   r0   r/   rG  rG  Ë  sP   € € € € € ðð ðð ð ð&/ð /ð /ðIð Ið Ið Ið Ir0   rG  c                   ó$   — e Zd ZdZd„ Zd„ Zd„ ZdS )ÚSwitchHookParamsal  Object holding parameters passed to `*_switch` hooks.

    There are 4 fields that hooks may wish to access:

    Attributes:
      control_dir: ControlDir of the checkout to change
      to_branch: branch that the checkout is to reference
      force: skip the check for local commits in a heavy checkout
      revision_id: revision ID to switch to (or None)
    c                 ó>   — || _         || _        || _        || _        dS )a:  Create a group of SwitchHook parameters.

        Args:
          control_dir: ControlDir of the checkout to change
          to_branch: branch that the checkout is to reference
          force: skip the check for local commits in a heavy checkout
          revision_id: revision ID to switch to (or None)
        N)Úcontrol_dirrB  Úforcer³   )r.   rŠ  rB  r‹  r³   s        r/   r+   zSwitchHookParams.__init__  s(   € ð 'ˆÔØ"ˆŒØˆŒ
Ø&ˆÔÐÐr0   c                 ó"   — | j         |j         k    S r)   r}  r(  s     r/   r;  zSwitchHookParams.__eq__  r  r0   c                 ód   — d                      | j        j        | j        | j        | j        ¦  «        S )Nz<{} for {} to ({}, {})>)r,   r:  r2   rŠ  rB  r³   rJ   s    r/   r�  zSwitchHookParams.__repr__  s1   € Ø(×/Ò/ØŒNÔ# TÔ%5°t´~ØÔñô ð 	r0   Nr‚  r6   r0   r/   rˆ  rˆ  õ  sK   € € € € € ð	ð 	ð'ð 'ð 'ð/ð /ð /ðð ð ð ð r0   rˆ  c                   ó6   ‡ — e Zd ZdZdˆ fd„	Zd„ Zd„ Zd„ Zˆ xZS )ÚBranchFormatRegistryzBranch format registry.Nc                 óf   •— t          ¦   «                              |¦  «         d | _        d | _        d S r)   )Úsuperr+   Ú_default_formatÚ_default_format_key)r.   Úother_registryr:  s     €r/   r+   zBranchFormatRegistry.__init__  s1   ø€ Ý‰Œ×Ò˜Ñ(Ô(Ð(Ø#ˆÔØ#'ˆÔ Ð Ð r0   c                 ój   — | j         �&| j        €|                      | j         ¦  «        | _        | j        S )z"Return the current default format.)r“  r’  rã   rJ   s    r/   Úget_defaultz BranchFormatRegistry.get_default   s4   € àÔ$Ð0ØÔ(Ð0Ø#'§8¢8¨DÔ,DÑ#EÔ#EˆDÔ ØÔ#Ð#r0   c                 ó"   — || _         d| _        dS )zSet the default format.N)r’  r“  )r.   r,   s     r/   Úset_defaultz BranchFormatRegistry.set_default'  s   € à%ˆÔØ#'ˆÔ Ð Ð r0   c                 ó"   — || _         d| _        dS )z,Set the default format by its format string.N)r“  r’  )r.   Úformat_strings     r/   Úset_default_keyz$BranchFormatRegistry.set_default_key,  s   € à#0ˆÔ Ø#ˆÔÐÐr0   r)   )	r2   r3   r4   r/  r+   r–  r˜  r›  Ú__classcell__r9  s   @r/   r�  r�    sp   ø€ € € € € Ø!Ð!ð(ð (ð (ð (ð (ð (ð
$ð $ð $ð(ð (ð (ð
$ð $ð $ð $ð $ð $ð $r0   r�  s   Bazaar-NG branch format 5
zbreezy.bzr.fullhistoryÚBzrBranchFormat5s"   Bazaar Branch Format 6 (bzr 0.15)
zbreezy.bzr.branchÚBzrBranchFormat6s'   Bazaar Branch Format 7 (needs bzr 1.6)
ÚBzrBranchFormat7s(   Bazaar Branch Format 8 (needs bzr 1.15)
ÚBzrBranchFormat8s$   Bazaar-NG Branch Reference Format 1
ÚBranchReferenceFormatc                   ó   — e Zd ZdZd„ ZdS )ÚBranchWriteLockResultzÂThe result of write locking a branch.

    Attributes:
      token: The token obtained from the underlying branch lock, or
        None.
      unlock: A callable which will unlock the lock.
    c                 óB   — d                      | j        | j        ¦  «        S )Nz!BranchWriteLockResult({!r}, {!r}))r,   rÃ   r½   rJ   s    r/   r�  zBranchWriteLockResult.__repr__[  s   € Ø2×9Ò9¸$¼+ÀtÄzÑRÔRÐRr0   N)r2   r3   r4   r/  r�  r6   r0   r/   r£  r£  R  s2   € € € € € ðð ðSð Sð Sð Sð Sr0   r£  c                   ó   — e Zd Zd„ ZdS )Ú_Resultc                 óÂ   — t          | dd ¦  «        sd S |                     d¦  «         | j        D ].\  }}}|                     d                     |¦  «        ¦  «         Œ/d S )NÚtag_conflictszConflicting tags:
z    {}
)ÚgetattrÚwriter¨  r,   )r.   Úto_filer@   Úvalue1Úvalue2s        r/   Ú_show_tag_confictsz_Result._show_tag_confictse  st   € Ý�t˜_¨dÑ3Ô3ð 	ØˆFØ�ŠÐ+Ñ,Ô,Ð,Ø$(Ô$6ð 	3ð 	3Ñ ˆD�&˜&Ø�MŠM˜*×+Ò+¨DÑ1Ô1Ñ2Ô2Ð2Ð2ð	3ð 	3r0   N)r2   r3   r4   r®  r6   r0   r/   r¦  r¦  c  s#   € € € € € ð3ð 3ð 3ð 3ð 3r0   r¦  c                   óÀ   — e Zd ZU dZeeef         ed<   eeef         ed<   eed<   eed<   e	ed<   e	ed<   e
e	         ed<   e	ed	<   ed
         ed<   ded<   deddfd„ZdS )r~  a‘  Result of a Branch.pull operation.

    Attributes:
      old_revno: Revision number before pull.
      new_revno: Revision number after pull.
      old_revid: Tip revision id before pull.
      new_revid: Tip revision id after pull.
      source_branch: Source (local) branch object. (read locked)
      master_branch: Master branch of the target, or the target if no
        Master
      local_branch: target branch if there is a Master, else None
      target_branch: Target/destination branch object. (write locked)
      tag_conflicts: A list of tag conflicts, see BasicTags.merge_to
      tag_updates: A dict with new tags, see BasicTags.merge_to
    r³  rµ  r´  r¶  Úsource_branchÚmaster_branchÚlocal_branchrö  r$   r¨  r%   Útag_updatesr«  rG   Nc                 ó¶  — t          | dd ¦  «        }t          | dd ¦  «        }t          ¦   «         s“| j        | j        k    r|                     d| j        z  ¦  «         |r%|                     dt          |¦  «        z  ¦  «         | j        | j        k    r/|s-|s|                     d¦  «         n|                     d¦  «         |                      |¦  «         d S )Nr¨  r³  zNow on revision %d.
z%d tag(s) updated.
zNo revisions or tags to pull.
zNo revisions to pull.
)r©  r    r´  r¶  rª  rµ  rj   r®  )r.   r«  r¨  r³  s       r/   ÚreportzPullResult.report‰  sá   € Ý  o°tÑ<Ô<ˆÝ˜d M°4Ñ8Ô8ˆÝ‰zŒzð 		=ØŒ~ ¤Ò/Ð/Ø—’Ð5¸¼ÑFÑGÔGÐGØð IØ—’Ð4µs¸;Ñ7GÔ7GÑGÑHÔHÐHØŒ~ ¤Ò/Ð/¸Ð/Ø$ð =Ø—M’MÐ"CÑDÔDÐDÐDà—M’MÐ";Ñ<Ô<Ð<Ø×Ò Ñ(Ô(Ð(Ð(Ð(r0   )r2   r3   r4   r/  r   r1  r3  r0  r   r>   r   r   r	   rµ  r6   r0   r/   r~  r~  m  sØ   € € € € € € ðð ð  �S˜(�]Ô#Ð#Ð#Ñ#Ø�S˜(�]Ô#Ð#Ð#Ñ#ØÐÐÑØÐÐÑØÐÐÑØÐÐÑØ˜6Ô"Ð"Ð"Ñ"ØÐÐÑØ˜Ô&Ð&Ð&Ñ&ØÐÐÑð)˜fð )¨ð )ð )ð )ð )ð )ð )r0   r~  c                   ó€   — e Zd ZU dZeed<   eed<   eed<   eed<   eed<   eed<   eed<   ee         ed	<   d
e	ddfd„Z
dS )ÚBranchPushResultae  Result of a Branch.push operation.

    Attributes:
      old_revno: Revision number (eg 10) of the target before push.
      new_revno: Revision number (eg 12) of the target after push.
      old_revid: Tip revision id (eg joe@foo.com-1234234-aoeua34) of target
        before the push.
      new_revid: Tip revision id (eg joe@foo.com-5676566-boa234a) of target
        after the push.
      source_branch: Source branch object that the push was from. This is
        read locked, and generally is a local (and thus low latency) branch.
      master_branch: If target is a bound branch, the master branch of
        target, or target itself. Always write locked.
      target_branch: The direct Branch where data is being sent (write
        locked).
      local_branch: If the target is a bound branch this will be the
        target, otherwise it will be None.
    r³  rµ  r´  r¶  r°  r±  rö  r²  r«  rG   Nc           	      ój  — ddl m}m} t          | dd ¦  «        }t          | dd ¦  «        }t	          ¦   «         så| j        | j        k    rW| j        �t           |d¦  «        | j        ¦  «         n1t           |d¦  «        | j         	                    d¦  «        ¦  «         |r7t           |dd	t          |¦  «        ¦  «        t          |¦  «        z  ¦  «         | j        | j        k    r5|s3|st           |d
¦  «        ¦  «         nt           |d¦  «        ¦  «         |                      |¦  «         d S )Nr   ©ÚgettextÚngettextr¨  r³  zPushed up to revision %d.zPushed up to revision id %s.zutf-8z%d tag updated.z%d tags updated.z!No new revisions or tags to push.zNo new revisions to push.)Úbreezy.i18nrº  r»  r©  r    r´  r¶  rµ  r   Údecoderj   r®  )r.   r«  rº  r»  r¨  r³  s         r/   rµ  zBranchPushResult.report¶  sw  € Ø1Ð1Ð1Ð1Ð1Ð1Ð1Ð1õ
    o°tÑ<Ô<ˆÝ˜d M°4Ñ8Ô8ˆÝ‰zŒzð 	?ØŒ~ ¤Ò/Ð/Ø”>Ð-Ý˜˜Ð!<Ñ=Ô=Øœñ)ô )ð )ð )õ ˜˜Ð!?Ñ@Ô@Øœ×.Ò.¨wÑ7Ô7ñ9ô 9ð 9àð DÝ�X�XÐ/Ð1CÝ! +Ñ.Ô.ñ0ô 0Ý25°kÑ2BÔ2BñCñ Dô Dð DàŒ~ ¤Ò/Ð/¸Ð/Ø$ð ?Ý˜˜Ð!DÑEÔEÑFÔFÐFÐFå˜˜Ð!<Ñ=Ô=Ñ>Ô>Ð>Ø×Ò Ñ(Ô(Ð(Ð(Ð(r0   )r2   r3   r4   r/  r1  r0  r   r>   r   r	   rµ  r6   r0   r/   r·  r·  ™  s£   € € € € € € ðð ð& €N€N�NØ€N€N�NØÐÐÑØÐÐÑØÐÐÑØÐÐÑØÐÐÑØ˜6Ô"Ð"Ð"Ñ"ð)˜fð )¨ð )ð )ð )ð )ð )ð )r0   r·  c                   ó(   — e Zd ZdZd„ Zdeddfd„ZdS )rÝ  zDResults of checking branch consistency.

    See `Branch.check`
    c                 ó"   — || _         g | _        d S r)   )r:   r   r<   s     r/   r+   zBranchCheckResult.__init__×  s   € ØˆŒØˆŒˆˆr0   ÚverboserG   Nc                 óÜ   — ddl m}m} t           |d¦  «                             | j        j        | j        j        ¦  «        ¦  «         | j        D ]}t           |d¦  «        |¦  «         ŒdS )z›Report the check results via trace.note.

        Args:
          verbose: Requests more detailed display of what was checked,
            if any.
        r   r¹  zchecked branch {0} format {1}zfound error:%sN)	r¼  rº  r»  r   r,   r:   r;   rC   r   )r.   rÀ  rº  r»  Úerrors        r/   Úreport_resultsz BranchCheckResult.report_resultsÛ  s“   € ð 	2Ð1Ð1Ð1Ð1Ð1Ð1Ð1ÝˆWˆWÐ4Ñ5Ô5×<Ò<ØŒKÔ  $¤+Ô"5ñ7ô 7ñ 	8ô 	8ð 	8à”[ð 	3ð 	3ˆEÝ��Ð)Ñ*Ô*¨EÑ2Ô2Ð2Ð2ð	3ð 	3r0   )r2   r3   r4   r/  r+   r5  rÃ  r6   r0   r/   rÝ  rÝ  Ñ  sO   € € € € € ðð ð
ð ð ð3 dð 3¨tð 3ð 3ð 3ð 3ð 3ð 3r0   rÝ  c                   ó0  ‡ — e Zd ZdZg Z	 ed„ ¦   «         Z	 	 	 	 ddedee	         dee
e                  ded	ef
d
„Z	 	 	 ddedee	         dedee         fd„Zdd„Z	 	 	 ddee	         dee         ded	ej        fd„Zdd„Zededed	d fˆ fd„¦   «         Zˆ xZS )r6  zìThis class represents operations taking place between two branches.

    Its instances have methods like pull() and push() and contain
    references to the source and target repositories these operations
    can be carried out on.
    c                 ó*   — t          | j        ¦  «        ‚)zðReturn an iterable of format tuples for testing.

        Returns: An iterable of (from_format, to_format) to use when testing
            this InterBranch class. Each InterBranch class should define this
            method itself.
        )rd   Ú_get_branch_formats_to_test©Úklasss    r/   rÆ  z'InterBranch._get_branch_formats_to_testô  s   € õ " %Ô"CÑDÔDÐDr0   FNr}  rg   rK   rœ   rG   c                 ó*   — t          | j        ¦  «        ‚)zœMirror source into target branch.

        The target branch is considered to be 'local', having low latency.

        Returns: PullResult instance
        )rd   r€  )r.   r}  rg   rK   rœ   rÄ  s         r/   r€  zInterBranch.pullþ  s   € õ " $¤)Ñ,Ô,Ð,r0   r5  Ú_override_hook_source_branchc                 ó*   — t          | j        ¦  «        ‚)z…Mirror the source branch into the target branch.

        The source branch is considered to be 'local', having low latency.
        )rd   r„  )r.   r}  rg   r5  rÊ  rÄ  s         r/   r„  zInterBranch.push
  s   € õ " $¤)Ñ,Ô,Ð,r0   c                 ó*   — t          | j        ¦  «        ‚)a,  Copy the content of source into target

        Args:
          revision_id:
            if not None, the revision history in the new branch will
            be truncated to end with revision_id.
          tag_selector: Optional callback that can decide
            to copy or not copy tags.
        )rd   rÊ  )r.   r³   rÄ  s      r/   rÊ  zInterBranch.copy_content_into  s   € õ " $Ô"8Ñ9Ô9Ð9r0   r4  c                 ó*   — t          | j        ¦  «        ‚)z¸Fetch revisions.

        Args:
          stop_revision: Last revision to fetch
          limit: Optional rough limit of revisions to fetch
        Returns: FetchResult object
        )rd   r7  )r.   rg   r4  r5  s       r/   r7  zInterBranch.fetch  s   € õ " $¤*Ñ-Ô-Ð-r0   c                 ó*   — t          | j        ¦  «        ‚)z<Import reference information from source to target.
        )rd   rÛ  rJ   s    r/   rÛ  zInterBranch.update_references+  s   € õ " $Ô"8Ñ9Ô9Ð9r0   ru  r‚  c                 ón   •— t          t          t          ¦   «                              ||¦  «        ¦  «        S r)   )r   r6  r‘  rã   )r.   ru  r‚  r:  s      €r/   rã   zInterBranch.get0  s%   ø€ å•K¥¡¤§¢¨V°VÑ!<Ô!<Ñ=Ô=Ð=r0   )FNNFN©FNFNNr,  r.  r+  )r2   r3   r4   r/  Ú_optimisersri  rÆ  r5  r   r   r   r#   r~  r€  r>   r„  rÊ  r1  r   ÚFetchResultr7  rÛ  rã   rœ  r9  s   @r/   r6  r6  é  s´  ø€ € € € € ðð ð €KØ4àðEð Eñ „[ðEð &+Ø37Ø>BØ/3ð
-ð 
-˜dð 
-Ø$ ZÔ0ð
-à"*¨4°	¬?Ô";ð
-ð ð
-ð 9Cð
-ð 
-ð 
-ð 
-ð SWØSWØð-ð -˜dð -¸8ÀJÔ;Oð -Øð-Ø@HÈÔ@Pð-ð -ð -ð -ð
:ð 
:ð 
:ð 
:ð ;?Ø%)Ø!ð
.ð 
. 8¨JÔ#7ð 
.Ø˜c”]ð
.àð
.à&0Ô&<ð
.ð 
.ð 
.ð 
.ð:ð :ð :ð :ð
 ð>˜&ð >¨&ð >°]ð >ð >ð >ð >ð >ñ „[ð>ð >ð >ð >ð >r0   r6  c                 ó@   — t          | t          ¦  «        r| rddgS g S | S )Nrj  rO   )rY  r5  )r}  s    r/   Ú_fix_overwrite_typerÔ  5  s2   € Ý�)�TÑ"Ô"ð Øð 	Ø˜vÐ&Ð&àˆIØÐr0   c                   óª   — e Zd ZdZed„ ¦   «         Zed„ ¦   «         Zed„ ¦   «         Zdd„Zdd„Z		 	 dd	„Z
	 	 	 	 dd„Z	 	 dd„Zdd„Z	 	 	 	 dd„Zd„ ZdS )ÚGenericInterBranchz=InterBranch implementation that uses public Branch functions.c                 ó   — dS )NTr6   )rÈ  ru  r‚  s      r/   Úis_compatiblez GenericInterBranch.is_compatibleA  s	   € ð ˆtr0   c                 óh   — t                                ¦   «         t                                ¦   «         fgS r)   )Úformat_registryr–  rÇ  s    r/   rÆ  z.GenericInterBranch._get_branch_formats_to_testF  s(   € å ×,Ò,Ñ.Ô.µ×0KÒ0KÑ0MÔ0MÐNÐOÐOr0   c                 óp   — t          |t          j        ¦  «        r|                     ¦   «          |j        S |S r)   )rY  ÚremoteÚRemoteBranchFormatÚ_ensure_realÚ_custom_format)rÈ  r,   s     r/   Úunwrap_formatz GenericInterBranch.unwrap_formatJ  s7   € å�f�fÔ7Ñ8Ô8ð 	)Ø×ÒÑ!Ô!Ð!ØÔ(Ð(Øˆr0   Nc           	      óœ  — | j                              ¦   «         5  | j                             ¦   «         5  | j                              | j        |¦  «         |                      ¦   «          	 | j                              ¦   «         }|r| j                             |¦  «         n9# t          j	        $ r'}t          dt          |¦  «        ¦  «         Y d}~nd}~ww xY w| j                              ¦   «         r+| j         j                             | j        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¹Copy the content of source into target

        revision_id: if not None, the revision history in the new branch will
                     be truncated to end with revision_id.
        z%parent was not accessible to copy: %sN©Úselector)ru  rÀ   r‚  r¼   r×  rÛ  r�  r^  r   rŽ  r   rš   r„   rO   Úmerge_to)r.   r³   rÄ  r�  rž   s        r/   rÊ  z$GenericInterBranch.copy_content_intoQ  sø  € ð Œ[×"Ò"Ñ$Ô$ð 	Sð 	S d¤k×&<Ò&<Ñ&>Ô&>ð 	Sð 	SØŒK×,Ò,¨T¬[¸+ÑFÔFÐFØ×"Ò"Ñ$Ô$Ð$ð3Øœ×/Ò/Ñ1Ô1�ð ð 3Ø”K×*Ò*¨6Ñ2Ô2Ð2øøõ	 Ô,ð Hð Hð HÝÐ>ÅÀAÁÄÑGÔGÐGÐGÐGÐGÐGÐGøøøøðHøøøð
 Œ{×2Ò2Ñ4Ô4ð SØ”Ô ×)Ò)¨$¬+Ô*:À\Ð)ÑRÔRÐRð	Sð 	Sð 	Sñ 	Sô 	Sð 	Sð 	Sð 	Sð 	Sð 	Sð 	Søøøð 	Sð 	Sð 	Sð 	Sð 	Sð 	Sð 	Sñ 	Sô 	Sð 	Sð 	Sð 	Sð 	Sð 	Sð 	Sð 	Søøøð 	Sð 	Sð 	Sð 	Sð 	Sð 	Ss_   šE´5D)Á*B ÂD)Â CÂ/CÃD)ÃCÃAD)ÄEÄ)D-	Ä-EÄ0D-	Ä1EÅEÅEFc                 óv  — | j         j        | j        j        k    rdg fS | j                             ¦   «         5  | j                              ¦   «         5  t
                               ¦   «         }| j        |_        ||_        | j        j	        |_
        | j         j	        |_        t
          j        j        |_        ||_        |                     ¦   «         }| j         j	                             | j        j	        ||¬¦  «        cd d d ¦  «         cd d d ¦  «         S # 1 swxY w Y   d d d ¦  «         d S # 1 swxY w Y   d S )Nr   )r5  Ú
fetch_spec)r‚  rA   ru  rÀ   r¼   r7  ÚFetchSpecFactoryr°  Úsource_branch_stop_revision_idr   Úsource_repoÚtarget_repoÚTargetRepoKindsÚPREEXISTINGÚtarget_repo_kindr4  Úmake_fetch_spec)r.   rg   r4  r5  Úfetch_spec_factoryræ  s         r/   r7  zGenericInterBranch.fetchd  sÀ  € ØŒ;Ô˜tœ{Ô/Ò/Ð/Ø�r�7ˆNØŒ[×"Ò"Ñ$Ô$ð 	'ð 	' d¤k×&<Ò&<Ñ&>Ô&>ð 	'ð 	'Ý!&×!7Ò!7Ñ!9Ô!9ÐØ/3¬{ÐÔ,Ø@MÐÔ=Ø-1¬[Ô-CÐÔ*Ø-1¬[Ô-CÐÔ*åÔ%Ô1ð Ô/à',ÐÔ$Ø+×;Ò;Ñ=Ô=ˆJØ”;Ô)×/Ò/Ø”Ô&ØØ%ð 0ñ 'ô 'ð	'ð 	'ð 	'ð 	'ñ 	'ô 	'ð 	'ð 	'ð 	'ð 	'ð 	'ñ 	'ô 	'ð 	'ð 	'ð 	'ð 	'ð 	'ð 	'øøøð 	'ð 	'ð 	'ð 	'ð 	'ð 	'ð 	'ñ 	'ô 	'ð 	'ð 	'ð 	'ð 	'ð 	'ð 	'ð 	'øøøð 	'ð 	'ð 	'ð 	'ð 	'ð 	's6   ¸D.ÁB+DÃ=D.ÄD	ÄD.ÄD	ÄD.Ä.D2Ä5D2c                 óp  — | j                              ¦   «         5  | j                             ¦   «         5  | j                              ¦   «         \  }}d }|€1|}t          j        |¦  «        r	 d d d ¦  «         d d d ¦  «         d S |}| j                             ¦   «         }|                      |¬¦  «         |s[|€| j        j	         
                    ¦   «         }| j                             |||| j         ¦  «        r	 d d d ¦  «         d d d ¦  «         d S |€X|€| j        j	         
                    ¦   «         }| j                             ¦   «         \  }}	|                     |||f|	|fg¦  «        }| 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 )Nr÷  )ru  rÀ   r‚  r¼   rM  rm   rx  rk   r7  r   r«   r  rN  rK  )
r.   rg   r}  r¶   Úother_revnoÚother_last_revisionÚ
stop_revnor´   rÒ   Úthis_last_revisions
             r/   Ú_update_revisionsz$GenericInterBranch._update_revisionsv  sø  € àŒ[×"Ò"Ñ$Ô$ð #	Jð #	J d¤k×&<Ò&<Ñ&>Ô&>ð #	Jð #	JØ/3¬{×/MÒ/MÑ/OÔ/OÑ,ˆKÐ,ØˆJØÐ$Ø 3�Ý Ô(¨Ñ7Ô7ð àð#	Jð #	Jð #	Jñ #	Jô #	Jð #	Jð #	Jð #	Jð #	Jñ #	Jô #	Jð #	Jð #	Jð #	Jð )�
ð ”{×0Ò0Ñ2Ô2ˆHð
 �JŠJ ]ˆJÑ3Ô3Ð3àð Ø�=Ø œKÔ2×<Ò<Ñ>Ô>�EØ”;×?Ò?Ø% x°¸¼ñEô Eð ð ð5#	Jð #	Jð #	Jñ #	Jô #	Jð #	Jð #	Jð #	Jð #	Jñ #	Jô #	Jð #	Jð #	Jð #	Jð6 Ð!Ø�=Ø œKÔ2×<Ò<Ñ>Ô>�Eà”K×2Ò2Ñ4Ô4ñ /�
Ð.à"×8Ò8Ø!Ð%8¸+Ð$FØ%7¸Ð$Dð$FñGô G�
ð ŒK×.Ò.¨z¸=ÑIÔIÐIðG#	Jð #	Jð #	Jñ #	Jô #	Jð #	Jð #	Jð #	Jð #	Jð #	Jð #	Jøøøð #	Jð #	Jð #	Jð #	Jð #	Jð #	Jð #	Jñ #	Jô #	Jð #	Jð #	Jð #	Jð #	Jð #	Jð #	Jð #	Jøøøð #	Jð #	Jð #	Jð #	Jð #	Jð #	JsN   šF+´8FÁ,F+ÂA6FÃ:F+ÄA5FÆF+ÆF	ÆF+ÆF	ÆF+Æ+F/Æ2F/Tc           
      óæ  — t          j        ¦   «         5 }|                     | j                             ¦   «         ¦  «         | j                             ¦   «         }	|r|	st          j        ¦   «         ‚d}
d}|	r^t          j	        |	¦  «        }	 | j
        j                             |¦  «        }|dk    }n## t          j        t          j        f$ r d}Y nw xY w|sE|	rC|sA| j                             |¦  «        }
|                     |
                     ¦   «         ¦  «         |
r|
                     | j
        ||d|¬¦  «         |                      |||
||| |¬¦  «        cddd¦  «         S # 1 swxY w Y   dS )a  Pull from source into self, updating my master if any.

        Args:
          run_hooks: Private parameter - if false, this branch
            is being called because it's the master of the primary branch,
            so it should not run its hooks.
        NFr•  )r}  rg   Ú	run_hooksrÄ  )Ú_hook_masterr÷  Ú_override_hook_targetÚmerge_tags_to_masterrÄ  )Ú
contextlibÚ	ExitStackÚenter_contextr‚  r¼   r:  r   ÚLocalRequiresBoundBranchr   Únormalize_urlru  rI   r€   ÚPathNotChildr\  r—   r€  Ú_pull)r.   r}  rg   rK   r÷  rù  rœ   rÄ  Ú
exit_stackÚbound_locationr±  Úsource_is_masterÚ
normalizedr€   s                 r/   r€  zGenericInterBranch.pull�  sþ  € õ Ô!Ñ#Ô#ð  	+ zØ×$Ò$ T¤[×%;Ò%;Ñ%=Ô%=Ñ>Ô>Ð>Ø!œ[×;Ò;Ñ=Ô=ˆNØð 8˜^ð 8ÝÔ5Ñ7Ô7Ð7Ø ˆMØ$ÐØð -õ &Ô3°NÑCÔC�
ð-Ø"œkÔ8×@Ò@ÀÑLÔL�GØ(/°2ªÐ$Ð$øÝÔ+­XÔ-@ÐAð -ð -ð -Ø',Ð$Ð$Ð$ð-øøøàð E˜^ð EÐ4Dð Eà $¤× =Ò =Ø'ñ!)ô !)�à×(Ò(¨×)AÒ)AÑ)CÔ)CÑDÔDÐDØð /à×"Ò"Ø”K¨9ÀMØ#Ø!-ð #ñ /ô /ð /ð —:’:Ø˜=°}Ø#Ø&;Ø)9Ð%9Ø)ð ñ +ô +ð7 	+ð  	+ð  	+ð  	+ñ  	+ô  	+ð  	+ð  	+ð  	+ð  	+ð  	+ð  	+øøøð  	+ð  	+ð  	+ð  	+ð  	+ð  	+s7   ”A7E&Â%B2Â1E&Â2CÃE&ÃCÃBE&Å&E*Å-E*c                 ód  ‡‡
— |rt          j        | j        | j        ¦  «        ‚ˆˆ
fd„}| j                             ¦   «         5  | j                             ¦   «         5  | j                             ¦   «         }|rÃ| j        j        |k    r³| j                             ¦   «         }|                     ¦   «         5  t           
                    | j        |¦  «        }	|	                     |||¬¦  «         |                      |||¬¦  «        Š
|‰
_        | j        ‰
_         |¦   «          ddd¦  «         n# 1 swxY w Y   n7d}|                      |||¬¦  «        Š
| j        ‰
_        d‰
_         |¦   «          ‰
cddd¦  «         cddd¦  «         S # 1 swxY w Y   ddd¦  «         dS # 1 swxY w Y   dS )ae  See InterBranch.push.

        This is the basic concrete implementation of push()

        Args:
          _override_hook_source_branch: If specified, run the hooks
            passing this Branch as the source, rather than self.  This is for
            use of RemoteBranch, where push is delegated to the underlying
            vfs-based Branch.
        c                  óZ   •— ‰r‰‰_         t          j        d         D ]}  | ‰¦  «         Œd S )Nrm  )r°  r>   rF   )rW   rÊ  rä   s    €€r/   Ú
_run_hooksz+GenericInterBranch.push.<locals>._run_hooksÛ  sC   ø€ Ø+ð DØ'C�Ô$Ýœ [Ô1ð ð �Ø��V‘”��ðð r0   )rÄ  N)r   rÐ  ru  r‚  rÀ   r¼   r:  rA   r—   r6  rã   Ú_basic_pushr±  r²  )r.   r}  rg   r5  rÊ  rÄ  r  r  r±  Úmaster_interrä   s       `     @r/   r„  zGenericInterBranch.pushÊ  sÀ  øø€ ð ð 	FÝÔ+¨D¬K¸¼ÑEÔEÐEð	ð 	ð 	ð 	ð 	ð 	ð Œ[×"Ò"Ñ$Ô$ð  	ð  	 d¤k×&<Ò&<Ñ&>Ô&>ð  	ð  	Ø!œ[×;Ò;Ñ=Ô=ˆNØð  $¤+Ô"2°nÒ"DÐ"Dð
 !%¤× =Ò =Ñ ?Ô ?�Ø"×-Ò-Ñ/Ô/ð !ð !å#.§?¢?°4´;ÀÑ#NÔ#N�LØ ×,Ò,Ø! =¸|ð -ñ Mô Mð Mð
 "×-Ò-Ø! =¸|ð .ñ Mô M�Fà+8�FÔ(Ø*.¬+�FÔ'Ø�J‘L”L�Lð!ð !ð !ñ !ô !ð !ð !ð !ð !ð !ð !øøøð !ð !ð !ð !øð !%�à×)Ò)Ø˜}¸<ð *ñ Iô I�ð
 (,¤{�Ô$Ø&*�Ô#Ø�
‘”�ØðA 	ð  	ð  	ð  	ñ  	ô  	ð  	ð  	ð  	ð  	ð  	ñ  	ô  	ð  	ð  	ð  	ð  	ð  	ð  	øøøð  	ð  	ð  	ð  	ð  	ð  	ð  	ñ  	ô  	ð  	ð  	ð  	ð  	ð  	ð  	ð  	øøøð  	ð  	ð  	ð  	ð  	ð  	s\   ÁF%ÁAFÂ6A.D0Ä$FÄ0D4Ä4FÄ7D4Ä8<FÅ4F%ÆF	ÆF%ÆF	ÆF%Æ%F)Æ,F)c                 ót  — t          ¦   «         }| j        |_        | j        |_        | j                             ¦   «         \  |_        |_        t          |¦  «        }|j        |k    rC| j        j	         
                    | j        j	        ¦  «        }|                      |d|v |¬¦  «         | j                             ¦   «         r;| j        j                             | j        j        d|v |¬¦  «        \  |_        |_        |                      ¦   «          | j                             ¦   «         \  |_        |_        |S )z�Basic implementation of push without bound branches or hooks.

        Must be called with source read locked and target write locked.
        rj  ©r}  r¶   rO   râ  )r·  ru  r°  r‚  rö  rM  r³  r´  rÔ  r   r«   rõ  r„   rO   rä  r³  r¨  rÛ  rµ  r¶  )r.   r}  rg   rÄ  rä   r¶   s         r/   r	  zGenericInterBranch._basic_push	  s4  € õ
 "Ñ#Ô#ˆØ#œ{ˆÔØ#œ{ˆÔØ-1¬[×-KÒ-KÑ-MÔ-MÑ*ˆÔ˜&Ô*Ý'¨	Ñ2Ô2ˆ	ØÔ˜}Ò,Ð,ð ”KÔ*×4Ò4°T´[Ô5KÑLÔLˆEØ×"Ò"Ø¨)°yÐ*@Èð #ñ Pô Pð PàŒ;×.Ò.Ñ0Ô0ð 	Sà”Ô ×)Ò)Ø”KÔ$ f°	Ð&9ÀLð *ñ Rô Rñ 5ˆFÔ Ô 4ð 	×ÒÑ Ô Ð Ø-1¬[×-KÒ-KÑ-MÔ-MÑ*ˆÔ˜&Ô*Øˆr0   c
                 ój  — |rt          j        ¦   «         ‚t          ¦   «         }
| j        |
_        |€| j        |
_        n||
_        | j                             ¦   «         5  | j        j         	                    | j        j        ¦  «        }| j         
                    ¦   «         \  |
_        |
_        t          |¦  «        }|                      |d|v |¬¦  «         | j        j                             | j        j        d|v | |	¬¦  «        \  |
_        |
_        |                      ¦   «          | j         
                    ¦   «         \  |
_        |
_        |r||
_        |
j        |
_        n|
j        |
_        d|
_        |r t0          j        d         D ]} ||
¦  «         Œ|
cddd¦  «         S # 1 swxY w Y   dS )a+  See Branch.pull.

        This function is the core worker, used by GenericInterBranch.pull to
        avoid duplication when pulling source->master and source->local.

        Args:
          _hook_master: Private parameter - set the branch to
            be supplied as the master to pull hooks.
          run_hooks: Private parameter - if false, this branch
            is being called because it's the master of the primary branch,
            so it should not run its hooks.
            is being called because it's the master of the primary branch,
            so it should not run its hooks.
          _override_hook_target: Private parameter - set the branch to be
            supplied as the target_branch to pull hooks.
          local: Only update the local branch, and not the bound branch.
        Nrj  r  rO   )Úignore_masterrã  ro  )r   rþ  r~  ru  r°  r‚  rö  rÀ   r   r«   rM  r³  r´  rÔ  rõ  rO   rä  r³  r¨  rÛ  rµ  r¶  r±  r²  r>   rF   )r.   r}  rg   rK   rø  r÷  rù  rœ   rú  rÄ  rä   r¶   rW   s                r/   r  zGenericInterBranch._pull	  s  € ð, ð 	4ÝÔ1Ñ3Ô3Ð3Ý‘”ˆØ#œ{ˆÔØ Ð(Ø#'¤;ˆFÔ Ð à#8ˆFÔ ØŒ[×"Ò"Ñ$Ô$ð  	ð  	ð ”KÔ*×4Ò4°T´[Ô5KÑLÔLˆEð
 ”×.Ò.Ñ0Ô0ñ /ˆFÔ˜fÔ.å+¨IÑ6Ô6ˆIØ×"Ò"Ø¨)°yÐ*@Èð #ñ Pô Pð Pð ”Ô ×)Ò)Ø”KÔ$ f°	Ð&9Ø&:Ð":Ø)ð *ñ +ô +ñ 5ˆFÔ Ô 4ð
 ×"Ò"Ñ$Ô$Ð$à”×.Ò.Ñ0Ô0ñ /ˆFÔ˜fÔ.àð +Ø'3�Ô$Ø&,Ô&:�Ô#Ð#à'-Ô';�Ô$Ø&*�Ô#Øð !Ý"œL¨Ô5ð !ð !�DØ�D˜‘L”L�L�LØðA 	ð  	ð  	ð  	ñ  	ô  	ð  	ð  	ð  	ð  	ð  	ð  	øøøð  	ð  	ð  	ð  	ð  	ð  	s   ÁD<F(Æ(F,Æ/F,c                 ó   — t          | j        j        dd¦  «        sd S | j                             ¦   «         }t	          |¦  «        dk    rd S | j        j        }| j        j        }| j                             ¦   «         }|                     ¦   «         D ]b\  }\  }}	 t          j	        |||¦  «        }n*# t          j
        $ r t          j        ||¦  «        }Y nw xY w|                     |||f¦  «         Œc| j                             |¦  «         d S )NrÚ  Fr   )r©  ru  rC   Ú_get_all_reference_inforj   rA   r‚  rÙ   r   Ú
rebase_urlÚInvalidRebaseURLsr“   Ú
setdefaultÚ_set_all_reference_info)r.   Úreference_dictÚold_baseÚnew_baseÚtarget_reference_dictÚ	tree_pathÚbranch_locationÚfile_ids           r/   rÛ  z$GenericInterBranch.update_references[	  s9  € Ý�t”{Ô*Ð,JÈEÑRÔRð 	ØˆFØœ×<Ò<Ñ>Ô>ˆÝˆ~ÑÔ !Ò#Ð#ØˆFØ”;Ô#ˆØ”;Ô#ˆØ $¤× CÒ CÑ EÔ EÐØ5C×5IÒ5IÑ5KÔ5Kð 	7ð 	7Ñ1ˆIÑ1˜¨ðKÝ"*Ô"5°oØ6>Àñ#Jô #J��øåÔ-ð Kð Kð Kå"*¤-°¸/Ñ"JÔ"J���ðKøøøð "×,Ò,Ø˜O¨WÐ5ñ7ô 7ð 7ð 7àŒ×+Ò+Ð,AÑBÔBÐBÐBÐBs   ÂB1Â1$CÃCr,  r.  r-  )FNNTNFNrÐ  r)   )	FNNNTNFTN)r2   r3   r4   r/  ri  rØ  rÆ  rà  rÊ  r7  rõ  r€  r„  r	  r  rÛ  r6   r0   r/   rÖ  rÖ  >  sF  € € € € € ØGÐGàðð ñ „[ðð ðPð Pñ „[ðPð ðð ñ „[ððSð Sð Sð Sð&'ð 'ð 'ð 'ð$ ?DØ $ð%Jð %Jð %Jð %JðN 37Ø15Ø/4Øð++ð ++ð ++ð ++ðZ ?DØ=Að7ð 7ð 7ð 7ðrð ð ð ð0 48ØEIØ05Ø6:ð>ð >ð >ð >ð@Cð Cð Cð Cð Cr0   rÖ  )IÚ__docformat__Útypingr   r   r   r   r   r	   r
   r   r   Úglobalsrû  r  r•  r   r†   r   r   r   rm   r   r   r   r?   r   r   r   r   rF   r   Úinterr   Úlockr   r   Útracer   r   r   r    r!   rz   r"   r#   rO  r$   r%   r*   r'   ÚUnsupportedOperationr8   r>   rB   rE   r²  rG  rˆ  r�  ÚFormatRegistryÚnetwork_format_registryrÚ  Úregister_lazyr›  r£  r¦  r~  r·  rÝ  r6  rÔ  rÖ  Úregister_optimiserr6   r0   r/   ú<module>r'     sÿ  ðð" €à RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ Rà $Ð $Ð $Ð $Ð $Ð $Ø €ˆGˆG‰IŒIð 	ñ 	ô 	ð 	ð Ð Ð Ð Ø Ð Ð Ð ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ðð ð ð ð ð ð ð ð ð ð ð ð Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð Ø #Ð #Ð #Ð #Ð #Ð #Ø  Ð  Ð  Ð  Ð  Ð  Ø CÐ CÐ CÐ CÐ CÐ CÐ CÐ CÐ CÐ CÐ CÐ CÐ CÐ CØ /Ð /Ð /Ð /Ð /Ð /Ð /Ð /àð -Ø,Ð,Ð,Ð,Ð,Ð,Ð,Ð,ðð ð ð ð ˜fœoñ ô ð ð#ð #ð #ð #ð #˜Ô4ñ #ô #ð #ðH<ð H<ð H<ð H<ð H<Ðñ H<ô H<ð H<ðV*[ð [ð [ð [ð [Ð)ñ [ô [ð [ð|_7ð _7ð _7ð _7ð _7�%ñ _7ô _7ð _7ðF ˆ{‰}Œ}€„ð%Lð %Lð %Lð %Lð %Lñ %Lô %Lð %LðP'Ið 'Ið 'Ið 'Ið 'Iñ 'Iô 'Ið 'IðT ð  ð  ð  ð  ñ  ô  ð  ðF$ð $ð $ð $ð $Ð9ñ $ô $ð $ð4 @˜(Ô1°,Ô?ÑAÔAÐ ðð 'Ð&Ð'>Ñ?Ô?€ð
 × Ò Ø"Ð$<Øñô ð ð × Ò Ø*ØÐ+ñ-ô -ð -ð × Ò Ø/ØÐ+ñ-ô -ð -ð × Ò Ø0ØÐ+ñ-ô -ð -ð × Ò Ø,ØÐ0ñ2ô 2ð 2ð × Ò Ð KÑ LÔ LÐ Lð
Sð 
Sð 
Sð 
Sð 
SÐ-ñ 
Sô 
Sð 
Sð"3ð 3ð 3ð 3ð 3ñ 3ô 3ð 3ð))ð ))ð ))ð ))ð ))�ñ ))ô ))ð ))ðX5)ð 5)ð 5)ð 5)ð 5)�wñ 5)ô 5)ð 5)ðp3ð 3ð 3ð 3ð 3ñ 3ô 3ð 3ð0I>ð I>ð I>ð I>ð I>�+˜fÔ%ñ I>ô I>ð I>ðXð ð ðoCð oCð oCð oCð oC˜ñ oCô oCð oCðd	 × Ò Ð1Ñ 2Ô 2Ð 2Ð 2Ð 2r0   