§
    cÌc ã                   ó  — d Z ddlmZmZmZ ddlmZ  e e¦   «         d¦  «         ddlmZm	Z	m
Z
mZ ddlmZ ddlmZ dd	lmZmZ dd
lmZmZmZmZmZ ddlmZ da G d„ de	j        ¦  «        Z G d„ de	j        ¦  «        Z G d„ d¦  «        Z  G d„ d¦  «        Z! G d„ de¦  «        Z" G d„ d¦  «        Z# G d„ dej$        e¦  «        Z% G d„ dej&        ¦  «        Z' e
j(        d         ¦   «         Z)	  e'e)¦  «        Z*	  G d„ dej+        ¦  «        Z,e* -                    dd d!¦  «         e* -                    d"d d#¦  «         e* -                    d$d d%¦  «         e* -                    d&d'd(¦  «         e* -                    d)d'd*¦  «         e* -                    d+d'd,¦  «         e* -                    d-d'd.¦  «         e* -                    d/d'd0¦  «         e* -                    d1d'd2¦  «         e* -                    d3d'd4¦  «         e* -                    d5d'd6¦  «         e* -                    d7d8d9¦  «         e* -                    d:d'd;¦  «         e* -                    d<d8d=¦  «          G d>„ d?ee%         ¦  «        Z. G d@„ dA¦  «        Z/dB„ Z0	 	 dGdD„Z1 G dE„ dF¦  «        Z2dCS )HÚgoogleé    )ÚListÚTypeÚTYPE_CHECKINGé   )Úlazy_importz—
import time

from breezy import (
    config,
    debug,
    graph,
    osutils,
    revision as _mod_revision,
    )
from breezy.i18n import gettext
)Ú
controldirÚerrorsÚregistryÚui)Úonly_raises)ÚInterObject)Ú_RelockDebugMixinÚLogicalLockResult)Úlog_exception_quietlyÚnoteÚmutterÚmutter_callsiteÚwarning)ÚRevisionTreeFc                   ó   — e Zd ZdZd„ ZdS )ÚIsInWriteGroupErrorz=May not refresh_data of repo %(repo)s while in a write group.c                 óH   — t           j                             | |¬¦  «         d S )N)Úrepo)r
   ÚInternalBzrErrorÚ__init__©Úselfr   s     ú3/usr/lib/python3/dist-packages/breezy/repository.pyr   zIsInWriteGroupError.__init__9   s$   € ÝÔ×(Ò(¨°DÐ(Ñ9Ô9Ð9Ð9Ð9ó    N)Ú__name__Ú
__module__Ú__qualname__Ú_fmtr   © r    r   r   r   5   s(   € € € € € àJ€Dð:ð :ð :ð :ð :r    r   c                   ó   — e Zd ZdZdS )ÚCannotSetRevisionIdz8Repository format does not support setting revision ids.N)r!   r"   r#   r$   r%   r    r   r'   r'   =   s   € € € € € àE€D€D€Dr    r'   c                   ó   — e Zd ZdZdd„ZdS )ÚFetchResultz­Result of a fetch operation.

    Attributes:
      revidmap: For lossy fetches, map from source revid to target revid.
      total_fetched: Number of revisions fetched
    Nc                 ó"   — || _         || _        d S ©N)Útotal_fetchedÚrevidmap)r   r,   r-   s      r   r   zFetchResult.__init__J   s   € Ø*ˆÔØ ˆŒˆˆr    ©NN)r!   r"   r#   Ú__doc__r   r%   r    r   r)   r)   B   s2   € € € € € ðð ð!ð !ð !ð !ð !ð !r    r)   c                   ó`   — e Zd ZdZdZdZ	 	 	 dd„Zd„ Zd„ Zd„ Z	d	„ Z
d
„ Zdd„Zd„ Zd„ Zd„ ZdS )ÚCommitBuilderz®Provides an interface to build up a commit.

    This allows describing a tree to be committed without needing to
    know the internals of the format of the repository.
    TFNc
                 óR  — || _         |	| _        |€ | j                              d¦  «        | _        n6t	          |t
          ¦  «        s|                     ¦   «         | _        n|| _        || _        || _        i | _	        |�/|  
                    |¦  «         | j	                             |¦  «         |€t                               ¦   «         }t          |d¦  «        | _        |€t                               ¦   «         | _        nt%          |¦  «        | _        |                      |¦  «         dS )a7  Initiate a CommitBuilder.

        Args:
          repository: Repository to commit to.
          parents: Revision ids of the parents of the new revision.
          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
        NÚemailé   )Ú_config_stackÚ_lossyÚgetÚ
_committerÚ
isinstanceÚstrÚdecodeÚparentsÚ
repositoryÚ	_revpropsÚ_validate_revpropsÚupdateÚtimeÚroundÚ
_timestampÚosutilsÚlocal_time_offsetÚ	_timezoneÚintÚ_generate_revision_if_needed)
r   r=   r<   Úconfig_stackÚ	timestampÚtimezoneÚ	committerÚrevpropsÚrevision_idÚlossys
             r   r   zCommitBuilder.__init__\   s  € ð  *ˆÔØˆŒàÐØ"Ô0×4Ò4°WÑ=Ô=ˆDŒOˆOÝ˜I¥sÑ+Ô+ð 	(Ø'×.Ò.Ñ0Ô0ˆDŒOˆOà'ˆDŒOàˆŒØ$ˆŒàˆŒØÐØ×#Ò# HÑ-Ô-Ð-ØŒN×!Ò! (Ñ+Ô+Ð+àÐÝŸ	š	™œˆIå 	¨1Ñ-Ô-ˆŒàÐÝ$×6Ò6Ñ8Ô8ˆDŒNˆNå  ™]œ]ˆDŒNà×)Ò)¨+Ñ6Ô6Ð6Ð6Ð6r    c                 ó*   — t          | j        ¦  «        ‚)zÐReturn True if any entries were changed.

        This includes merge-only changes. It is the core for the --unchanged
        detection in commit.

        Returns: True if any changes have occured.
        )ÚNotImplementedErrorÚany_changes©r   s    r   rR   zCommitBuilder.any_changesŠ   s   € õ " $Ô"2Ñ3Ô3Ð3r    c                 óT   — d|v r#t          d                     ||¦  «        ¦  «        ‚dS )z?Verify things like commit messages don't have bogus characters.úzInvalid value for {}: {!r}N)Ú
ValueErrorÚformat)r   ÚtextÚcontexts      r   Ú_validate_unicode_textz$CommitBuilder._validate_unicode_text”   s3   € ð �4ˆ<ˆ<ÝÐ9×@Ò@ÀÈ$ÑOÔOÑPÔPÐPð ˆ<r    c                 óà   — |                      ¦   «         D ]X\  }}t          |t          ¦  «        st          d|›d|›�¦  «        ‚|                      |d                     |¦  «        ¦  «         ŒYd S )Nzrevision property (z#) is not a valid (unicode) string: zrevision property ({}))Úitemsr9   r:   rV   rZ   rW   )r   rM   ÚkeyÚvalues       r   r?   z CommitBuilder._validate_revpropsš   s    € Ø"Ÿ.š.Ñ*Ô*ð 	Nð 	N‰JˆC�õ ˜e¥SÑ)Ô)ð IÝ �jØ<?¸C¸CÀÀð"Hñ Iô Ið Ið ×'Ò'¨Ø(@×(GÒ(GÈÑ(LÔ(LñNô Nð Nð Nð	Nð 	Nr    c                 ó*   — t          | j        ¦  «        ‚)z\Make the actual commit.

        Returns: The revision id of the recorded revision.
        )rQ   Úcommit)r   Úmessages     r   r`   zCommitBuilder.commit¥   s   € õ
 " $¤+Ñ.Ô.Ð.r    c                 ó*   — t          | j        ¦  «        ‚)z.Abort the commit that is being built.
        )rQ   ÚabortrS   s    r   rc   zCommitBuilder.abort¬   s   € õ " $¤*Ñ-Ô-Ð-r    Úreturnr   c                 ó*   — t          | j        ¦  «        ‚)aW  Return the tree that was just committed.

        After calling commit() this can be called to get a
        RevisionTree representing the newly committed tree. This is
        preferred to calling Repository.revision_tree() because that may
        require deserializing the inventory, while we already have a copy in
        memory.
        ©rQ   Úrevision_treerS   s    r   rg   zCommitBuilder.revision_tree±   s   € õ " $Ô"4Ñ5Ô5Ð5r    c                 ó*   — t          | j        ¦  «        ‚)z¬Tell the builder that the inventory is finished.

        Returns: The inventory id in the repository, which can be used with
            repository.get_inventory.
        )rQ   Úfinish_inventoryrS   s    r   ri   zCommitBuilder.finish_inventory¼   s   € õ " $Ô"7Ñ8Ô8Ð8r    c                 ó°   — | j         j        j        s|�t          ¦   «         ‚dS |€"|                      ¦   «         | _        d| _        dS || _        d| _        dS )a  Create a revision id if None was supplied.

        If the repository can not support user-specified revision ids
        they should override this function and raise CannotSetRevisionId
        if _new_revision_id is not None.

        Raises:
          CannotSetRevisionId
        NTF)r=   Ú_formatÚsupports_setting_revision_idsr'   Ú_gen_revision_idÚ_new_revision_idÚrandom_revid©r   rN   s     r   rH   z*CommitBuilder._generate_revision_if_neededÄ   si   € ð ŒÔ&ÔDð 	ØÐ&Ý)Ñ+Ô+Ð+ØˆFØÐØ$(×$9Ò$9Ñ$;Ô$;ˆDÔ!Ø $ˆDÔÐÐà$/ˆDÔ!Ø %ˆDÔÐÐr    c                 ó*   — t          | j        ¦  «        ‚)að  Record a new tree via iter_changes.

        Args:
          tree: The tree to obtain text contents from for changed objects.
          basis_revision_id: The revision id of the tree the iter_changes
            has been generated against. Currently assumed to be the same
            as self.parents[0] - if it is not, errors may occur.
          iter_changes: An iter_changes iterator with the changes to apply
            to basis_revision_id. The iterator must not include any items with
            a current kind of None - missing items must be either filtered out
            or errored-on beefore record_iter_changes sees the item.
        Returns: A generator of (relpath, fs_hash) tuples for use with
            tree._observed_sha1.
        )rQ   Úrecord_iter_changes)r   ÚtreeÚbasis_revision_idÚiter_changess       r   rr   z!CommitBuilder.record_iter_changesÙ   s   € õ " $Ô":Ñ;Ô;Ð;r    ©NNNNNF©rd   r   )r!   r"   r#   r/   Úrecord_root_entryÚupdates_branchr   rR   rZ   r?   r`   rc   rg   ri   rH   rr   r%   r    r   r1   r1   O   sÝ   € € € € € ðð ð Ðð €NàDHØ9=Ø).ð,7ð ,7ð ,7ð ,7ð\4ð 4ð 4ðQð Qð Qð	Nð 	Nð 	Nð/ð /ð /ð.ð .ð .ð
	6ð 	6ð 	6ð 	6ð9ð 9ð 9ð&ð &ð &ð*<ð <ð <ð <ð <r    r1   c                   ó   — e Zd ZdZd„ Zd„ ZdS )ÚRepositoryWriteLockResultzÊThe result of write locking a repository.

    Attributes:
      repository_token: The token obtained from the underlying lock, or
        None.
      unlock: A callable which will unlock the lock.
    c                 ó>   — t          j        | |¦  «         || _        d S r+   )r   r   Úrepository_token)r   Úunlockr}   s      r   r   z"RepositoryWriteLockResult.__init__ô   s#   € ÝÔ" 4¨Ñ0Ô0Ð0Ø 0ˆÔÐÐr    c                 óB   — d                      | j        | j        ¦  «        S )Nz!RepositoryWriteLockResult({}, {}))rW   r}   r~   rS   s    r   Ú__repr__z"RepositoryWriteLockResult.__repr__ø   s'   € Ø2×9Ò9¸$Ô:OØ6:´kñCô Cð 	Cr    N)r!   r"   r#   r/   r   r€   r%   r    r   r{   r{   ë   sA   € € € € € ðð ð1ð 1ð 1ðCð Cð Cð Cð Cr    r{   c                   ó&   — e Zd ZdZdd„Zd„ Zd„ ZdS )Ú
WriteGroupzxContext manager that manages a write group.

    Raising an exception will result in the write group being aborted.
    Fc                 ó"   — || _         || _        d S r+   )r=   Ú_suppress_errors)r   r=   Úsuppress_errorss      r   r   zWriteGroup.__init__  s   € Ø$ˆŒØ /ˆÔÐÐr    c                 ó8   — | j                              ¦   «          | S r+   )r=   Ústart_write_grouprS   s    r   Ú	__enter__zWriteGroup.__enter__  s   € ØŒ×)Ò)Ñ+Ô+Ð+Øˆr    c                 ó~   — |r!| j                              | j        ¦  «         dS | j                              ¦   «          d S ©NF)r=   Úabort_write_groupr„   Úcommit_write_group)r   Úexc_typeÚexc_valÚexc_tbs       r   Ú__exit__zWriteGroup.__exit__  sB   € Øð 	1ØŒO×-Ò-¨dÔ.CÑDÔDÐDØ�5àŒO×.Ò.Ñ0Ô0Ð0Ð0Ð0r    N©F)r!   r"   r#   r/   r   rˆ   r�   r%   r    r   r‚   r‚   ý   sP   € € € € € ðð ð
0ð 0ð 0ð 0ðð ð ð1ð 1ð 1ð 1ð 1r    r‚   c                   ó   ‡ — e Zd ZdZdZdVd„Zd„ Zd„ Zd„ Zd„ Z	d	„ Z
d
„ Zed„ ¦   «         Zˆ fd„Zed„ ¦   «         Zed„ ¦   «         Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ ZdWd„Zd„ Zd„ Zd„ Zd„ ZdXd„ZdVd„Z	 	 dYd„Zed„ ¦   «         Z dWd„Z!d „ Z"d!„ Z#d"„ Z$d#„ Z%d$„ Z&d%„ Z'dZd&„Z(	 	 	 d[d'„Z) e*e+j,        e+j-        ¦  «        d(„ ¦   «         Z.dWd)„Z/d*„ Z0d+„ Z1dWd,„Z2d-„ Z3d.„ Z4d/„ Z5d0„ Z6d1„ Z7d2„ Z8d3„ Z9d4„ Z:dWd5„Z;d6„ Z<d7„ Z=d8„ Z>d9„ Z?d:„ Z@d\d;„ZAd<„ ZBd]d?„ZCd@„ ZDd\dA„ZEdB„ ZFdC„ ZGdD„ ZHdE„ ZIdF„ ZJdG„ ZKdH„ ZLdWdI„ZMdJ„ ZNdK„ ZOdL„ ZPdM„ ZQdN„ ZRdO„ ZSdP„ ZTd^dQ„ZUd^dR„ZVdWdS„ZWdT„ ZXdU„ ZYˆ xZZS )_Ú
Repositoryaƒ  Repository holding history for one or more branches.

    The repository holds and retrieves historical information including
    revisions and file history.  It's normally accessed only by the Branch,
    which views a particular line of development through that history.

    See VersionedFileRepository in breezy.vf_repository for the
    base class for most Bazaar repositories.
    TFc                 óæ  — | j         |                      ¦   «         ur]|r*t          d| j         |                      ¦   «         ¦  «         dS t          j        d| j         ›d|                      ¦   «         ›�¦  «        ‚	 |                      ¦   «          n[# t          $ rN}d| _         |s‚ t          d¦  «         t          ¦   «          t          t          d¦  «        |¦  «         Y d}~nd}~ww xY wd| _         dS )a   Commit the contents accrued within the current write group.

        Args:
          suppress_errors: if true, abort_write_group will catch and log
            unexpected errors that happen during the abort, rather than
            allowing them to propagate.  Defaults to False.
        z<(suppressed) mismatched lock context and write group. %r, %rNz)mismatched lock context and write group. z, zabort_write_group failedzbrz: ERROR (ignored): %s)
Ú_write_groupÚget_transactionr   r
   ÚBzrErrorÚ_abort_write_groupÚ	Exceptionr   r   Úgettext)r   r…   Úexcs      r   r‹   zRepository.abort_write_group&  s-  € ð Ô D×$8Ò$8Ñ$:Ô$:Ð:Ð:àð ÝØRØÔ% t×';Ò';Ñ'=Ô'=ñ?ô ?ð ?ð �Ý”/�/àÔ"Ð"Ð" D×$8Ò$8Ñ$:Ô$:Ð$:ð<ñ=ô =ð =ð	;Ø×#Ò#Ñ%Ô%Ð%Ð%øÝð 	;ð 	;ð 	;Ø $ˆDÔØ"ð ØÝÐ-Ñ.Ô.Ð.Ý!Ñ#Ô#Ð#Ý•Ð3Ñ4Ô4°cÑ:Ô:Ð:Ð:Ð:Ð:Ð:Ð:øøøøð	;øøøð !ˆÔÐÐs   Á:B Â
C'ÂAC"Ã"C'c                 ó   — dS )as  Template method for per-repository write group cleanup.

        This is called during abort before the write group is considered to be
        finished and should cleanup any internal state accrued during the write
        group. There is no requirement that data handed to the repository be
        *not* made available - this is not a rollback - but neither should any
        attempt be made to ensure that data added is fully commited. Abort is
        invoked when an error has occured so futher disk or network operations
        may not be possible or may error and if possible should not be
        attempted.
        Nr%   rS   s    r   r˜   zRepository._abort_write_groupC  ó   € € € r    c                 ó*   — t          | j        ¦  «        ‚)zyAdd a repository to use for looking up data not held locally.

        Args:
          repository: A repository.
        )rQ   Úadd_fallback_repository©r   r=   s     r   rŸ   z"Repository.add_fallback_repositoryP  s   € õ " $Ô">Ñ?Ô?Ð?r    c                 ó8   — t                                | |¦  «        S )z¨Check that this repository can fallback to repository safely.

        Raise an error if not.

        Args:
          repository: A repository to fallback to.
        )ÚInterRepositoryÚ_assert_same_modelr    s     r   Ú_check_fallback_repositoryz%Repository._check_fallback_repositoryX  s   € õ ×1Ò1°$¸
ÑCÔCÐCr    c                 óf   — dt           j        v rt          dd¦  «         |                      ¦   «         S )a7  Returns a list of all the revision ids in the repository.

        This is conceptually deprecated because code should generally work on
        the graph reachable from a particular revision, and ignore any other
        revisions that might be present.  There is no direct replacement
        method.
        Úevilé   z(all_revision_ids is linear with history.)ÚdebugÚdebug_flagsr   Ú_all_revision_idsrS   s    r   Úall_revision_idszRepository.all_revision_idsb  s5   € ð •UÔ&Ð&Ð&Ý˜AÐIÑJÔJÐJØ×%Ò%Ñ'Ô'Ð'r    c                 ó*   — t          | j        ¦  «        ‚)zŸReturns a list of all the revision ids in the repository.

        These are in as much topological order as the underlying store can
        present.
        )rQ   rª   rS   s    r   rª   zRepository._all_revision_idsn  s   € õ " $Ô"8Ñ9Ô9Ð9r    c                 ó8   — | j                              ¦   «          dS )z¦Break a lock if one is present from another instance.

        Uses the ui factory to ask for confirmation if the lock may be from
        an active process.
        N)Úcontrol_filesÚ
break_lockrS   s    r   r¯   zRepository.break_lockv  s   € ð 	Ô×%Ò%Ñ'Ô'Ð'Ð'Ð'r    c                 óZ   — t                                ¦   «                              | ¦  «        S )z>Construct the current default format repository in controldir.)ÚRepositoryFormatÚget_default_formatÚ
initialize)r	   s    r   ÚcreatezRepository.create~  s$   € õ  ×2Ò2Ñ4Ô4×?Ò?À
ÑKÔKÐKr    c                 óŽ   •— t          ¦   «                              ¦   «          || _        || _        || _        d| _        g | _        dS )zâinstantiate a Repository.

        Args:
          _format: The format of the repository on disk.
          controldir: The ControlDir of the repository.
          control_files: Control files to use for locking, etc.
        N)Úsuperr   rk   r	   r®   r•   Ú_fallback_repositories)r   rk   r	   r®   Ú	__class__s       €r   r   zRepository.__init__ƒ  sG   ø€ õ 	‰Œ×ÒÑÔÐØˆŒà$ˆŒØ*ˆÔà ˆÔà&(ˆÔ#Ð#Ð#r    c                 ó   — | j         j        S r+   )r	   Úuser_transportrS   s    r   rº   zRepository.user_transport˜  s   € àŒÔ-Ð-r    c                 ó   — | j         S r+   )Ú
_transportrS   s    r   Úcontrol_transportzRepository.control_transportœ  s
   € àŒÐr    c                 ó°   — | j         r+d                     | j        j        | j        | j         ¦  «        S d                     | j        j        | j        ¦  «        S )Nz${}({!r}, fallback_repositories={!r})z{}({!r}))r·   rW   r¸   r!   ÚbaserS   s    r   r€   zRepository.__repr__   s^   € ØÔ&ð 	*Ø9×@Ò@Ø”Ô'Ø”	ØÔ+ñ-ô -ð -ð
 ×$Ò$ T¤^Ô%<Ø#œyñ*ô *ð *r    c                 óÂ   — | j         }|j         }t          |¦  «        t          |¦  «        k    rdS t          ||¦  «        D ]\  }}|                     |¦  «        s dS ŒdS )z9Returns true if the repositories have the same fallbacks.FT)r·   ÚlenÚzipÚhas_same_location)r   Ú
other_repoÚmy_fbÚother_fbÚfÚgs         r   Ú_has_same_fallbackszRepository._has_same_fallbacksª  sr   € àÔ+ˆØÔ4ˆÝˆu‰:Œ:�˜X™œÒ&Ð&Ø�5Ý˜˜xÑ(Ô(ð 	ð 	‰DˆAˆqØ×&Ò& qÑ)Ô)ð Ø�u�uðàˆtr    c                 óB   — | j         |j         urdS | j        |j        k    S )zøReturns a boolean indicating if this repository is at the same
        location as another repository.

        This might return False even when two repository objects are accessing
        the same physical repository via different URLs.
        F)r¸   Úcontrol_url©r   Úothers     r   rÃ   zRepository.has_same_locationµ  s)   € ð Œ> ¤Ð0Ð0Ø�5ØÔ  EÔ$5Ò5Ð6r    c                 ó   — | j         duS )z[Return True if there is an open write group.

        :seealso: start_write_group.
        N)r•   rS   s    r   Úis_in_write_groupzRepository.is_in_write_groupÀ  s   € ð
 Ô ¨Ð,Ð,r    c                 ó4   — | j                              ¦   «         S r+   )r®   Ú	is_lockedrS   s    r   rÑ   zRepository.is_lockedÇ  s   € ØÔ!×+Ò+Ñ-Ô-Ð-r    c                 óJ   — |                       ¦   «         o| j        j        dk    S )z+Return True if this object is write locked.Úw)rÑ   r®   Ú
_lock_moderS   s    r   Úis_write_lockedzRepository.is_write_lockedÊ  s"   € à�~Š~ÑÔÐH DÔ$6Ô$AÀSÒ$HÐHr    Nc                 óD  — |                       ¦   «         }| j                             |¬¦  «        }|s[|                      ¦   «          |                      d¦  «         | j        D ]}|                     ¦   «          Œ|                      ¦   «          t          | j	        |¦  «        S )a  Lock this repository for writing.

        This causes caching within the repository obejct to start accumlating
        data during reads, and allows a 'write_group' to be obtained. Write
        groups must be used for actual data insertion.

        A token should be passed in if you know that you have locked the object
        some other way, and need to synchronise this object's state with that
        fact.

        XXX: this docstring is duplicated in many places, e.g. lockable_files.py

        Args:
          token: if this is already locked, then lock_write will fail
            unless the token matches the existing lock.
        Returns:
          a token if this instance supports tokens, otherwise None.

        Raises:
          TokenLockingNotSupported: when a token is given but this
            instance doesn't support using token locks.
          MismatchedToken: if the specified token doesn't match the token
            of the existing lock.

        Returns:
          A RepositoryWriteLockResult.
        )ÚtokenrÓ   )
rÑ   r®   Ú
lock_writeÚ_warn_if_deprecatedÚ
_note_lockr·   Ú	lock_readÚ_refresh_datar{   r~   )r   r×   Úlockedr   s       r   rØ   zRepository.lock_writeÎ  s¡   € ð8 —’Ñ!Ô!ˆØÔ"×-Ò-°EÐ-Ñ:Ô:ˆØð 	!Ø×$Ò$Ñ&Ô&Ð&Ø�OŠO˜CÑ Ô Ð ØÔ3ð !ð !�à—’Ñ Ô Ð Ð Ø×ÒÑ Ô Ð Ý(¨¬°eÑ<Ô<Ð<r    c                 ó>  — |                       ¦   «         }| j                             ¦   «          |s[|                      ¦   «          |                      d¦  «         | j        D ]}|                     ¦   «          Œ|                      ¦   «          t          | j        ¦  «        S )z•Lock the repository for read operations.

        Returns: An object with an unlock method which will release the lock
            obtained.
        Úr)	rÑ   r®   rÛ   rÙ   rÚ   r·   rÜ   r   r~   )r   rÝ   r   s      r   rÛ   zRepository.lock_readõ  s›   € ð —’Ñ!Ô!ˆØÔ×$Ò$Ñ&Ô&Ð&Øð 	!Ø×$Ò$Ñ&Ô&Ð&Ø�OŠO˜CÑ Ô Ð ØÔ3ð !ð !�Ø—’Ñ Ô Ð Ð Ø×ÒÑ Ô Ð Ý  ¤Ñ-Ô-Ð-r    c                 ó4   — | j                              ¦   «         S r+   )r®   Úget_physical_lock_statusrS   s    r   rá   z#Repository.get_physical_lock_status  s   € ØÔ!×:Ò:Ñ<Ô<Ð<r    c                 ó8   — | j                              ¦   «          dS )z¶Tell this repository 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)r®   Úleave_in_placerS   s    r   Úleave_lock_in_placezRepository.leave_lock_in_place  s   € ð 	Ô×)Ò)Ñ+Ô+Ð+Ð+Ð+r    c                 ó8   — | j                              ¦   «          dS )zÛTell this repository 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_placerS   s    r   Údont_leave_lock_in_placez#Repository.dont_leave_lock_in_place  s   € ð 	Ô×.Ò.Ñ0Ô0Ð0Ð0Ð0r    c                 ó,  — |                       ¦   «         5  i }|r|rd|d<   |rØ|t          j        k    rÈ|                      ¦   «         }|rt	          ¦   «         }d„ |                     |g¦  «        D ¦   «         }d}|s|d         |d         f}|                      |¦  «        D ]"}|s|}|r|                     |j        ¦  «         Œ#|}	|rt          |¦  «        |d<   |	j
        |	j        f|d<   |j
        |j        f|d<   |cddd¦  «         S # 1 swxY w Y   dS )al  Gather statistics from a revision id.

        Args:
          revid: The revision id to gather statistics from, if None, then
            no revision specific statistics are gathered.
          committers: Optional parameter controlling whether to grab
            a count of committers from the revision specific statistics.
        Returns: A dictionary of statistics. Currently this contains:
            committers: The number of committers if requested.
            firstrev: A tuple with timestamp, timezone for the penultimate left
                most ancestor of revid, if revid is not the NULL_REVISION.
            latestrev: A tuple with timestamp, timezone for revid, if revid is
                not the NULL_REVISION.
            revisions: The total revision count in the repository.
            size: An estimate disk size of the repository in bytes.
        r   Ú
committersc                 ó8   — g | ]\  }}|t           j        k    ¯|‘ŒS r%   )Ú_mod_revisionÚNULL_REVISION)Ú.0rß   Úps      r   ú
<listcomp>z+Repository.gather_stats.<locals>.<listcomp>1  s6   € ð Bð Bð B¡6 A qØ !¥]Ô%@Ò @Ð @ð Ø @Ð @Ð @r    NéÿÿÿÿÚfirstrevÚ	latestrev)rÛ   rë   rì   Ú	get_graphÚsetÚiter_ancestryÚget_revisionsÚaddrL   rÁ   rJ   rK   )
r   Úrevidré   ÚresultÚgraphÚall_committersÚ	revisionsÚlast_revisionÚrevisionÚfirst_revisions
             r   Úgather_statszRepository.gather_stats  s¸  € ð" �^Š^ÑÔð 	ð 	ØˆFØð )˜ð )Ø'(��|Ñ$Øð ?˜¥-Ô"=Ò=Ð=ØŸšÑ(Ô(�Øð +Ý%(¡U¤U�NðBð B¨U×-@Ò-@À%ÀÑ-IÔ-Ið Bñ Bô B�	à $�Ø!ð <à )¨!¤¨i¸¬mÐ ;�IØ $× 2Ò 2°9Ñ =Ô =ð ?ð ?�HØ(ð 1Ø(0˜Ø!ð ?Ø&×*Ò*¨8Ô+=Ñ>Ô>Ð>øØ!)�Øð ?Ý+.¨~Ñ+>Ô+>�F˜<Ñ(Ø&4Ô&>Ø&4Ô&=ð&?��zÑ"à'4Ô'>Ø'4Ô'=ð'?��{Ñ#àð5	ð 	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s   •C'D	Ä	DÄDc              #   óJ  K  — |r5|                       ¦   «         s!| j                             ¦   «         E d{V —† dS  G d„ d¦  «        }t          j                             | j         |¦   «         ¬¦  «        D ]-\  }}|�|E d{V —† |s|�|                     ¦   «         E d{V —† Œ.dS )zÀFind branches underneath this repository.

        This will include branches inside other branches.

        Args:
          using: If True, list only branches using this repository.
        Nc                   ó   — e Zd Zd„ Zd„ ZdS )ú+Repository.find_branches.<locals>.Evaluatorc                 ó   — d| _         d S )NT)Ú
first_callrS   s    r   r   z4Repository.find_branches.<locals>.Evaluator.__init__S  s   € Ø"&�”��r    c                 óž   — | j         s+	  |j        ¦   «         }dg |ffS # t          j        $ r Y nw xY wd| _          |j        ¦   «         d f}d|fS )NFT)r  Úopen_repositoryr
   ÚNoRepositoryPresentÚlist_branches)r   r	   r=   r^   s       r   Ú__call__z4Repository.find_branches.<locals>.Evaluator.__call__V  s‚   € ð ”ð 7ð7Ø%? ZÔ%?Ñ%AÔ%A˜
ð  % r¨:Ð&6Ð6Ð6øõ "Ô5ð ð ð Ø˜ðøøøð #(�”Ø1˜Ô1Ñ3Ô3°TÐ:�Ø˜U�{Ð"s   ‰ ž0¯0N)r!   r"   r#   r   r
  r%   r    r   Ú	Evaluatorr  Q  s2   € € € € € ð'ð 'ð 'ð#ð #ð #ð #ð #r    r  )Úevaluate)Ú	is_sharedr	   r	  Ú
ControlDirÚfind_controldirsrº   Úfind_branches)r   Úusingr  Úbranchesr=   s        r   r  zRepository.find_branchesE  s  è è € ð ð 	˜ŸšÑ)Ô)ð 	Ø”×4Ò4Ñ6Ô6Ð6Ð6Ð6Ð6Ð6Ð6Ð6ØˆFð	#ð 	#ð 	#ð 	#ð 	#ñ 	#ô 	#ð 	#õ& %/Ô$9×$JÒ$JØÔ#¨i¨i©k¬kð %Kñ %;ô %;ð 	6ð 	6Ñ ˆH�jàÐ#Ø#Ð#Ð#Ð#Ð#Ð#Ð#Ð#Øð 6˜ZÐ3Ø%×3Ò3Ñ5Ô5Ð5Ð5Ð5Ð5Ð5Ð5Ð5øð	6ð 	6r    c                 óÂ   — |                       ¦   «         5  t                               || ¦  «                             ||||¬¦  «        cddd¦  «         S # 1 swxY w Y   dS )z¾Return the revision ids that other has that this does not.

        These are returned in topological order.

        revision_ids: only return revision ids included by revision_id.
        )Úfind_ghostsÚrevision_idsÚif_present_idsÚlimitN)rÛ   r¢   r7   Úsearch_missing_revision_ids)r   rÍ   r  r  r  r  s         r   r  z&Repository.search_missing_revision_idsk  s«   € ð �^Š^ÑÔð 	<ð 	<Ý"×&Ò& u¨dÑ3Ô3×OÒOØ'°lØ-°Uð Pñ <ô <ð	<ð 	<ð 	<ð 	<ñ 	<ô 	<ð 	<ð 	<ð 	<ð 	<ð 	<ð 	<øøøð 	<ð 	<ð 	<ð 	<ð 	<ð 	<s   •2AÁAÁAc                 óh   — t           j                             | ¦  «        }|                     ¦   «         S )z§Open the repository rooted at base.

        For instance, if the repository is at URL/.bzr/repository,
        Repository.open(URL) -> a Repository instance.
        )r	   r  Úopenr  )r¿   Úcontrols     r   r  zRepository.openy  s,   € õ Ô'×,Ò,¨TÑ2Ô2ˆØ×&Ò&Ñ(Ô(Ð(r    c                 ó^   — t                                | |¦  «                             |¦  «        S )z Make a complete copy of the content in self into destination.

        This is a destructive operation! Do not use it on existing
        repositories.
        )r¢   r7   Úcopy_content)r   ÚdestinationrN   s      r   Úcopy_content_intozRepository.copy_content_intoƒ  s(   € õ ×"Ò" 4¨Ñ5Ô5×BÒBÀ;ÑOÔOÐOr    c                 óÖ   — | j         |                      ¦   «         ur2t          j        d|                      ¦   «         ›d| j         ›d�¦  «        ‚|                      ¦   «         }d| _         |S )z·Commit the contents accrued within the current write group.

        :seealso: start_write_group.

        Returns: it may return an opaque hint that can be passed to 'pack'.
        zmismatched lock context z and write group ú.N)r•   r–   r
   r—   Ú_commit_write_group)r   rù   s     r   rŒ   zRepository.commit_write_group‹  s}   € ð Ô D×$8Ò$8Ñ$:Ô$:Ð:Ð:å”/�/à#'×#7Ò#7Ñ#9Ô#9Ð#9Ð#9¸4Ô;LÐ;LÐ;Lð#Nñ Oô Oð Oð ×)Ò)Ñ+Ô+ˆØ ˆÔØˆr    c                 ó   — dS )aR  Template method for per-repository write group cleanup.

        This is called before the write group is considered to be
        finished and should ensure that all data handed to the repository
        for writing during the write group is safely committed (to the
        extent possible considering file system caching etc).
        Nr%   rS   s    r   r"  zRepository._commit_write_group›  r�   r    c                 ó*   — t          j        | ¦  «        ‚)z³Suspend a write group.

        Raises:
          UnsuspendableWriteGroup: If the write group can not be
            suspended.

        Returns:
          List of tokens
        ©r
   ÚUnsuspendableWriteGrouprS   s    r   Úsuspend_write_groupzRepository.suspend_write_group¤  s   € õ Ô,¨TÑ2Ô2Ð2r    c                 ó.   — |                       ¦   «          dS )a4  Re-read any data needed to synchronise with disk.

        This method is intended to be called after another repository instance
        (such as one used by a smart server) has inserted data into the
        repository. On all repositories this will work outside of write groups.
        Some repository formats (pack and newer for breezy native formats)
        support refresh_data inside write groups. If called inside a write
        group on a repository that does not support refreshing in a write group
        IsInWriteGroupError will be raised.
        N)rÜ   rS   s    r   Úrefresh_datazRepository.refresh_data°  s   € ð 	×ÒÑÔÐÐÐr    c                 óè   — |                       ¦   «         st          j        | ¦  «        ‚| j        rt          j        d¦  «        ‚|                      |¦  «         |                      ¦   «         | _        d S )Núalready in a write group)rÕ   r
   ÚNotWriteLockedr•   r—   Ú_resume_write_groupr–   ©r   Útokenss     r   Úresume_write_groupzRepository.resume_write_group½  sq   € Ø×#Ò#Ñ%Ô%ð 	.ÝÔ'¨Ñ-Ô-Ð-ØÔð 	>Ý”/Ð"<Ñ=Ô=Ð=Ø× Ò  Ñ(Ô(Ð(à ×0Ò0Ñ2Ô2ˆÔÐÐr    c                 ó*   — t          j        | ¦  «        ‚r+   r%  r.  s     r   r-  zRepository._resume_write_groupÆ  s   € ÝÔ,¨TÑ2Ô2Ð2r    c                 óv  — |                       ¦   «         rt          j        d¦  «        ‚|                      |¦  «        rJ|                      |¦  «        r5|�/t
                               |¦  «        s|                      |¦  «         dg fS t           	                    || ¦  «        }| 
                    |||¬¦  «        S )a!  Fetch the content required to construct revision_id from source.

        If revision_id is None, then all content is copied.

        fetch() may not be used when the repository is in a write group -
        either finish the current write group before using fetch, or use
        fetch before starting the write group.

        Args:
          find_ghosts: Find and copy revisions in the source that are
            ghosts in the target (and not reachable directly by walking out to
            the first-present revision in target from revision_id).
          revision_id: If specified, all the content needed for this
            revision ID will be copied to the target.  Fetch will determine for
            itself which content needs to be copied.
        Returns: A FetchResult object
        z%May not fetch while in a write group.Nr   )rN   r  rO   )rÏ   r
   r   rÃ   rÉ   rë   Úis_nullÚget_revisionr¢   r7   Úfetch)r   ÚsourcerN   r  rO   Úinters         r   r5  zRepository.fetchÉ  sÓ   € ð$ ×!Ò!Ñ#Ô#ð 	9ÝÔ)Ø7ñ9ô 9ð 9ð
 ×"Ò" 6Ñ*Ô*ð 	Ø×,Ò,¨VÑ4Ô4ð	ð Ð'Ý%×-Ò-¨kÑ:Ô:ð (à×!Ò! +Ñ.Ô.Ð.Ø�b�5ˆLÝ×#Ò# F¨DÑ1Ô1ˆØ�{Š{Ø#°ÀEð ñ Kô Kð 	Kr    c
                 ó*   — t          | j        ¦  «        ‚)au  Obtain a CommitBuilder for this repository.

        Args:
          branch: Branch to commit to.
          parents: Revision ids of the parents of the new revision.
          config_stack: Configuration stack 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
        )rQ   Úget_commit_builder)
r   Úbranchr<   rI   rJ   rK   rL   rM   rN   rO   s
             r   r9  zRepository.get_commit_builderí  s   € õ" " $Ô"9Ñ:Ô:Ð:r    c                 óh  — | j         j        dk    rX| j         j        dk    rH| j        �A|                      ¦   «          | j                              ¦   «          t          j        d¦  «        ‚| j                              ¦   «          | j         j        dk    r| j        D ]}|                     ¦   «          Œd S d S )Nr   rÓ   z3Must end write groups before releasing write locks.r   )	r®   Ú_lock_countrÔ   r•   r‹   r~   r
   r—   r·   r   s     r   r~   zRepository.unlock   sÇ   € àÔÔ*¨aÒ/Ð/ØÔ"Ô-°Ò4Ð4ØÔ Ð,Ø×&Ò&Ñ(Ô(Ð(ØÔ"×)Ò)Ñ+Ô+Ð+Ý”oØIñKô Kð KàÔ×!Ò!Ñ#Ô#Ð#ØÔÔ)¨QÒ.Ð.ØÔ3ð ð �Ø—’‘”��ð /Ð.ðð r    c                 óà   — |                       ¦   «         5  |                      ||                      ¦   «         ¬¦  «        }|                      ||¦  «         |cddd¦  «         S # 1 swxY w Y   dS )a  Clone this repository into controldir using the current format.

        Currently no check is made that the format of this repository and
        the bzrdir format are compatible. FIXME RBC 20060201.

        Returns: The newly created destination repository.
        ©ÚsharedN)rÛ   Ú_create_sprouting_repor  r  )r   r	   rN   Ú	dest_repos       r   ÚclonezRepository.clone  s¼   € ð �^Š^ÑÔð 	ð 	ð ×3Ò3Ø 4§>¢>Ñ#3Ô#3ð 4ñ 5ô 5ˆIà×"Ò" 9¨kÑ:Ô:Ð:Øð	ð 	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s   •AA#Á#A'Á*A'c                 óæ   — |                       ¦   «         st          j        | ¦  «        ‚| j        rt          j        d¦  «        ‚|                      ¦   «          |                      ¦   «         | _        dS )aò  Start a write group in the repository.

        Write groups are used by repositories which do not have a 1:1 mapping
        between file ids and backend store to manage the insertion of data from
        both fetch and commit operations.

        A write lock is required around the
        start_write_group/commit_write_group for the support of lock-requiring
        repository formats.

        One can only insert data into a repository inside a write group.

        Returns: None.
        r+  N)rÕ   r
   r,  r•   r—   Ú_start_write_groupr–   rS   s    r   r‡   zRepository.start_write_group  sq   € ð ×#Ò#Ñ%Ô%ð 	.ÝÔ'¨Ñ-Ô-Ð-ØÔð 	>Ý”/Ð"<Ñ=Ô=Ð=Ø×ÒÑ!Ô!Ð!à ×0Ò0Ñ2Ô2ˆÔÐÐr    c                 ó   — dS )z”Template method for per-repository write group startup.

        This is called before the write group is considered to be
        entered.
        Nr%   rS   s    r   rD  zRepository._start_write_group5  r�   r    c                 ó¾   — |                       ¦   «         5  |                      |d¬¦  «        }|                     | |¬¦  «         |cddd¦  «         S # 1 swxY w Y   dS )z†Create a descendent repository for new development.

        Unlike clone, this does not copy the settings of the repository.
        Fr>  ©rN   N)rÛ   r@  r5  )r   Ú	to_bzrdirrN   rA  s       r   ÚsproutzRepository.sprout<  s©   € ð
 �^Š^ÑÔð 	ð 	Ø×3Ò3°IÀeÐ3ÑLÔLˆIØ�OŠO˜D¨kˆOÑ:Ô:Ð:Øð	ð 	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s   •0AÁAÁAc                 ó  — t          |j        | j        j        j        ¦  «        s|                     ¦   «         }nG	 | j                             ||¬¦  «        }n)# t          j        $ r |                     ¦   «         }Y nw xY w|S )Nr>  )	r9   rk   r	   r¸   Úcreate_repositoryr³   r
   ÚUninitializableFormatr  )r   Úa_controldirr?  rA  s       r   r@  z!Repository._create_sprouting_repoF  sœ   € ÝØÔ$ d¤oÔ&=Ô&GñIô Ið 	;ð %×6Ò6Ñ8Ô8ˆIˆIð;Ø œL×3Ò3Ø ¨ð 4ñ 1ô 1�	�	øåÔ/ð ;ð ;ð ;Ø(×8Ò8Ñ:Ô:�	�	�	ð;øøøàÐs   »A Á#A>Á=A>c                 óŽ   — |                       ¦   «         5  ||                      |f¦  «        v cddd¦  «         S # 1 swxY w Y   dS )z3True if this repository has a copy of the revision.N)rÛ   Úhas_revisionsrp   s     r   Úhas_revisionzRepository.has_revisionU  s¢   € à�^Š^ÑÔð 	Eð 	EØ $×"4Ò"4°k°^Ñ"DÔ"DÐDð	Eð 	Eð 	Eð 	Eñ 	Eô 	Eð 	Eð 	Eð 	Eð 	Eð 	Eð 	Eøøøð 	Eð 	Eð 	Eð 	Eð 	Eð 	Es   •:º>Á>c                 ó*   — t          | j        ¦  «        ‚)zÀProbe to find out the presence of multiple revisions.

        Args:
          revision_ids: An iterable of revision_ids.
        Returns: A set of the revision_ids that were present.
        )rQ   rO  ©r   r  s     r   rO  zRepository.has_revisionsZ  s   € õ " $Ô"4Ñ5Ô5Ð5r    c                 ó–   — |                       ¦   «         5  |                      |g¦  «        d         cddd¦  «         S # 1 swxY w Y   dS )z0Return the Revision object for a named revision.r   N)rÛ   rö   rp   s     r   r4  zRepository.get_revisionc  sŽ   € à�^Š^ÑÔð 	8ð 	8Ø×%Ò% { mÑ4Ô4°QÔ7ð	8ð 	8ð 	8ð 	8ñ 	8ô 	8ð 	8ð 	8ð 	8ð 	8ð 	8ð 	8øøøð 	8ð 	8ð 	8ð 	8ð 	8ð 	8s   •>¾AÁAc                 ó*   — t          | j        ¦  «        ‚)aV  'reconcile' helper routine that allows access to a revision always.

        This variant of get_revision does not cross check the weave graph
        against the revision one as get_revision does: but it should only
        be used by reconcile, or reconcile-alike commands that are correcting
        or testing the revision graph.
        )rQ   Úget_revision_reconcilerp   s     r   rU  z!Repository.get_revision_reconcileh  s   € õ " $Ô"=Ñ>Ô>Ð>r    c                 ó’   ‡— i Š|                       |¦  «        D ]!\  }}|€t          j        | |¦  «        ‚|‰|<   Œ"ˆfd„|D ¦   «         S )zŽGet many revisions at once.

        Repositories that need to check data on every revision read should
        subclass this method.
        Nc                 ó    •— g | ]
}‰|         ‘ŒS r%   r%   )rí   rø   Úrevss     €r   rï   z,Repository.get_revisions.<locals>.<listcomp>}  s   ø€ Ð6Ð6Ð6 ��U”Ð6Ð6Ð6r    )Úiter_revisionsr
   ÚNoSuchRevision)r   r  rø   ÚrevrX  s       @r   rö   zRepository.get_revisionsr  sh   ø€ ð ˆØ×-Ò-¨lÑ;Ô;ð 	ð 	‰JˆE�3Øˆ{ÝÔ+¨D°%Ñ8Ô8Ð8ØˆD�‰KˆKØ6Ð6Ð6Ð6¨Ð6Ñ6Ô6Ð6r    c                 ó*   — t          | j        ¦  «        ‚)a7  Iterate over revision objects.

        Args:
          revision_ids: An iterable of revisions to examine. None may be
            passed to request all revisions known to the repository. Note that
            not all repositories can find unreferenced revisions; for those
            repositories only referenced ones will be returned.
        Returns: An iterator of (revid, revision) tuples. Absent revisions (
            those asked for but not available) are returned as (revid, None).
            N.B.: Revisions are not necessarily yielded in order.
        )rQ   rY  rR  s     r   rY  zRepository.iter_revisions  s   € õ " $Ô"5Ñ6Ô6Ð6r    c                 óÚ   — |                       ¦   «         5  |                      |¦  «        }t          |                      |g¦  «        ¦  «        d         cddd¦  «         S # 1 swxY w Y   dS )z€Return the delta for one revision.

        The delta is relative to the left-hand predecessor of the
        revision.
        r   N)rÛ   r4  ÚlistÚget_revision_deltas)r   rN   rß   s      r   Úget_revision_deltazRepository.get_revision_delta�  s«   € ð �^Š^ÑÔð 	:ð 	:Ø×!Ò! +Ñ.Ô.ˆAÝ˜×0Ò0°!°Ñ5Ô5Ñ6Ô6°qÔ9ð	:ð 	:ð 	:ð 	:ñ 	:ô 	:ð 	:ð 	:ð 	:ð 	:ð 	:ð 	:øøøð 	:ð 	:ð 	:ð 	:ð 	:ð 	:s   •>A Á A$Á'A$c              #   óH  K  — ddl m} t          ¦   «         }|D ]>}|                     |j        ¦  «         |                     |j        dd…         ¦  «         Œ?d„ |                      |¦  «        D ¦   «         }|D ]¨}|j        s |                      t          j
        ¦  «        }n||j        d                  }|                     |||j                 ¦  «        }|                     |¬¦  «        V — |�1d„ |                     |¦  «                             ¦   «         D ¦   «         }Œ©dS )aè  Produce a generator of revision deltas.

        Note that the input is a sequence of REVISIONS, not revision ids.
        Trees will be held in memory until the generator exits.
        Each delta is relative to the revision's lefthand predecessor.

        specific_files should exist in the first revision.

        Args:
          specific_files: if not None, the result is filtered
          so that only those files, their parents and their
          children are included.
        r   )Ú	InterTreeNc                 ó8   — i | ]}|                      ¦   «         |“ŒS r%   )Úget_revision_id)rí   Úts     r   ú
<dictcomp>z2Repository.get_revision_deltas.<locals>.<dictcomp>¬  s6   € ð :ð :ð :àð ×ÒÑÔ ð:ð :ð :r    r   )Úspecific_filesc                 ó   — g | ]}|®|‘ŒS r+   r%   )rí   rî   s     r   rï   z2Repository.get_revision_deltas.<locals>.<listcomp>¹  s%   € ð "&ð "&ð "&Øà�}ð à$�}�}r    )rs   rb  rô   r÷   rN   r@   Ú
parent_idsÚrevision_treesrg   rë   rì   r7   ÚcompareÚfind_source_pathsÚvalues)	r   rü   rg  rb  Úrequired_treesrþ   ÚtreesÚold_treeÚ	intertrees	            r   r_  zRepository.get_revision_deltas—  sa  è è € ð 	$Ð#Ð#Ð#Ð#Ð#å™œˆØ!ð 	;ð 	;ˆHØ×Ò˜xÔ3Ñ4Ô4Ð4Ø×!Ò! (Ô"5°b°q°bÔ"9Ñ:Ô:Ð:Ð:ð:ð :à×(Ò(¨Ñ8Ô8ð:ñ :ô :ˆð
 "ð 	&ð 	&ˆHØÔ&ð 9Ø×-Ò-­mÔ.IÑJÔJ��à  Ô!4°QÔ!7Ô8�Ø!Ÿš h°°hÔ6JÔ0KÑLÔLˆIØ×#Ò#°>Ð#ÑBÔBÐBÐBÐBØÐ)ð"&ð "&Ø(×:Ò:Ø&ñ (ô  (ß(.ª©¬ð"&ñ "&ô "&�øð	&ð 	&r    c                 ó*   — t          | j        ¦  «        ‚r+   )rQ   Ústore_revision_signature)r   Úgpg_strategyÚ	plaintextrN   s       r   rs  z#Repository.store_revision_signature¾  s   € Ý! $Ô"?Ñ@Ô@Ð@r    c                 ó*   — t          | j        ¦  «        ‚)z–Store a signature text for a revision.

        Args:
          revision_id: Revision id of the revision
          signature: Signature text.
        )rQ   Úadd_signature_text)r   rN   Ú	signatures      r   rw  zRepository.add_signature_textÁ  s   € õ " $Ô"9Ñ:Ô:Ð:r    c                 ó*   — t          | j        ¦  «        ‚)a2  Iterate through file versions.

        Files will not necessarily be returned in the order they occur in
        desired_files.  No specific order is guaranteed.

        Yields pairs of identifier, bytes_iterator.  identifier is an opaque
        value supplied by the caller as part of desired_files.  It should
        uniquely identify the file version in the caller's context.  (Examples:
        an index number or a TreeTransform trans_id.)

        Args:
          desired_files: a list of (file_id, revision_id, identifier)
            triples
        )rQ   Úiter_files_bytes)r   Údesired_filess     r   rz  zRepository.iter_files_bytesÊ  s   € õ " $Ô"7Ñ8Ô8Ð8r    c                 óð  — |\  }}|g}||z
  }|dk     rt          j        |d|f¦  «        ‚	 t          | ||¬¦  «         nV# t           j        $ rD}|j        |k    rt          j        | |¦  «        ‚|                     |j        ¦  «         Y d}~nd}~ww xY wt          |¦  «        |k    r!|t          |¦  «        z
  dz   }d||d         ffS t          |¦  «        dz
  |k    rt          d¦  «        ‚d|d         fS )	a$  Return the revision id of a revno, given a later (revno, revid)
        pair in the same history.

        Returns: if found (True, revid).  If the available history ran out
            before reaching the revno, then this returns
            (False, (closest_revno, closest_revid)).
        r   )Ú
stop_indexNr   Frð   z)_iter_for_revno returned too much historyT)	r
   ÚRevnoOutOfBoundsÚ_iter_for_revnoÚRevisionNotPresentrN   rZ  ÚappendrÁ   ÚAssertionError)	r   ÚrevnoÚ
known_pairÚknown_revnoÚknown_revidÚpartial_historyÚdistance_from_knownÚerrÚearliest_revnos	            r   Úget_rev_id_for_revnozRepository.get_rev_id_for_revnoÛ  sT  € ð $.Ñ ˆ�[Ø&˜-ˆØ)¨EÑ1ÐØ Ò"Ð"ÝÔ)¨%°!°[Ð1AÑBÔBÐBð	4ÝØ�oÐ2EðGñ Gô Gð Gð GøåÔ(ð 	4ð 	4ð 	4ØŒ +Ò-Ð-åÔ+¨D°+Ñ>Ô>Ð>ð
 ×"Ò" 3¤?Ñ3Ô3Ð3Ð3Ð3Ð3Ð3Ð3øøøøð	4øøøõ ˆÑÔÐ#6Ò6Ð6à(­3¨Ñ+?Ô+?Ñ?À!ÑCˆNØ˜N¨O¸BÔ,?Ð@ÐAÐAÝˆÑÔ !Ñ#Ð&9Ò9Ð9Ý Ð!LÑMÔMÐMØ�o bÔ)Ð*Ð*s   ¬? ¿BÁ:BÂBc                 ó*   — t          | j        ¦  «        ‚)zAReturn True if this repository is flagged as a shared repository.)rQ   r  rS   s    r   r  zRepository.is_sharedü  ó   € å! $¤.Ñ1Ô1Ð1r    c                 ó*   — t          | j        ¦  «        ‚)zReconcile this repository.)rQ   Ú	reconcile)r   rÍ   Úthoroughs      r   r�  zRepository.reconcile   r�  r    c                 ó   — dS )a¨  Helper called from lock_* to ensure coherency with disk.

        The default implementation does nothing; it is however possible
        for repositories to maintain loaded indices across multiple locks
        by checking inside their implementation of this method to see
        whether their indices are still valid. This depends of course on
        the disk format being validatable in this manner. This method is
        also called by the refresh_data() public interface to cause a refresh
        to occur while in a write lock so that data inserted by a smart server
        push operation is visible on the client's instance of the physical
        repository.
        Nr%   rS   s    r   rÜ   zRepository._refresh_data  r�   r    rd   r   c                 ó*   — t          | j        ¦  «        ‚)z|Return Tree for a revision on this branch.

        `revision_id` may be NULL_REVISION for the empty tree revision.
        rf   rp   s     r   rg   zRepository.revision_tree  s   € õ
 " $Ô"4Ñ5Ô5Ð5r    c                 ó*   — t          | j        ¦  «        ‚)z®Return Trees for revisions in this repository.

        Args:
          revision_ids: a sequence of revision-ids;
          a revision-id may not be None or b'null:'
        )rQ   rj  rR  s     r   rj  zRepository.revision_trees  s   € õ " $Ô"5Ñ6Ô6Ð6r    c                 ó   — dS )ao  Compress the data within the repository.

        This operation only makes sense for some repository types. For other
        types it should be a no-op that just returns.

        This stub method does not require a lock, but subclasses should use
        self.write_lock as this is a long running call it's reasonable to
        implicitly lock for the user.

        Args:
          hint: If not supplied, the whole repository is packed.
            If supplied, the repository may use the hint parameter as a
            hint for the parts of the repository to pack. A hint can be
            obtained from the result of commit_write_group(). Out of
            date hints are simply ignored, because concurrent operations
            can obsolete them rapidly.

          clean_obsolete_packs: Clean obsolete packs immediately after
            the pack operation.
        Nr%   )r   ÚhintÚclean_obsolete_packss      r   ÚpackzRepository.pack"  r�   r    c                 ó4   — | j                              ¦   «         S r+   )r®   r–   rS   s    r   r–   zRepository.get_transaction8  s   € ØÔ!×1Ò1Ñ3Ô3Ð3r    c                 ó*   — t          | j        ¦  «        ‚)z/See graph.StackedParentsProvider.get_parent_map)rQ   Úget_parent_maprR  s     r   rš  zRepository.get_parent_map;  ó   € å! $Ô"5Ñ6Ô6Ð6r    c                 ó€  — g }i }|D ]?}|t           j        k    rd||<   Œ|€t          d¦  «        ‚|                     |f¦  «         Œ@| j                             ¦   «         }|                     |¦  «                             ¦   «         D ]6\  \  }}|rt          d„ |D ¦   «         ¦  «        ||<   Œ&t           j        f||<   Œ7|S )zASame as Repository.get_parent_map except doesn't query fallbacks.r%   Nz!get_parent_map(None) is not validc                 ó   — g | ]\  }|‘ŒS r%   r%   )rí   Úparent_revids     r   rï   z;Repository._get_parent_map_no_fallbacks.<locals>.<listcomp>P  s0   € ð -Qð -Qð -QÙ1@°,ð .:ð -Qð -Qð -Qr    )	rë   rì   rV   r�  rü   Úwithout_fallbacksrš  r\   Útuple)r   r  Ú
query_keysrù   rN   ÚvfÚparent_keyss          r   Ú_get_parent_map_no_fallbacksz'Repository._get_parent_map_no_fallbacks?  s  € ð ˆ
ØˆØ'ð 	2ð 	2ˆKØ�mÔ9Ò9Ð9Ø&(��{Ñ#Ð#ØÐ$Ý Ð!DÑEÔEÐEà×!Ò! ; .Ñ1Ô1Ð1Ð1ØŒ^×-Ò-Ñ/Ô/ˆà×!Ò! *Ñ-Ô-×3Ò3Ñ5Ô5ð	Eð 	EÑ'‰Nˆ[˜Kàð EÝ&+ð -Qð -QØDOð-Qñ -Qô -Qñ 'Rô 'R��{Ñ#Ð#õ (5Ô'BÐ&D��{Ñ#Ð#Øˆr    c                 óž   — | j         j        s| S t                               t	          |                      ¦   «         g| j        ¦  «        ¦  «        S r+   )rk   Úsupports_external_lookupsrú   ÚStackedParentsProviderÚ_LazyListJoinÚ _make_parents_provider_unstackedr·   rS   s    r   Ú_make_parents_providerz!Repository._make_parents_providerV  sP   € ØŒ|Ô5ð 	ØˆKÝ×+Ò+­MØ×2Ò2Ñ4Ô4Ð5ØÔ'ñ-)ô -)ñ *ô *ð 	*r    c                 ó@   — t                                | j        ¦  «        S r+   )rú   Ú CallableToParentsProviderAdapterr¤  rS   s    r   r©  z+Repository._make_parents_provider_unstacked]  s    € Ý×5Ò5ØÔ-ñ/ô /ð 	/r    c                 ó*   — t          | j        ¦  «        ‚)zNReturn the known graph for a set of revision ids and their ancestors.
        )rQ   Úget_known_graph_ancestryrR  s     r   r®  z#Repository.get_known_graph_ancestrya  s   € õ " $Ô"?Ñ@Ô@Ð@r    c                 ó*   — t          | j        ¦  «        ‚)z"Return the graph walker for files.)rQ   Úget_file_graphrS   s    r   r°  zRepository.get_file_graphf  r›  r    c                 óè   — |                       ¦   «         }|�C|                      |¦  «        s.t                               ||                      ¦   «         g¦  «        }t                               |¦  «        S )z2Return the graph walker for this repository format)rª  rÃ   rú   r§  ÚGraph)r   Úother_repositoryÚparents_providers      r   ró   zRepository.get_graphj  sq   € à×6Ò6Ñ8Ô8ÐØÐ(Ø×*Ò*Ð+;Ñ<Ô<ð )å$×;Ò;Ø!Ð#3×#JÒ#JÑ#LÔ#LÐMñ Oô  OÐå�{Š{Ð+Ñ,Ô,Ð,r    c                 ó*   — t          | j        ¦  «        ‚)a0  Set the policy flag for making working trees when creating branches.

        This only applies to branches that use this repository.

        The default is 'True'.

        Args:
          new_value: True to restore the default, False to disable making
                          working trees.
        )rQ   Úset_make_working_trees)r   Ú	new_values     r   r¶  z!Repository.set_make_working_treess  s   € õ " $Ô"=Ñ>Ô>Ð>r    c                 ó*   — t          | j        ¦  «        ‚)z<Returns the policy for making working trees on new branches.)rQ   Úmake_working_treesrS   s    r   r¹  zRepository.make_working_trees€  ó   € å! $Ô"9Ñ:Ô:Ð:r    c                 ó*   — t          | j        ¦  «        ‚r+   )rQ   Úsign_revision©r   rN   rt  s      r   r¼  zRepository.sign_revision„  s   € Ý! $Ô"4Ñ5Ô5Ð5r    c                 ó*   — t          | j        ¦  «        ‚)zãVerify the signature on a revision.

        Args:
          revision_id: the revision to verify
          gpg_strategy: the GPGStrategy object to used

        Returns: gpg.SIGNATURE_VALID or a failed SIGNATURE_ value
        )rQ   Úverify_revision_signaturer½  s      r   r¿  z$Repository.verify_revision_signature‡  s   € õ " $Ô"@ÑAÔAÐAr    c              #   ó°   K  — |                       ¦   «         5  |D ]"}|                      ||¦  «        \  }}|||fV — Œ#	 ddd¦  «         dS # 1 swxY w Y   dS )a  Verify revision signatures for a number of revisions.

        Args:
          revision_id: the revision to verify
          gpg_strategy: the GPGStrategy object to used

        Returns:
          Iterator over tuples with revision id, result and keys
        N)rÛ   r¿  )r   r  rt  rø   rù   r]   s         r   Úverify_revision_signaturesz%Repository.verify_revision_signatures’  s¿   è è € ð �^Š^ÑÔð 	)ð 	)Ø%ð )ð )�Ø $× >Ò >¸uÀlÑ SÔ S‘�˜Ø˜V SÐ(Ð(Ð(Ð(Ð(ð)ð	)ð 	)ð 	)ñ 	)ô 	)ð 	)ð 	)ð 	)ð 	)ð 	)ð 	)ð 	)øøøð 	)ð 	)ð 	)ð 	)ð 	)ð 	)s   —&AÁAÁAc                 ó*   — t          | j        ¦  «        ‚)zAQuery for a revision signature for revision_id in the repository.)rQ   Úhas_signature_for_revision_idrp   s     r   rÃ  z(Repository.has_signature_for_revision_id¡  s   € å! $Ô"DÑEÔEÐEr    c                 ó*   — t          | j        ¦  «        ‚)z Return the text for a signature.)rQ   Úget_signature_textrp   s     r   rÅ  zRepository.get_signature_text¥  rº  r    c                 ó2   — |                       |||¬¦  «        S )an  Check consistency of all history of given revision_ids.

        Different repository implementations should override _check().

        Args:
          revision_ids: A non-empty list of revision_ids whose ancestry
             will be checked.  Typically the last revision_id of a branch.
          callback_refs: A dict of check-refs to resolve and callback
            the check/_check method on the items listed as wanting the ref.
            see breezy.check.
          check_repo: If False do not check the repository contents, just
            calculate the data callback_refs requires and call them back.
        )r  Úcallback_refsÚ
check_repo)Ú_check©r   r  rÇ  rÈ  s       r   ÚcheckzRepository.check©  s&   € ð �{Š{¨ÀMØ&0ð ñ 2ô 2ð 	2r    c                 ó*   — t          | j        ¦  «        ‚r+   )rQ   rË  rÊ  s       r   rÉ  zRepository._checkº  s   € Ý! $¤*Ñ-Ô-Ð-r    c                 óN  — | j                              ¦   «         sd S t          rd S 	 |€t                               ¦   «         }n|                     ¦   «         }d|                     d¦  «        v r	 dad S t          d| j         ›d| j        j	        j
        ›d�¦  «         dad S # daw xY w)NÚformat_deprecationÚsuppress_warningsTzFormat z for zC is deprecated - please use 'brz upgrade' to get better performance)rk   Úis_deprecatedÚ_deprecation_warning_doneÚconfigÚGlobalStackÚget_config_stackr7   r   r	   Ú	transportr¿   )r   r:  Úconfs      r   rÙ   zRepository._warn_if_deprecated½  sÙ   € ØŒ|×)Ò)Ñ+Ô+ð 	ØˆFå$ð 	ØˆFð	-Øˆ~Ý×)Ò)Ñ+Ô+��à×.Ò.Ñ0Ô0�Ø# t§x¢xÐ0CÑ'DÔ'DÐDÐDØð
 )-Ð%Ð%Ð%õ	 ˆGà”|�|�| T¤_Ô%>Ô%CÐ%CÐ%CðEñ Fô Fð Fð )-Ð%Ð%Ð%ø¨Ð%Ð,Ð,Ð,Ð,s   ¦AB  Á2*B  Â B$c                 ó   — | j         j        S r+   )rk   Úrich_root_datarS   s    r   Úsupports_rich_rootzRepository.supports_rich_rootÐ  s   € ØŒ|Ô*Ð*r    c                 ó   — |�‹t          |t          ¦  «        r;	 |                     d¦  «         dS # t          $ r t	          j        || ¦  «        ‚w xY w	 |                     d¦  «         dS # t          $ r t	          j        || ¦  «        ‚w xY wdS )z+Private helper for ascii-only repositories.NÚascii)r9   r:   ÚencodeÚUnicodeEncodeErrorr
   ÚNonAsciiRevisionIdr;   ÚUnicodeDecodeError)r   rN   Úmethods      r   Ú_check_ascii_revisionidz"Repository._check_ascii_revisionidÓ  sÉ   € ð Ð"å˜+¥sÑ+Ô+ð 	BðBØ×&Ò& wÑ/Ô/Ð/Ð/Ð/øÝ)ð Bð Bð BÝ Ô3°F¸DÑAÔAÐAðBøøøðBØ×&Ò& wÑ/Ô/Ð/Ð/Ð/øÝ)ð Bð Bð BÝ Ô3°F¸DÑAÔAÐAðBøøøð #Ð"s   ™0 ° AÁA+ Á+ Br‘   r+   r.   ©TNNN©NFFrv   rŠ   rw   )NNT)[r!   r"   r#   r/   Úsupports_random_accessr‹   r˜   rŸ   r¤   r«   rª   r¯   Ústaticmethodr´   r   Úpropertyrº   r½   r€   rÉ   rÃ   rÏ   rÑ   rÕ   rØ   rÛ   rá   rä   rç   r   r  r  r  r  rŒ   r"  r'  r)  r0  r-  r5  r9  r   r
   ÚLockNotHeldÚ
LockBrokenr~   rB  r‡   rD  rI  r@  rP  rO  r4  rU  rö   rY  r`  r_  rs  rw  rz  r‹  r  r�  rÜ   rg   rj  r—  r–   rš  r¤  rª  r©  r®  r°  ró   r¶  r¹  r¼  r¿  rÁ  rÃ  rÅ  rË  rÉ  rÙ   rÙ  rá  Ú__classcell__)r¸   s   @r   r“   r“     sÌ  ø€ € € € € ðð ð "Ðð!ð !ð !ð !ð:ð ð ð@ð @ð @ðDð Dð Dð
(ð 
(ð 
(ð:ð :ð :ð(ð (ð (ð ðLð Lñ „\ðLð)ð )ð )ð )ð )ð* ð.ð .ñ „Xð.ð ðð ñ „Xðð*ð *ð *ð	ð 	ð 	ð	7ð 	7ð 	7ð-ð -ð -ð.ð .ð .ðIð Ið Ið%=ð %=ð %=ð %=ðN.ð .ð .ð =ð =ð =ð,ð ,ð ,ð1ð 1ð 1ð+ð +ð +ð +ðZ$6ð $6ð $6ð $6ðN Y]Ø*.ð<ð <ð <ð <ð ð)ð )ñ „\ð)ðPð Pð Pð Pðð ð ð ð ð ð
3ð 
3ð 
3ðð ð ð3ð 3ð 3ð3ð 3ð 3ð"Kð "Kð "Kð "KðH KOØCGØ38ð;ð ;ð ;ð ;ð& €[�Ô# VÔ%6Ñ7Ô7ðð ñ 8Ô7ððð ð ð ð 3ð 3ð 3ð.ð ð ðð ð ð ðð ð ðEð Eð Eð
6ð 6ð 6ð8ð 8ð 8ð
?ð ?ð ?ð7ð 7ð 7ð7ð 7ð 7ð:ð :ð :ð%&ð %&ð %&ð %&ðNAð Að Að;ð ;ð ;ð9ð 9ð 9ð"+ð +ð +ðB2ð 2ð 2ð2ð 2ð 2ð 2ðð ð ð6ð 6ð 6ð 6ð7ð 7ð 7ðð ð ð ð,4ð 4ð 4ð7ð 7ð 7ðð ð ð.*ð *ð *ð/ð /ð /ðAð Að Að
7ð 7ð 7ð-ð -ð -ð -ð?ð ?ð ?ð;ð ;ð ;ð6ð 6ð 6ð	Bð 	Bð 	Bð)ð )ð )ðFð Fð Fð;ð ;ð ;ð2ð 2ð 2ð 2ð".ð .ð .ð .ð-ð -ð -ð -ð&+ð +ð +ðBð Bð Bð Bð Bð Bð Br    r“   c                   ó   — e Zd ZdZd„ ZdS )ÚRepositoryFormatRegistryzRepository format registry.c                 óJ   — t           j                             d¦  «        j        S )z"Return the current default format.Údefault)r	   Úformat_registryÚmake_controldirÚrepository_formatrS   s    r   Úget_defaultz$RepositoryFormatRegistry.get_defaultç  s   € åÔ)×9Ò9¸)ÑDÔDÔVÐVr    N)r!   r"   r#   r/   rñ  r%   r    r   rë  rë  ä  s.   € € € € € Ø%Ð%ðWð Wð Wð Wð Wr    rë  r±   c                   óh  — e Zd ZU dZeed<   eed<   eed<   dZeed<   eed<   dZeed<   eed	<   dZeed
<   eed<   eed<   eed<   dZ	eed<   eed<   dZ
eed<   eed<   eed<   eed<   eed<   dZeed<   dZeed<   dZeed<   dZeed<   dZeed<   d„ Zd„ Zd„ Zd„ Zd'd„Zd „ Zd!„ Zd"„ Zd#„ Zd'd$„Zd%„ Zd&S )(r±   a  A repository format.

    Formats provide four things:
     * An initialization routine to construct repository data on disk.
     * a optional format string which is used when the BzrDir supports
       versioned children.
     * an open routine which returns a Repository instance.
     * A network name for referring to the format in smart server RPC
       methods.

    There is one and only one Format subclass for each on-disk format. But
    there can be one Repository subclass that is used for several different
    formats. The _format attribute on a Repository instance can be used to
    determine the disk format.

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

    Once a format is deprecated, just deprecate the initialize and open
    methods on the format class. Do not deprecate the object, as the
    object may be created even when a repository instance hasn't been
    created.

    Common instance attributes:
    _matchingcontroldir - the controldir format that the repository format was
    originally written to work with. This can be used if manually
    constructing a bzrdir and repository, or more commonly for test suite
    parameterization.
    Úsupports_ghostsr¦  Úsupports_chksFÚ_fetch_reconcileÚfast_deltasÚpack_compressesÚsupports_tree_referenceÚexperimentalÚsupports_funky_charactersÚsupports_leaving_lockÚsupports_full_versioned_filesTÚsupports_revision_signaturesÚ%revision_graph_can_have_wrong_parentsrl   rØ  Úsupports_versioned_directoriesÚsupports_nesting_repositoriesÚsupports_unreferenced_revisionsÚsupports_storing_branch_nickÚsupports_overriding_transportÚ#supports_custom_revision_propertiesÚrecords_per_file_revisionÚsupports_multiple_authorsc                 ó    — d| j         j        z  S )Nz%s())r¸   r!   rS   s    r   r€   zRepositoryFormat.__repr__Z  s   € Ø˜œÔ/Ñ/Ð/r    c                 ó,   — t          || j        ¦  «        S r+   )r9   r¸   rÌ   s     r   Ú__eq__zRepositoryFormat.__eq__]  s   € å˜% ¤Ñ0Ô0Ð0r    c                 ó   — | |k     S r+   r%   rÌ   s     r   Ú__ne__zRepositoryFormat.__ne__a  s   € Ø˜5’=Ð Ð r    c                 ó*   — t          | j        ¦  «        ‚)z-Return the short description for this format.)rQ   Úget_format_descriptionrS   s    r   r  z'RepositoryFormat.get_format_descriptiond  s   € å! $Ô"=Ñ>Ô>Ð>r    c                 ó*   — t          | j        ¦  «        ‚)a‚  Initialize a repository of this format in controldir.

        Args:
          controldir: The controldir to put the new repository in it.
          shared: The repository should be initialized as a sharable one.

        Returns:
          The new repository object.

        This may raise UninitializableFormat if shared repository are not
        compatible the controldir.
        )rQ   r³   )r   r	   r?  s      r   r³   zRepositoryFormat.initializeh  s   € õ " $¤/Ñ2Ô2Ð2r    c                 ó   — dS )zúIs this format supported?

        Supported formats must be initializable and openable.
        Unsupported formats may not support initialization or committing or
        some other features depending on the reason for not being supported.
        Tr%   rS   s    r   Úis_supportedzRepositoryFormat.is_supportedw  s	   € ð ˆtr    c                 ó   — dS )z¬Is this format deprecated?

        Deprecated formats may trigger a user-visible warning recommending
        the user to upgrade. They are still fully supported.
        Fr%   rS   s    r   rÐ  zRepositoryFormat.is_deprecated€  s	   € ð ˆur    c                 ó*   — t          | j        ¦  «        ‚)aT  A simple byte string uniquely identifying this format for RPC calls.

        MetaDir repository 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.
        )rQ   Únetwork_namerS   s    r   r  zRepositoryFormat.network_nameˆ  s   € õ " $Ô"3Ñ4Ô4Ð4r    c                 ó²   — | j         r|j         st          j        d|| ¬¦  «        ‚| j        r(t	          |dd¦  «        st          j        d|| ¬¦  «        ‚d S d S )Nz Does not support rich root data.)Úfrom_formatrø  FzDoes not support nested trees)rØ  r
   ÚBadConversionTargetrø  Úgetattr©r   Útarget_formats     r   Úcheck_conversion_targetz(RepositoryFormat.check_conversion_target’  s‘   € ØÔð 	" }Ô'Cð 	"ÝÔ,Ø2°MØ ð"ñ "ô "ð "ð Ô(ð 	"Ý Ð/HÈ%ÑPÔPð	"åÔ,Ø/°Ø ð"ñ "ô "ð "ð	"ð 	"ð 	"ð 	"r    c                 ó*   — t          | j        ¦  «        ‚)zsReturn an instance of this format for a controldir.

        _found is a private parameter, do not use it.
        )rQ   r  )r   r	   Ú_founds      r   r  zRepositoryFormat.open�  s   € õ
 " $¤)Ñ,Ô,Ð,r    c                 ót   — ddl m}m} |j        d         }|sd S  ||| ||¦  «        }|D ]} ||¦  «         Œd S )Nr   )r  ÚRepoInitHookParamsÚpost_repo_init)r	   r  r  Úhooks)	r   r=   r	   r?  r  r  r   ÚparamsÚhooks	            r   Ú_run_post_repo_init_hooksz*RepositoryFormat._run_post_repo_init_hooks¤  ss   € Ø>Ð>Ð>Ð>Ð>Ð>Ð>Ð>ØÔ Ð!1Ô2ˆØð 	ØˆFØ#Ð# J°°jÀ&ÑIÔIˆØð 	ð 	ˆDØˆD�‰LŒLˆLˆLð	ð 	r    Nr‘   )r!   r"   r#   r/   ÚboolÚ__annotations__rõ  r÷  rù  rý  rl   r  r  r  r  r  r€   r	  r  r  r³   r  rÐ  r  r  r  r#  r%   r    r   r±   r±      s&  € € € € € € ðð ðB ÐÐÑð  $Ð#Ð#Ñ#ð ÐÐÑð #Ð�dÐ"Ð"Ñ"ð ÐÐÑð
 "€O�TÐ!Ð!Ñ!à!Ð!Ð!Ñ!à€L�$ÐÐÑð  $Ð#Ð#Ñ#àÐÐÑà#'Ð'Ð'Ñ'à)-Ð  $Ð-Ð-Ñ-à+/Ð/Ð/Ñ/à*.Ð! 4Ð.Ð.Ñ.àÐÐÑà$(Ð(Ð(Ñ(à#'Ð'Ð'Ñ'ð &*Ð)Ð)Ñ)ð *.Ð  $Ð-Ð-Ñ-à*.Ð! 4Ð.Ð.Ñ.à04Ð'¨Ð4Ð4Ñ4à&*Ð˜tÐ*Ð*Ñ*Ø&*Ð˜tÐ*Ð*Ñ*ð0ð 0ð 0ð1ð 1ð 1ð!ð !ð !ð?ð ?ð ?ð3ð 3ð 3ð 3ðð ð ðð ð ð5ð 5ð 5ð	"ð 	"ð 	"ð-ð -ð -ð -ðð ð ð ð r    s"   Bazaar-NG Knit Repository Format 1zbreezy.bzr.knitrepoÚRepositoryFormatKnit1s+   Bazaar Knit Repository Format 3 (bzr 0.15)
ÚRepositoryFormatKnit3s*   Bazaar Knit Repository Format 4 (bzr 1.0)
ÚRepositoryFormatKnit4s1   Bazaar pack repository format 1 (needs bzr 0.92)
zbreezy.bzr.knitpack_repoÚRepositoryFormatKnitPack1sF   Bazaar pack repository format 1 with subtree support (needs bzr 0.92)
ÚRepositoryFormatKnitPack3s?   Bazaar pack repository format 1 with rich root (needs bzr 1.0)
ÚRepositoryFormatKnitPack4s+   Bazaar RepositoryFormatKnitPack5 (bzr 1.6)
ÚRepositoryFormatKnitPack5s5   Bazaar RepositoryFormatKnitPack5RichRoot (bzr 1.6.1)
Ú!RepositoryFormatKnitPack5RichRoots3   Bazaar RepositoryFormatKnitPack5RichRoot (bzr 1.6)
Ú'RepositoryFormatKnitPack5RichRootBrokens+   Bazaar RepositoryFormatKnitPack6 (bzr 1.9)
ÚRepositoryFormatKnitPack6s3   Bazaar RepositoryFormatKnitPack6RichRoot (bzr 1.9)
Ú!RepositoryFormatKnitPack6RichRoots6   Bazaar repository format 2a (needs bzr 1.16 or later)
zbreezy.bzr.groupcompress_repoÚRepositoryFormat2asQ   Bazaar development format 2 with subtree support (needs bzr.dev from before 1.8)
Ú'RepositoryFormatPackDevelopment2Subtrees   Bazaar development format 8
ÚRepositoryFormat2aSubtreec                   ó`   — e Zd ZdZg Z	 d
d„Zdd„Z	 	 dd„Zed„ ¦   «         Z	ed	„ ¦   «         Z
dS )r¢   aÂ  This class represents operations taking place between two repositories.

    Its instances have methods like copy_content and fetch, and contain
    references to the source and target repositories these operations can be
    carried out on.

    Often we will provide convenience methods on 'repository' which carry out
    operations with another repository - they will always forward to
    InterRepository.get(other).method_name(parameters).
    Nc                 ó@  — |                       ¦   «         5  	 | j                             | j                             ¦   «         ¦  «         n# t
          t          j        f$ r Y nw xY w| j                             | j        |¬¦  «         ddd¦  «         dS # 1 swxY w Y   dS )a)  Make a complete copy of the content in self into destination.

        This is a destructive operation! Do not use it on existing
        repositories.

        Args:
          revision_id: Only copy the content needed to construct
                            revision_id and its parents.
        rG  N)	rØ   Útargetr¶  r6  r¹  rQ   r
   ÚRepositoryUpgradeRequiredr5  rp   s     r   r  zInterRepository.copy_content  s  € ð �_Š_ÑÔð 	Dð 	DðØ”×2Ò2Ø”K×2Ò2Ñ4Ô4ñ6ô 6ð 6ð 6øå'­Ô)IÐJð ð ð Ø�ðøøøàŒK×Ò˜dœk°{ÐÑCÔCÐCð	Dð 	Dð 	Dñ 	Dô 	Dð 	Dð 	Dð 	Dð 	Dð 	Dð 	Dð 	Døøøð 	Dð 	Dð 	Dð 	Dð 	Dð 	Ds4   •B—1A	ÁBÁ	A"ÁBÁ!A"Á"$BÂBÂBFc                 ó*   — t          | j        ¦  «        ‚)a"  Fetch the content required to construct revision_id.

        The content is copied from self.source to self.target.

        Args:
          revision_id: if None all content is copied, if NULL_REVISION no
                            content is copied.
        Returns: FetchResult
        )rQ   r5  )r   rN   r  rO   s       r   r5  zInterRepository.fetch'  s   € õ " $¤*Ñ-Ô-Ð-r    Tc                 ó*   — t          | j        ¦  «        ‚)a0  Return the revision ids that source has that target does not.

        Args:
          revision_ids: return revision ids included by these
            revision_ids.  NoSuchRevision will be raised if any of these
            revisions are not present.
          if_present_ids: like revision_ids, but will not cause
            NoSuchRevision if any of these are absent, instead they will simply
            not be in the result.  This is useful for e.g. finding revisions
            to fetch for tags, which may reference absent revisions.
          find_ghosts: If True find missing revisions in deep history
            rather than just finding the surface difference.
          limit: Maximum number of revisions to return, topologically
            ordered
        Returns: A breezy.graph.SearchResult.
        )rQ   r  )r   r  r  r  r  s        r   r  z+InterRepository.search_missing_revision_ids3  s   € õ& " $Ô"BÑCÔCÐCr    c                 óx   — 	 t                                | |¦  «         dS # t          j        $ r}Y d}~dS d}~ww xY w)z¶True if source and target have the same data representation.

        Note: this is always called on the base class; overriding it in a
        subclass will have no effect.
        TNF)r¢   r£   r
   ÚIncompatibleRepositories)r6  r6  Úes      r   Ú_same_modelzInterRepository._same_modelH  sQ   € ð	Ý×.Ò.¨v°vÑ>Ô>Ð>Ø�4øÝÔ.ð 	ð 	ð 	Ø�5�5�5�5�5øøøøð	øøøs   ‚ Ÿ9´9c                 óN  — |                       ¦   «         |                      ¦   «         k    rt          j        | |d¦  «        ‚t          | d¦  «        rt          |d¦  «        s| |k    rt          j        | |d¦  «        ‚dS | j        |j        k    rt          j        | |d¦  «        ‚dS )zJRaise an exception if two repositories do not use the same model.
        zdifferent rich-root supportÚ_serializerzdifferent formatsNzdifferent serializers)rÙ  r
   r;  Úhasattrr?  )r6  r6  s     r   r£   z"InterRepository._assert_same_modelU  sÇ   € ð ×$Ò$Ñ&Ô&¨&×*CÒ*CÑ*EÔ*EÒEÐEÝÔ1°&¸&Ø2OñQô Qð Qå�v˜}Ñ-Ô-ð 	µW¸VÀ]Ñ5SÔ5Sð 	Ø˜ÒÐÝÔ5°f¸fÐFYÑZÔZÐZØˆFàÔ Ô!3Ò3Ð3ÝÔ1°&¸&Ø2IñKô Kð Kð 4Ð3r    r+   rã  râ  )r!   r"   r#   r/   Ú_optimisersr  r5  r  rå  r=  r£   r%   r    r   r¢   r¢     s±   € € € € € ð	ð 	ð €KØ8ðDð Dð Dð Dð$
.ð 
.ð 
.ð 
.ð GKØðDð Dð Dð Dð* ð
ð 
ñ „\ð
ð ðKð Kñ „\ðKð Kð Kr    r¢   c                   ó   — e Zd ZdZd„ Zd„ ZdS )ÚCopyConverterzrA repository conversion tool which just performs a copy of the content.

    This is slow but quite reliable.
    c                 ó   — || _         dS )zwCreate a CopyConverter.

        Args:
          target_format: The format the resulting repository should be.
        N)r  r  s     r   r   zCopyConverter.__init__l  s   € ð +ˆÔÐÐr    c                 ó„  — t           j                             ¦   «         5 }d| _        d| _        |j                             ¦   «          |j        | _        | 	                    t          d¦  «        ¦  «         | j        j                             dd¦  «         | j        j                             d¦  «        }|j                             | j        ¦  «         |j                             | j        d|¬¦  «        | _        | 	                    t          d¦  «        ¦  «         | j                             | j        | j                             ¦   «         ¦  «        }|                     ¦   «         5  | 	                    t          d	¦  «        ¦  «         | j                             |¦  «         d
d
d
¦  «         n# 1 swxY w Y   | 	                    t          d¦  «        ¦  «         | j        j                             d¦  «         t           j                             t          d¦  «        ¦  «         d
d
d
¦  «         d
S # 1 swxY w Y   d
S )zÅPerform the conversion of to_convert, giving feedback via pb.

        Args:
          to_convert: The disk object to convert.
          pb: a progress bar to use for progress information.
        r   é   z&Moving repository to repository.backupr=   zrepository.backupT)r  Ú_override_transportzCreating new repositoryzCopying contentNzDeleting old repository contentzrepository converted)r   Ú
ui_factoryÚnested_progress_barÚcountÚtotalrk   Úget_format_stringr	   Úrepo_dirr@   rš   rÕ  ÚmoverB  r  r  r  Úsource_repor³   r  rØ   r  Údelete_treer   )r   r   ÚpbÚbackup_transportÚ	converteds        r   ÚconvertzCopyConverter.convertt  sŽ  € õ Œ]×.Ò.Ñ0Ô0ð 	@°BØˆDŒJØˆDŒJð ŒL×*Ò*Ñ,Ô,Ð,Ø œOˆDŒMØ�IŠI•gÐFÑGÔGÑHÔHÐHØŒMÔ#×(Ò(¨Ð7JÑKÔKÐKØ#œ}Ô6×<Ò<Ø#ñ %ô  %ÐàŒL×0Ò0°Ô1CÑDÔDÐDØ#œ|×0Ò0°´Ø8<ØEUð  1ñ  Wô  WˆDÔð �IŠI•gÐ7Ñ8Ô8Ñ9Ô9Ð9ØÔ*×5Ò5°d´mØ6:Ô6F×6PÒ6PÑ6RÔ6RñTô TˆIà×%Ò%Ñ'Ô'ð >ð >Ø—	’	�'Ð"3Ñ4Ô4Ñ5Ô5Ð5ØÔ ×2Ò2°9Ñ=Ô=Ð=ð>ð >ð >ñ >ô >ð >ð >ð >ð >ð >ð >øøøð >ð >ð >ð >ð �IŠI•gÐ?Ñ@Ô@ÑAÔAÐAØŒMÔ#×/Ò/Ð0CÑDÔDÐDÝŒM×Ò�wÐ'=Ñ>Ô>Ñ?Ô?Ð?ð/	@ð 	@ð 	@ñ 	@ô 	@ð 	@ð 	@ð 	@ð 	@ð 	@ð 	@ð 	@øøøð 	@ð 	@ð 	@ð 	@ð 	@ð 	@s7   ŸEH5Å'=F0Æ$H5Æ0F4	Æ4H5Æ7F4	Æ8A0H5È5H9È<H9N)r!   r"   r#   r/   r   rT  r%   r    r   rC  rC  f  sA   € € € € € ðð ð
+ð +ð +ð@ð @ð @ð @ð @r    rC  c                 ó®   ‡ — t           j        ‰ v r‰ t           j        = ‰                      ¦   «         D ]#\  }}t          ˆ fd„|D ¦   «         ¦  «        ‰ |<   Œ$‰ S )zDAlso don't use this. more compatibility code for unmigrated clients.c              3   ó$   •K  — | ]
}|‰v ¯|V — Œd S r+   r%   )rí   ÚparentÚrevision_graphs     €r   ú	<genexpr>z%_strip_NULL_ghosts.<locals>.<genexpr>›  sH   øè è € ð $7ð $7¨vÀFØ'5ðE6ð E6 Fð E6ð E6ð E6ð E6ð $7ð $7r    )rë   rì   r\   r   )rX  r]   r<   s   `  r   Ú_strip_NULL_ghostsrZ  •  s   ø€ õ Ô" nÐ4Ð4Ø�=Ô6Ð7Ø&×,Ò,Ñ.Ô.ð 7ð 7‰ˆˆWÝ#ð $7ð $7ð $7ð $7¸ð $7ñ $7ô $7ñ 7ô 7ˆ�sÑÐàÐr    Nc                 óT  — |d         }|                       ¦   «         }|                     |t          j        f¦  «        }	 t	          |¦  «         	 |�t          |¦  «        |k    rdS |d         |k    rdS t	          |¦  «        }|                     |¦  «         ŒJ# t          $ r Y dS w xY w)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ð   TN)ró   Úiter_lefthand_ancestryrë   rì   ÚnextrÁ   r�  ÚStopIteration)r   Úpartial_history_cacher}  Ústop_revisionÚstart_revisionrú   ÚiteratorrN   s           r   r  r     sÐ   € ð +¨2Ô.€NØ�NŠNÑÔ€EØ×+Ò+¨NÝ-:Ô-HÐ,JñLô L€HðåˆX‰Œˆð	6ØÐ&ÝÐ-Ñ.Ô.°Ò;Ð;Ø�Ø$ RÔ(¨MÒ9Ð9Ø�Ý˜x™.œ.ˆKØ!×(Ò(¨Ñ5Ô5Ð5ð	6øõ ð ð ð àˆˆðøøøs   ¿%B Á&B Á4%B Â
B'Â&B'c                   ó$   — e Zd ZdZd„ Zd„ Zd„ ZdS )r¨  a  An iterable yielding the contents of many lists as one list.

    Each iterator made from this will reflect the current contents of the lists
    at the time the iterator is made.

    This is used by Repository's _make_parents_provider implementation so that
    it is safe to do::

      pp = repo._make_parents_provider()      # uses a list of fallback repos
      pp.add_fallback_repository(other_repo)  # appends to that list
      result = pp.get_parent_map(...)
      # The result will include revs from other_repo
    c                 ó   — || _         d S r+   )Ú
list_parts)r   re  s     r   r   z_LazyListJoin.__init__Ò  s   € Ø$ˆŒˆˆr    c                 ób   — g }| j         D ]}|                     |¦  «         Œt          |¦  «        S r+   )re  ÚextendÚiter)r   Ú	full_listÚ	list_parts      r   Ú__iter__z_LazyListJoin.__iter__Õ  s;   € Øˆ	Øœð 	(ð 	(ˆIØ×Ò˜YÑ'Ô'Ð'Ð'Ý�I‰ŒÐr    c                 óX   — d                      | j        | j        j        | j        ¦  «        S )Nz	{}.{}({}))rW   r"   r¸   r!   re  rS   s    r   r€   z_LazyListJoin.__repr__Û  s*   € Ø×!Ò! $¤/°4´>Ô3JØ"œoñ/ô /ð 	/r    N)r!   r"   r#   r/   r   rk  r€   r%   r    r   r¨  r¨  Ã  sK   € € € € € ðð ð%ð %ð %ðð ð ð/ð /ð /ð /ð /r    r¨  r.   )3Ú__docformat__Útypingr   r   r   r   ÚglobalsÚ r	   r
   r   r   Ú
decoratorsr   r7  r   Úlockr   r   Útracer   r   r   r   r   Úrevisiontreer   rÑ  r   r   r—   r'   r)   r1   r{   r‚   ÚControlComponentr“   ÚControlComponentFormatRegistryrë  ÚFormatRegistryÚnetwork_format_registryrî  ÚControlComponentFormatr±   Úregister_lazyr¢   rC  rZ  r  r¨  r%   r    r   ú<module>r{     sù  ðð" €à ,Ð ,Ð ,Ð ,Ð ,Ð ,Ð ,Ð ,Ð ,Ð ,à $Ð $Ð $Ð $Ð $Ð $Ø €ˆGˆG‰IŒIð ñ ô ð ðð ð ð ð ð ð ð ð ð ð ð ð $Ð #Ð #Ð #Ð #Ð #Ø Ð Ð Ð Ð Ð Ø 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6ðCð Cð Cð Cð Cð Cð Cð Cð Cð Cð Cð Cð Cð Cà &Ð &Ð &Ð &Ð &Ð &ð "Ð ð:ð :ð :ð :ð :˜&Ô1ñ :ô :ð :ðFð Fð Fð Fð F˜&œ/ñ Fô Fð Fð

!ð 
!ð 
!ð 
!ð 
!ñ 
!ô 
!ð 
!ðY<ð Y<ð Y<ð Y<ð Y<ñ Y<ô Y<ð Y<ðxCð Cð Cð Cð CÐ 1ñ Cô Cð Cð$1ð 1ð 1ð 1ð 1ñ 1ô 1ð 1ð4JBð JBð JBð JBð JB�Ô,Ð.?ñ JBô JBð JBðZWð Wð Wð Wð W˜zÔHñ Wô Wð Wð F˜(Ô1Ð2DÔEÑGÔGÐ ðð +Ð*Ð+BÑCÔC€ððkð kð kð kð k�zÔ8ñ kô kð kðh × Ò Ø)ØØñô ð ð × Ò Ø3ØØñô ð ð × Ò Ø2ØØñô ð ð × Ò Ø9ØØñô ð ð
 × Ò ØNØØñô ð ð
 × Ò ØGØØñô ð ð
 × Ò Ø3ØØñô ð ð
 × Ò Ø=ØØ'ñô ð ð
 × Ò Ø;ØØ-ñô ð ð
 × Ò Ø3ØØñô ð ð
 × Ò Ø;ØØ'ñô ð ð
 × Ò Ø>Ø#Øñô ð ð × Ò ð-àØ-ñ	ô ð ð × Ò Ø$Ø#Øñô ð ð]Kð ]Kð ]Kð ]Kð ]K�k *Ô-ñ ]Kô ]Kð ]Kð@,@ð ,@ð ,@ð ,@ð ,@ñ ,@ô ,@ð ,@ð^ð ð ð =AØ"&ð ð  ð  ð  ðF/ð /ð /ð /ð /ñ /ô /ð /ð /ð /r    