§
    cÌcÀˆ  ã                   óX  — d Z ddlZddlmZ ddlZddlmZ  e e¦   «         d¦  «         ddlmZ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mZmZ ddl m!Z!m"Z"m#Z#m$Z$m%Z%m&Z& ddlm'Z(  G d„ de#¦  «        Z) G d„ de%¦  «        Z* G d„ de$¦  «        Z+ G d„ de+¦  «        Z, G d„ de+¦  «        Z- G d„ de+¦  «        Z. G d„ de&¦  «        Z/ G d„ de¦  «        Z0 G d „ d!e0¦  «        Z1 G d"„ d#e0¦  «        Z2 G d$„ d%e!¦  «        Z3 ej4        e3¦  «         d&„ Z5dS )'z‚Deprecated weave-based repository formats.

Weave based formats scaled linearly with history size and could not represent
ghosts.
é    N)ÚBytesIOé   )Úlazy_importzx
import itertools

from breezy import (
    graph as _mod_graph,
    ui,
    )
from breezy.bzr import (
    xml5,
    )
)ÚdebugÚerrorsÚlockable_filesÚlockdirÚosutilsÚtraceÚ	transportÚurlutils)Ú
tuned_gzipÚversionedfileÚweaveÚ	weavefile)ÚInterRepository)ÚRepositoryFormatMetaDiré   )Ú	TextStore)ÚAbsentContentFactoryÚFulltextContentFactoryÚVersionedFiles)ÚInterSameDataRepositoryÚVersionedFileCommitBuilderÚVersionedFileRepositoryÚVersionedFileRepositoryFormatÚMetaDirVersionedFileRepositoryÚ$MetaDirVersionedFileRepositoryFormat)Úbzrdirc                   ó†   ‡ — e Zd ZdZed„ ¦   «         Zd„ Zˆ fd„Zd„ Zd„ Z	d„ Z
d„ Zd	„ Z	 	 	 dd„Z	 dd„Zd„ Zd„ Zd„ Zˆ xZS )ÚAllInOneRepositoryzBLegacy support - the repository behaviour for all-in-one branches.c                 ó   — t           j        S ©N©Úxml5Úserializer_v5©Úselfs    úE/usr/lib/python3/dist-packages/breezy/plugins/weave_fmt/repository.pyÚ_serializerzAllInOneRepository._serializerR   ó   € åÔ!Ð!ó    c                 ó²   — t          |t          ¦  «        sd                     |¦  «        }|dk    rdS t          j        t          j        |¦  «        ¦  «        S )Nú/Ú )Ú
isinstanceÚstrÚjoinr   Úescaper
   Úsafe_unicode)r(   Úfile_or_paths     r)   Ú_escapezAllInOneRepository._escapeV   sP   € Ý˜,­Ñ,Ô,ð 	2ØŸ8š8 LÑ1Ô1ˆLØ˜2ÒÐØ�2ÝŒ�wÔ3°LÑAÔAÑBÔBÐBr,   c                 ó,  •‡ ‡‡‡— ‰                      ¦   «         Š‰                     ¦   «         Šdˆˆˆˆ fd„	}t          |t          ¦  «        r  |d¦  «        ‰ _         |d¦  «        ‰ _        t          ¦   «                              |‰‰j        ¦  «         d S )NTFc                 óŠ   •— ‰                      | ¦  «        }t          ‰j                             |¦  «        ||‰‰¬¦  «        }|S )N)ÚprefixedÚ
compressedÚdir_modeÚ	file_mode)r6   r   r   Úclone)	Únamer:   r9   ÚrelpathÚstoreÚa_controldirr;   r<   r(   s	        €€€€r)   Ú	get_storez.AllInOneRepository.__init__.<locals>.get_storeb   sO   ø€ ð
 —l’l 4Ñ(Ô(ˆGÝ˜lÔ4×:Ò:¸7ÑCÔCØ'/¸JØ'/Ø(1ð3ñ 3ô 3ˆEð ˆLr,   zinventory-storez
text-store)TF)	Ú_get_dir_modeÚ_get_file_moder0   ÚRepositoryFormat4Úinventory_storeÚ_text_storeÚsuperÚ__init__Ú_control_files)r(   Ú_formatrA   rB   r;   r<   Ú	__class__s   ` ` @@€r)   rI   zAllInOneRepository.__init__]   sÇ   øøøøø€ à×-Ò-Ñ/Ô/ˆØ ×/Ò/Ñ1Ô1ˆ	ð
	ð 
	ð 
	ð 
	ð 
	ð 
	ð 
	ð 
	ð 
	õ �gÕ0Ñ1Ô1ð 	7ð $- 9Ð->Ñ#?Ô#?ˆDÔ Ø(˜y¨Ñ6Ô6ˆDÔÝ‰Œ×ÒØ�\ <Ô#>ñ	@ô 	@ð 	@ð 	@ð 	@r,   c                 óê   — dt           j        v rt          j        dd¦  «         |                      ¦   «         5  d„ | j                             ¦   «         D ¦   «         cddd¦  «         S # 1 swxY w Y   dS )ú5Return all the possible revisions that we could find.Úevilr   ú._all_possible_ids scales with size of history.c                 ó   — g | ]
}|d          ‘ŒS ©éÿÿÿÿ© ©Ú.0Úkeys     r)   ú
<listcomp>z8AllInOneRepository._all_possible_ids.<locals>.<listcomp>~   ó   € Ð?Ð?Ð? �C˜”GÐ?Ð?Ð?r,   N©r   Údebug_flagsr   Úmutter_callsiteÚ	lock_readÚinventoriesÚkeysr'   s    r)   Ú_all_possible_idsz$AllInOneRepository._all_possible_idsx   óÖ   € à•UÔ&Ð&Ð&ÝÔ!ØÐCñEô Eð Eà�^Š^ÑÔð 	@ð 	@Ø?Ð? tÔ'7×'<Ò'<Ñ'>Ô'>Ð?Ñ?Ô?ð	@ð 	@ð 	@ð 	@ñ 	@ô 	@ð 	@ð 	@ð 	@ð 	@ð 	@ð 	@øøøð 	@ð 	@ð 	@ð 	@ð 	@ð 	@ó   ¸#A(Á(A,Á/A,c                 ó¤   — |                       ¦   «         5  d„ | j                             ¦   «         D ¦   «         cddd¦  «         S # 1 swxY w Y   dS )á  Returns a list of all the revision ids in the repository.

        These are in as much topological order as the underlying store can
        present: for weaves ghosts may lead to a lack of correctness until
        the reweave updates the parents list.
        c                 ó   — g | ]
}|d          ‘ŒS rR   rT   rU   s     r)   rX   z8AllInOneRepository._all_revision_ids.<locals>.<listcomp>ˆ   ó   € Ð=Ð=Ð= �C˜”GÐ=Ð=Ð=r,   N©r]   Ú	revisionsr_   r'   s    r)   Ú_all_revision_idsz$AllInOneRepository._all_revision_ids€   ó—   € ð �^Š^ÑÔð 	>ð 	>Ø=Ð= t¤~×':Ò':Ñ'<Ô'<Ð=Ñ=Ô=ð	>ð 	>ð 	>ð 	>ñ 	>ô 	>ð 	>ð 	>ð 	>ð 	>ð 	>ð 	>øøøð 	>ð 	>ð 	>ð 	>ð 	>ð 	>ó   •#AÁA	ÁA	c                 ó°   — | j         j        j        }|                     dd¦  «         |                     d¦  «         | j                             ¦   «          dS ©z8Put a replacement inventory.new into use as inventories.zinventory.new.weaveúinventory.weaveN)Ú
controldirrJ   Ú
_transportÚcopyÚdeleter^   r_   ©r(   Úts     r)   Ú_activate_new_inventoryz*AllInOneRepository._activate_new_inventoryŠ   sU   € ð ŒOÔ*Ô5ˆØ	�ŠÐ$Ð&7Ñ8Ô8Ð8à	�ŠÐ&Ñ'Ô'Ð'àÔ×ÒÑÔÐÐÐr,   c                 óT   — | j         j        j        }|                     dd¦  «         d S ©Nrn   zinventory.backup.weave)ro   rJ   rp   rq   rs   s     r)   Ú_backup_inventoryz$AllInOneRepository._backup_inventory”   s+   € ØŒOÔ*Ô5ˆØ	�ŠÐ Ð":Ñ;Ô;Ð;Ð;Ð;r,   c                 ó\   — | j         j        j        }| j                             || d¦  «        S ©Nzinventory.new)ro   rJ   rp   rK   Ú_get_inventoriesrs   s     r)   Ú_temp_inventoriesz$AllInOneRepository._temp_inventories˜   s)   € ØŒOÔ*Ô5ˆØŒ|×,Ò,¨Q°°oÑFÔFÐFr,   NFc
                 ó”   — |                       || j        ¦  «         t          | ||||||||	¬¦	  «	        }
|                      ¦   «          |
S ©N)Úlossy©Ú_check_ascii_revisionidÚget_commit_builderr   Ústart_write_group©r(   ÚbranchÚparentsÚconfigÚ	timestampÚtimezoneÚ	committerÚrevpropsÚrevision_idr   Úresults              r)   r‚   z%AllInOneRepository.get_commit_builderœ   ó_   € ð 	×$Ò$ [°$Ô2IÑJÔJÐJÝ+¨D°'¸6À9Ø,4°iÀÈ;Ð^cðeñ eô eˆà×ÒÑ Ô Ð Øˆr,   Tc                 óÜ   — |                       ¦   «                              |¦  «        }g }|D ]}||v r|                     |f¦  «         Œ| j                             |f|||¬¦  «        d         S ©z;Store lines in inv_vf and return the sha1 of the inventory.)Úcheck_contentr   ©Ú	get_graphÚget_parent_mapÚappendr^   Ú	add_lines©r(   rŒ   r†   Úlinesr‘   Úpresent_parentsÚfinal_parentsÚparents           r)   Ú_inventory_add_linesz'AllInOneRepository._inventory_add_lines¥   óŽ   € ð Ÿ.š.Ñ*Ô*×9Ò9¸'ÑBÔBˆØˆØð 	0ð 	0ˆFØ˜Ð(Ð(Ø×$Ò$ f YÑ/Ô/Ð/øØÔ×)Ò)¨;¨.¸-ÈØ8Eð *ñ Gô GØGHôJð 	Jr,   c                 ó   — dS )z'AllInOne repositories cannot be shared.FrT   r'   s    r)   Ú	is_sharedzAllInOneRepository.is_shared°   s   € àˆur,   c                 ó4   — t          j        | j        ¦  «        ‚)a&  Set the policy flag for making working trees when creating branches.

        This only applies to branches that use this repository.

        The default is 'True'.
        :param new_value: True to restore the default, False to disable making
                          working trees.
        )r   ÚRepositoryUpgradeRequiredÚuser_url)r(   Ú	new_values     r)   Úset_make_working_treesz)AllInOneRepository.set_make_working_trees´   s   € õ Ô.¨t¬}Ñ=Ô=Ð=r,   c                 ó   — dS )z<Returns the policy for making working trees on new branches.TrT   r'   s    r)   Úmake_working_treesz%AllInOneRepository.make_working_trees¿   ó   € àˆtr,   ©NNNNNF©T)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr*   r6   rI   r`   ri   ru   rx   r|   r‚   rœ   rŸ   r¤   r¦   Ú__classcell__©rL   s   @r)   r!   r!   O   s*  ø€ € € € € ØLÐLàð"ð "ñ „Xð"ðCð Cð Cð@ð @ð @ð @ð @ð6@ð @ð @ð>ð >ð >ð ð  ð  ð<ð <ð <ðGð Gð Gð EIØCGØ38ðð ð ð ð ,0ð	Jð 	Jð 	Jð 	Jðð ð ð	>ð 	>ð 	>ðð ð ð ð ð ð r,   r!   c                   ó^   ‡ — e Zd ZdZˆ fd„Zd„ Zd„ Zd„ Zd„ Zd„ Z		 	 	 dd
„Z
d„ Z	 dd„Zˆ xZS )ÚWeaveMetaDirRepositoryz=A subclass of MetaDirRepository to set weave specific policy.c                 óf   •— t          ¦   «                              |||¦  «         |j        | _        d S r#   )rH   rI   r*   )r(   rK   rA   Úcontrol_filesrL   s       €r)   rI   zWeaveMetaDirRepository.__init__Ç   s7   ø€ Ý‰Œ×ÒØ�\ =ñ	2ô 	2ð 	2à"Ô.ˆÔÐÐr,   c                 óê   — dt           j        v rt          j        dd¦  «         |                      ¦   «         5  d„ | j                             ¦   «         D ¦   «         cddd¦  «         S # 1 swxY w Y   dS )rN   rO   r   rP   c                 ó   — g | ]
}|d          ‘ŒS rR   rT   rU   s     r)   rX   z<WeaveMetaDirRepository._all_possible_ids.<locals>.<listcomp>Ò   rY   r,   NrZ   r'   s    r)   r`   z(WeaveMetaDirRepository._all_possible_idsÌ   ra   rb   c                 ó¤   — |                       ¦   «         5  d„ | j                             ¦   «         D ¦   «         cddd¦  «         S # 1 swxY w Y   dS )rd   c                 ó   — g | ]
}|d          ‘ŒS rR   rT   rU   s     r)   rX   z<WeaveMetaDirRepository._all_revision_ids.<locals>.<listcomp>Ü   rf   r,   Nrg   r'   s    r)   ri   z(WeaveMetaDirRepository._all_revision_idsÔ   rj   rk   c                 óœ   — | j         }|                     dd¦  «         |                     d¦  «         | j                             ¦   «          dS rm   )rp   rq   rr   r^   r_   rs   s     r)   ru   z.WeaveMetaDirRepository._activate_new_inventoryÞ   sO   € ð ŒOˆØ	�ŠÐ$Ð&7Ñ8Ô8Ð8à	�ŠÐ&Ñ'Ô'Ð'àÔ×ÒÑÔÐÐÐr,   c                 ó@   — | j         }|                     dd¦  «         d S rw   )rp   rq   rs   s     r)   rx   z(WeaveMetaDirRepository._backup_inventoryè   s%   € ØŒOˆØ	�ŠÐ Ð":Ñ;Ô;Ð;Ð;Ð;r,   c                 óH   — | j         }| j                             || d¦  «        S rz   )rp   rK   r{   rs   s     r)   r|   z(WeaveMetaDirRepository._temp_inventoriesì   s#   € ØŒOˆØŒ|×,Ò,¨Q°°oÑFÔFÐFr,   NFc
                 ó”   — |                       || j        ¦  «         t          | ||||||||	¬¦	  «	        }
|                      ¦   «          |
S r~   r€   r„   s              r)   r‚   z)WeaveMetaDirRepository.get_commit_builderð   rŽ   r,   c                 óˆ   — |                       ¦   «         5  |                      |¦  «        cddd¦  «         S # 1 swxY w Y   dS )z/Return the Revision object for a named revisionN)r]   Úget_revision_reconcile)r(   rŒ   s     r)   Úget_revisionz#WeaveMetaDirRepository.get_revisionù   s‡   € à�^Š^ÑÔð 	<ð 	<Ø×.Ò.¨{Ñ;Ô;ð	<ð 	<ð 	<ð 	<ñ 	<ô 	<ð 	<ð 	<ð 	<ð 	<ð 	<ð 	<øøøð 	<ð 	<ð 	<ð 	<ð 	<ð 	<s   •7·;¾;Tc                 óÜ   — |                       ¦   «                              |¦  «        }g }|D ]}||v r|                     |f¦  «         Œ| j                             |f|||¬¦  «        d         S r�   r’   r—   s           r)   rœ   z+WeaveMetaDirRepository._inventory_add_linesþ   r�   r,   r¨   r©   )rª   r«   r¬   r­   rI   r`   ri   ru   rx   r|   r‚   r¿   rœ   r¯   r°   s   @r)   r²   r²   Ä   sà   ø€ € € € € ØGÐGð/ð /ð /ð /ð /ð
@ð @ð @ð>ð >ð >ð ð  ð  ð<ð <ð <ðGð Gð Gð EIØCGØ38ðð ð ð ð<ð <ð <ð ,0ð	Jð 	Jð 	Jð 	Jð 	Jð 	Jð 	Jð 	Jr,   r²   c                   óX   — e Zd ZdZdZdZdZdZdZdZ	dZ
dZdZdZdZdZd	d„Zd
d„Zd„ ZdS )ÚPreSplitOutRepositoryFormatz4Base class for the pre split out repository formats.FTÚtopologicalc                 ó˜  — |rt          j        | |j        ¦  «        ‚|s|                      |d¬¦  «        S t	          ¦   «         }t          j        t          j        ¦   «         |¦  «         | 	                    ¦   «         }t          j        d|j        j        ¦  «         t          j        |j        dt          j        ¦  «        }|                     ¦   «          |                     ¦   «          |j        }	 |                     d|                     ¦   «         ¬¦  «         |                     d|                     ¦   «         ¬¦  «         |                     d||                     ¦   «         ¬¦  «         |                     ¦   «          n# |                     ¦   «          w xY w|                      |d¬¦  «        }|                      |||¦  «         |S )	zCreate a weave repository.T)Ú_foundúcreating repository in %s.zbranch-lockúrevision-store)ÚmodeÚweavesrn   )r   ÚIncompatibleFormatrK   Úopenr   r   Úwrite_weave_v5r   ÚWeaveÚgetvaluer   Úmutterr   Úbaser   ÚLockableFilesÚTransportLockÚcreate_lockÚ
lock_writeÚmkdirrC   Úput_bytes_non_atomicrD   ÚunlockÚ_run_post_repo_init_hooks)	r(   rA   ÚsharedÚ	_internalÚsioÚempty_weaver´   r   Ú
repositorys	            r)   Ú
initializez&PreSplitOutRepositoryFormat.initialize  sÂ  € àð 	HÝÔ+¨D°,Ô2FÑGÔGÐGàð 	8à—9’9˜\°$�9Ñ7Ô7Ð7õ ‰iŒiˆÝÔ ¥¤¡¤°Ñ4Ô4Ð4Ø—l’l‘n”nˆåŒÐ1°<Ô3IÔ3NÑOÔOÐOõ 'Ô4°\Ô5KØ5BÅNÔD`ñbô bˆà×!Ò!Ñ#Ô#Ð#Ø× Ò Ñ"Ô"Ð"Ø Ô*ˆ	ð	#Ø�OŠOÐ,Ø!-×!;Ò!;Ñ!=Ô!=ð ñ ?ô ?ð ?à�OŠO˜H¨<×+EÒ+EÑ+GÔ+GˆOÑHÔHÐHØ×*Ò*Ð+<¸kØ0<×0KÒ0KÑ0MÔ0Mð +ñ Oô Oð Oð × Ò Ñ"Ô"Ð"Ð"øˆM× Ò Ñ"Ô"Ð"Ð"øøøØ—Y’Y˜|°D�YÑ9Ô9ˆ
Ø×&Ò& z°<ÀÑHÔHÐHØÐs   Ã2A<F ÆFc                 óJ  — |st           ‚|                     d¦  «        }t          | |¬¦  «        }|                      ||¦  «        |_        |                      ||¦  «        |_        |                      ||¦  «        |_        |  	                    ||¦  «        |_
        d|_        |S )zSee RepositoryFormat.open().N)rK   rA   )ÚNotImplementedErrorÚget_repository_transportr!   Ú_get_revisionsrh   Ú_get_signaturesÚ
signaturesr{   r^   Ú
_get_textsÚtextsÚ	chk_bytes)r(   rA   rÅ   Úrepo_transportr�   s        r)   rË   z PreSplitOutRepositoryFormat.open?  sŸ   € àð 	&å%Ð%à%×>Ò>¸tÑDÔDˆÝ#¨D¸|ÐLÑLÔLˆØ×.Ò.¨~¸vÑFÔFˆÔØ ×0Ò0°ÀÑHÔHˆÔØ!×2Ò2°>À6ÑJÔJˆÔØ—’ ~°vÑ>Ô>ˆŒØˆÔØˆr,   c                 ó   — dS ©NTrT   r'   s    r)   Úis_deprecatedz)PreSplitOutRepositoryFormat.is_deprecatedN  ó   € Øˆtr,   N©FF©F)rª   r«   r¬   r­   Úrich_root_dataÚsupports_tree_referenceÚsupports_ghostsÚsupports_external_lookupsÚsupports_chksÚsupports_nesting_repositoriesÚ_fetch_orderÚ_fetch_reconcileÚfast_deltasÚsupports_leaving_lockÚsupports_overriding_transportÚ%revision_graph_can_have_wrong_parentsrÞ   rË   rë   rT   r,   r)   rÂ   rÂ   
  s—   € € € € € Ø>Ð>à€NØ#ÐØ€OØ %ÐØ€MØ$(Ð!Ø €LØÐØ€KØ!ÐØ$)Ð!ð -2Ð)ð!ð !ð !ð !ðFð ð ð ðð ð ð ð r,   rÂ   c                   ób   — e Zd ZdZdZ ej        ¦   «         Zd„ Zdd„Z	d„ Z
dd„Zd„ Zd	„ Zd
„ ZdS )rE   a/  Bzr repository format 4.

    This repository format has:
     - flat stores
     - TextStores for texts, inventories,revisions.

    This format is deprecated: it indexes texts using a text id which is
    removed in format 5; initialization and write support for this format
    has been removed.
    Fc                 ó   — dS )ú.See RepositoryFormat.get_format_description().zRepository format 4rT   r'   s    r)   Úget_format_descriptionz(RepositoryFormat4.get_format_descriptionb  s   € à$Ð$r,   c                 ó*   — t          j        | ¦  «        ‚)z$Format 4 branches cannot be created.)r   ÚUninitializableFormat)r(   ÚurlrÙ   rÚ   s       r)   rÞ   zRepositoryFormat4.initializef  s   € åÔ*¨4Ñ0Ô0Ð0r,   c                 ó   — dS )zÇFormat 4 is not supported.

        It is not supported because the model changed from 4 to 5 and the
        conversion logic is expensive - so doing it on the fly was not
        feasible.
        FrT   r'   s    r)   Úis_supportedzRepositoryFormat4.is_supportedj  s	   € ð ˆur,   Ú	inventoryc                 ó   — d S r#   rT   )r(   rè   Úrepor>   s       r)   r{   z"RepositoryFormat4._get_inventoriess  r§   r,   c                 ó’   — ddl m} t          |                     d¦  «        |dt	          j        ¦   «         |j        |j        ¦  «        S )Nr   )Úserializer_v4rÇ   T)Úxml4r  ÚRevisionTextStorer=   r   ÚPrefixMapperÚ	is_lockedÚis_write_locked)r(   rè   r  r  s       r)   râ   z RepositoryFormat4._get_revisionsw  sT   € Ø'Ð'Ð'Ð'Ð'Ð'Ý  ×!5Ò!5Ð6FÑ!GÔ!GØ!.°µmÔ6PÑ6RÔ6RØ!%¤°Ô1EñGô Gð 	Gr,   c                 ó„   — t          |                     d¦  «        dt          j        ¦   «         |j        |j        ¦  «        S ©NrÇ   F©ÚSignatureTextStorer=   r   r  r  r  ©r(   rè   r  s      r)   rã   z!RepositoryFormat4._get_signatures}  ó@   € Ý! .×"6Ò"6Ð7GÑ"HÔ"HØ"'­Ô)CÑ)EÔ)EØ"&¤.°$Ô2FñHô Hð 	Hr,   c                 ó   — d S r#   rT   r  s      r)   rå   zRepositoryFormat4._get_texts‚  rì   r,   Nrí   ©r  )rª   r«   r¬   r­   Úsupports_funky_charactersÚweave_bzrdirÚBzrDirFormat4Ú_matchingcontroldirrþ   rÞ   r  r{   râ   rã   rå   rT   r,   r)   rE   rE   R  s°   € € € € € ð	ð 	ð !&Ðà4˜,Ô4Ñ6Ô6Ðð%ð %ð %ð1ð 1ð 1ð 1ðð ð ðð ð ð ðGð Gð GðHð Hð Hð
ð ð ð ð r,   rE   c                   ó~   — e Zd ZdZej        Z ej        ¦   «         Z	dZ
ed„ ¦   «         Zd„ Zd„ Zdd„Zd„ Zd	„ Zd
„ ZdS )ÚRepositoryFormat5z©Bzr control format 5.

    This repository format has:
     - weaves for file texts and inventory
     - flat stores
     - TextStores for revisions and signatures.
    Fc                 ó   — t           j        S r#   r$   r'   s    r)   r*   zRepositoryFormat5._serializer“  r+   r,   c                 ó   — dS )rý   zWeave repository format 5rT   r'   s    r)   rþ   z(RepositoryFormat5.get_format_description—  ó   € à*Ð*r,   c                 ó4   — | j                              ¦   «         S ©z@The network name for this format is the control dirs disk label.©r  Úget_format_stringr'   s    r)   Únetwork_namezRepositoryFormat5.network_name›  ó   € àÔ'×9Ò9Ñ;Ô;Ð;r,   r  c                 óv   — t          j        |¦  «        }t          j        |t          j        ||j        ¦  «        S r#   ©r   ÚConstantMapperÚThunkedVersionedFilesr   Ú	WeaveFiler  ©r(   rè   r  r>   Úmappers        r)   r{   z"RepositoryFormat5._get_inventoriesŸ  ó7   € ÝÔ-¨dÑ3Ô3ˆÝÔ2°>Ý38´?ÀFÈDÌNñ\ô \ð 	\r,   c                 óš   — t          |                     d¦  «        t          j        dt	          j        ¦   «         |j        |j        ¦  «        S r  )r
  r=   r%   r&   r   r  r  r  r  s      r)   râ   z RepositoryFormat5._get_revisions¤  sE   € Ý  ×!5Ò!5Ð6FÑ!GÔ!GÝ!%Ô!3°U½MÔ<VÑ<XÔ<XØ!%¤°Ô1EñGô Gð 	Gr,   c                 ó„   — t          |                     d¦  «        dt          j        ¦   «         |j        |j        ¦  «        S r  r  r  s      r)   rã   z!RepositoryFormat5._get_signatures©  r  r,   c                 óž   — t          j        ¦   «         }|                     d¦  «        }t          j        |t          j        ||j        ¦  «        S ©NrÉ   )r   r  r=   r(  r   r)  r  ©r(   rè   r  r+  Úbase_transports        r)   rå   zRepositoryFormat5._get_texts®  sH   € ÝÔ+Ñ-Ô-ˆØ'×-Ò-¨hÑ7Ô7ˆÝÔ2°>Ý38´?ÀFÈDÌNñ\ô \ð 	\r,   Nr  )rª   r«   r¬   r­   r   r)  Ú_versionedfile_classr  ÚBzrDirFormat5r  r  r®   r*   rþ   r#  r{   râ   rã   rå   rT   r,   r)   r  r  †  óÆ   € € € € € ðð ð !œ?ÐØ4˜,Ô4Ñ6Ô6ÐØ %Ðàð"ð "ñ „Xð"ð+ð +ð +ð<ð <ð <ð\ð \ð \ð \ð
Gð Gð Gð
Hð Hð Hð
\ð \ð \ð \ð \r,   r  c                   ó~   — e Zd ZdZej        Z ej        ¦   «         Z	dZ
ed„ ¦   «         Zd„ Zd„ Zdd„Zd„ Zd	„ Zd
„ ZdS )ÚRepositoryFormat6z½Bzr control format 6.

    This repository format has:
     - weaves for file texts and inventory
     - hash subdirectory based stores.
     - TextStores for revisions and signatures.
    Fc                 ó   — t           j        S r#   r$   r'   s    r)   r*   zRepositoryFormat6._serializerÂ  r+   r,   c                 ó   — dS )rý   zWeave repository format 6rT   r'   s    r)   rþ   z(RepositoryFormat6.get_format_descriptionÆ  r  r,   c                 ó4   — | j                              ¦   «         S r   r!  r'   s    r)   r#  zRepositoryFormat6.network_nameÊ  r$  r,   r  c                 óv   — t          j        |¦  «        }t          j        |t          j        ||j        ¦  «        S r#   r&  r*  s        r)   r{   z"RepositoryFormat6._get_inventoriesÎ  r,  r,   c                 óš   — t          |                     d¦  «        t          j        dt	          j        ¦   «         |j        |j        ¦  «        S r  ©r
  r=   r%   r&   r   ÚHashPrefixMapperr  r  r  s      r)   râ   z RepositoryFormat6._get_revisionsÓ  sE   € Ý  ×!5Ò!5Ð6FÑ!GÔ!GÝ!%Ô!3°U½MÔ<ZÑ<\Ô<\Ø!%¤°Ô1EñGô Gð 	Gr,   c                 ó„   — t          |                     d¦  «        dt          j        ¦   «         |j        |j        ¦  «        S r  ©r  r=   r   r>  r  r  r  s      r)   rã   z!RepositoryFormat6._get_signaturesØ  s@   € Ý! .×"6Ò"6Ð7GÑ"HÔ"HØ"'­Ô)GÑ)IÔ)IØ"&¤.°$Ô2FñHô Hð 	Hr,   c                 óž   — t          j        ¦   «         }|                     d¦  «        }t          j        |t          j        ||j        ¦  «        S r0  ©r   r>  r=   r(  r   r)  r  r1  s        r)   rå   zRepositoryFormat6._get_textsÝ  óH   € ÝÔ/Ñ1Ô1ˆØ'×-Ò-¨hÑ7Ô7ˆÝÔ2°>Ý38´?ÀFÈDÌNñ\ô \ð 	\r,   Nr  )rª   r«   r¬   r­   r   r)  r3  r  ÚBzrDirFormat6r  r  r®   r*   rþ   r#  r{   râ   rã   rå   rT   r,   r)   r7  r7  µ  r5  r,   r7  c                   óž   — e Zd ZdZej        ZdZdZdZ	dZ
dZdZdZed„ ¦   «         Zed„ ¦   «         Zd„ Zdd	„Zd
„ Zd„ Zd„ Zdd„Zdd„Zd„ ZdS )ÚRepositoryFormat7a/  Bzr repository 7.

    This repository format has:
     - weaves for file texts and inventory
     - hash subdirectory based stores.
     - TextStores for revisions and signatures.
     - a format marker of its own
     - an optional 'shared-storage' flag
     - an optional 'no-working-trees' flag
    FrÃ   Tc                 ó   — t           j        S r#   r$   r'   s    r)   r*   zRepositoryFormat7._serializerú  r+   r,   c                 ó   — dS )z)See RepositoryFormat.get_format_string().s   Bazaar-NG Repository format 7rT   )Úclss    r)   r"  z#RepositoryFormat7.get_format_stringþ  s
   € ð 0Ð/r,   c                 ó   — dS )rý   zWeave repository format 7rT   r'   s    r)   rþ   z(RepositoryFormat7.get_format_description  r  r,   r  c                 óv   — t          j        |¦  «        }t          j        |t          j        ||j        ¦  «        S r#   r&  r*  s        r)   r{   z"RepositoryFormat7._get_inventories  r,  r,   c                 óš   — t          |                     d¦  «        t          j        dt	          j        ¦   «         |j        |j        ¦  «        S ©NrÇ   Tr=  r  s      r)   râ   z RepositoryFormat7._get_revisions  sE   € Ý  ×!5Ò!5Ð6FÑ!GÔ!GÝ!%Ô!3°T½=Ô;YÑ;[Ô;[Ø!%¤°Ô1EñGô Gð 	Gr,   c                 ó„   — t          |                     d¦  «        dt          j        ¦   «         |j        |j        ¦  «        S rM  r@  r  s      r)   rã   z!RepositoryFormat7._get_signatures  s@   € Ý! .×"6Ò"6Ð7GÑ"HÔ"HØ"&­Ô(FÑ(HÔ(HØ"&¤.°$Ô2FñHô Hð 	Hr,   c                 óž   — t          j        ¦   «         }|                     d¦  «        }t          j        |t          j        ||j        ¦  «        S r0  rB  r1  s        r)   rå   zRepositoryFormat7._get_texts  rC  r,   c                 óŠ  — t          ¦   «         }t          j        t          j        ¦   «         |¦  «         |                     ¦   «         }t          j        d|j        j	        ¦  «         ddg}dt          |¦  «        fg}d|  
                    ¦   «         fg}|                      |||||¦  «         |                      |d¬¦  «        S )z•Create a weave repository.

        :param shared: If true the repository will be initialized as a shared
                       repository.
        rÆ   rÇ   rÉ   rn   ÚformatT)rA   rÅ   )r   r   rÌ   r   rÍ   rÎ   r   rÏ   r   rÐ   r"  Ú_upload_blank_contentrË   )r(   rA   rÙ   rÛ   rÜ   ÚdirsÚfilesÚ
utf8_filess           r)   rÞ   zRepositoryFormat7.initialize  s¿   € õ ‰iŒiˆÝÔ ¥¤¡¤°Ñ4Ô4Ð4Ø—l’l‘n”nˆåŒÐ1°<Ô3IÔ3NÑOÔOÐOØ  (Ð+ˆØ#¥W¨[Ñ%9Ô%9Ð:ð ˆà ×!7Ò!7Ñ!9Ô!9Ð:Ð;ˆ
à×"Ò"Ø˜$  z°6ñ	;ô 	;ð 	;à�yŠy l¸4ˆyÑ@Ô@Ð@r,   Nc                 ó¾  — |st          j        |¦  «        }|�|}n|                     d¦  «        }t          j        |dt
          j        ¦  «        }t          | ||¬¦  «        }|                      ||¦  «        |_	        |  
                    ||¦  «        |_        |                      ||¦  «        |_        |                      ||¦  «        |_        d|_        ||_        |S )a  See RepositoryFormat.open().

        :param _override_transport: INTERNAL USE ONLY. Allows opening the
                                    repository at a slightly different url
                                    than normal. I.e. during 'upgrade'.
        NÚlock)rK   rA   r´   )r   Úfind_formatrá   r   rÑ   r	   ÚLockDirr²   râ   rh   rã   rä   r{   r^   rå   ræ   rç   rp   )r(   rA   rÅ   Ú_override_transportrQ  rè   r´   r�   s           r)   rË   zRepositoryFormat7.open1  sê   € ð ð 	GÝ,Ô8¸ÑFÔFˆFØÐ*Ø0ˆNˆNà)×BÒBÀ4ÑHÔHˆNÝ&Ô4°^Ø5;½W¼_ñNô Nˆå'°À<Ø6CðEñ Eô Eˆà×.Ò.¨~¸vÑFÔFˆÔØ ×0Ò0°ÀÑHÔHˆÔØ!×2Ò2°>À6ÑJÔJˆÔØ—’ ~°vÑ>Ô>ˆŒØˆÔØ*ˆÔØˆr,   c                 ó   — dS rê   rT   r'   s    r)   rë   zRepositoryFormat7.is_deprecatedJ  rì   r,   r  rî   )FN)rª   r«   r¬   r­   r   r)  r3  rñ   ró   r  rú   rõ   rö   r÷   r®   r*   Úclassmethodr"  rþ   r{   râ   rã   rå   rÞ   rË   rë   rT   r,   r)   rF  rF  ä  s  € € € € € ð	ð 	ð !œ?ÐØ€OØ€MØ %ÐØ,1Ð)à €LØÐØ€Kàð"ð "ñ „Xð"ð ð0ð 0ñ „[ð0ð+ð +ð +ð\ð \ð \ð \ð
Gð Gð Gð
Hð Hð Hð
\ð \ð \ðAð Að Að Að*ð ð ð ð2ð ð ð ð r,   rF  c                   ó0   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ ZdS )ÚTextVersionedFilesz1Just-a-bunch-of-files based VersionedFile stores.c                 óx   — || _         || _        || _        | j         rd| _        nd| _        || _        || _        d S )Nú.gzr/   )Ú_compressedrp   Ú_mapperÚ_extÚ
_is_lockedÚ
_can_write©r(   r   r:   r+  r  Ú	can_writes         r)   rI   zTextVersionedFiles.__init__Q  sE   € Ø%ˆÔØ#ˆŒØˆŒØÔð 	ØˆDŒIˆIàˆDŒIØ#ˆŒØ#ˆŒˆˆr,   c                 óÜ  — |                       ¦   «         st          j        | ¦  «        ‚|                      ¦   «         st          j        | ¦  «        ‚d|d         v r"t          d                     |¦  «        ¦  «        ‚|}| j        rt          j	        |¦  «        }|  
                    |¦  «        }| j                             |t          d                     |¦  «        ¦  «        d¬¦  «         dS )zAdd a revision to the store.ó   /rS   zbad idea to put / in {!r}r,   T)Úcreate_parent_dirN)rd  r   ÚObjectNotLockedre  ÚReadOnlyErrorÚ
ValueErrorrQ  ra  r   Úchunks_to_gzipÚ_maprp   Úput_file_non_atomicr   r2   )r(   rW   r†   r˜   ÚchunksÚpaths         r)   r–   zTextVersionedFiles.add_lines\  sæ   € à�ŠÑ Ô ð 	/ÝÔ(¨Ñ.Ô.Ð.Ø�ŠÑ Ô ð 	-ÝÔ& tÑ,Ô,Ð,Ø�3�r”7ˆ?ˆ?ÝÐ8×?Ò?ÀÑDÔDÑEÔEÐEØˆØÔð 	7ÝÔ.¨vÑ6Ô6ˆFØ�yŠy˜‰~Œ~ˆØŒ×+Ò+Ø•'˜#Ÿ(š( 6Ñ*Ô*Ñ+Ô+Ø"ð 	,ñ 	$ô 	$ð 	$ð 	$ð 	$r,   c                 ó>  — i }|D �]}|j         dk    r!t          j        |j        d         g| ¦  «        ‚|j         dv r0|                      |j        d |                     d¦  «        ¦  «         Œh|j         df}	 ||         }n:# t          $ r- t                               |¦  «        } || ¦  «        }|||<   Y nw xY w| 	                    ||                     |j         ¦  «        ¦  «        }	 |                      |j        d |¦  «         �Œ# t          j
        $ r Y �Œw xY wd S )NÚabsentr   )Úfulltextrq  r˜   r˜   )Ústorage_kindr   ÚRevisionNotPresentrW   r–   Úget_bytes_asÚKeyErrorÚadapter_registryÚgetÚ	get_bytesÚRevisionAlreadyPresent)r(   ÚstreamÚadaptersÚrecordÚadapter_keyÚadapterÚadapter_factoryr˜   s           r)   Úinsert_record_streamz'TextVersionedFiles.insert_record_streaml  si  € ØˆØð 	ñ 	ˆFàÔ" hÒ.Ð.ÝÔ/°´¸A´°ÀÑFÔFÐFàÔ"Ð&EÐEÐEØ—’˜vœz¨4Ø%×2Ò2°7Ñ;Ô;ñ=ô =ð =ð =ð %Ô1°7Ð:�ð4Ø& {Ô3�G�GøÝð 4ð 4ð 4Ý&6×&:Ò&:¸;Ñ&GÔ&G�OØ-˜o¨dÑ3Ô3�GØ,3�H˜[Ñ)Ð)Ð)ð4øøøð  ×)Ò)Ø˜F×/Ò/°Ô0CÑDÔDñFô F�ðØ—N’N 6¤:¨t°UÑ;Ô;Ð;Ñ;øÝÔ4ð ð ð Ø‘Dðøøøð)	ð 	s$   Á7B Â 4B7Â6B7Ã)DÄDÄDc                 óð  — |                       ¦   «         st          j        | ¦  «        ‚|                      |¦  «        }	 | j                             |¦  «        }| j        }n^# t          j        $ rL | j        r?|d d…         }	 | j                             |¦  «        }d}n# t          j        $ r Y Y d S w xY wY d S Y nw xY w|r5t          j
        dt          |¦  «        ¬¦  «                             ¦   «         }|S )NéýÿÿÿFÚrb)rÈ   Úfileobj)rd  r   rk  ro  rp   r|  ra  Ú_mod_transportÚ
NoSuchFileÚgzipÚGzipFiler   Úread)r(   rW   rr  Útextr:   s        r)   Ú
_load_textzTextVersionedFiles._load_text…  s  € Ø�ŠÑ Ô ð 	/ÝÔ(¨Ñ.Ô.Ð.Ø�yŠy˜‰~Œ~ˆð	Ø”?×,Ò,¨TÑ2Ô2ˆDØÔ)ˆJˆJøÝÔ(ð 
	ð 
	ð 
	ØÔð 	à˜C˜R˜C”y�ð Øœ?×4Ò4°TÑ:Ô:�DØ!&�J�JøÝ%Ô0ð  ð  ð  Ø˜4˜4˜4ð øøøð �t�tð	 �Jð
	øøøð ð 	JÝ”= dµG¸D±M´MÐBÑBÔB×GÒGÑIÔIˆDØˆs5   ¿!A! Á! B<ÂBÂB<ÂB3Â.B<Â2B3Â3B<Â;B<c                 óF   — | j                              |¦  «        | j        z   S r#   )rb  Úmaprc  )r(   rW   s     r)   ro  zTextVersionedFiles._map›  s   € ØŒ|×Ò Ñ$Ô$ t¤yÑ0Ð0r,   N)	rª   r«   r¬   r­   rI   r–   r„  r�  ro  rT   r,   r)   r^  r^  N  se   € € € € € Ø;Ð;ð	$ð 	$ð 	$ð$ð $ð $ð ð ð ð2ð ð ð,1ð 1ð 1ð 1ð 1r,   r^  c                   ó6   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	dS )	r
  z'Legacy thunk for format 4 repositories.c                 óR   — t                                | |||||¦  «         || _        dS )z8Create a RevisionTextStore at transport with serializer.N)r^  rI   r*   )r(   r   Ú
serializerr:   r+  r  rg  s          r)   rI   zRevisionTextStore.__init__¢  s7   € õ 	×#Ò# D¨)°ZÀØ$-¨yñ	:ô 	:ð 	:à%ˆÔÐÐr,   c                 ó¨   — |                       |¦  «        }|€dS | j                             |¦  «        j        }|t	          d„ |D ¦   «         ¦  «        fS )N)NNc              3   ó   K  — | ]}|fV — Œd S r#   rT   )rV   r›   s     r)   ú	<genexpr>z7RevisionTextStore._load_text_parents.<locals>.<genexpr>®  s$   è è € Ð;Ð;¨˜F˜9Ð;Ð;Ð;Ð;Ð;Ð;r,   )r�  r*   Úread_revision_from_stringÚ
parent_idsÚtuple)r(   rW   rŽ  r†   s       r)   Ú_load_text_parentsz$RevisionTextStore._load_text_parents©  sX   € Ø�Š˜sÑ#Ô#ˆØˆ<Ø�:ØÔ"×<Ò<¸TÑBÔBÔMˆØ•UÐ;Ð;°7Ð;Ñ;Ô;Ñ;Ô;Ð;Ð;r,   c                 óZ   — i }|D ]%}|                       |¦  «        d         }|€Œ |||<   Œ&|S )Nr   )r›  )r(   r_   r�   rW   r†   s        r)   r”   z RevisionTextStore.get_parent_map°  sF   € ØˆØð 	"ð 	"ˆCØ×-Ò-¨cÑ2Ô2°1Ô5ˆGØˆØØ!ˆF�3‰KˆKØˆr,   c                 óŒ   — |                       ¦   «         }|                      |¦  «        }t                               |¦  «        }|S )z4Get a KnownGraph instance with the ancestry of keys.)r_   r”   Ú
_mod_graphÚ
KnownGraph)r(   r_   Ú
parent_mapÚkgs       r)   Úget_known_graph_ancestryz*RevisionTextStore.get_known_graph_ancestry¹  s:   € à�yŠy‰{Œ{ˆØ×(Ò(¨Ñ.Ô.ˆ
Ý×"Ò" :Ñ.Ô.ˆØˆ	r,   c              #   ó”   K  — |D ]B}|                       |¦  «        \  }}|€t          |¦  «        V — Œ.t          ||d |¦  «        V — ŒCd S r#   )r›  r   r   )r(   r_   Ú
sort_orderÚinclude_delta_closurerW   rŽ  r†   s          r)   Úget_record_streamz#RevisionTextStore.get_record_streamÀ  ss   è è € Øð 	Gð 	GˆCØ ×3Ò3°CÑ8Ô8‰MˆD�'Øˆ|Ý*¨3Ñ/Ô/Ð/Ð/Ð/Ð/å,¨S°'¸4ÀÑFÔFÐFÐFÐFÐFð	Gð 	Gr,   c                 ó²  ‡ — ‰                       ¦   «         st          j        ‰ ¦  «        ‚t          ¦   «         }‰ j                             ¦   «         D ]j}t          j        |¦  «        }t          j	         
                    |¦  «        \  }}|dk    r|}|                     d¦  «        s|                     |¦  «         Œkt          |¦  «        }ˆ fd„|D ¦   «         S )Nr`  ú.sigc                 óD   •— h | ]}‰j                              |¦  «        ’ŒS rT   ©rb  Úunmap©rV   rr  r(   s     €r)   ú	<setcomp>z)RevisionTextStore.keys.<locals>.<setcomp>Ô  ó)   ø€ Ð;Ð;Ð;¨T�”×"Ò" 4Ñ(Ô(Ð;Ð;Ð;r,   ©rd  r   rk  Úsetrp   Úiter_files_recursiver   ÚunquoteÚosrr  ÚsplitextÚendswithÚaddÚlist©r(   ÚrelpathsÚquoted_relpathr?   rr  ÚextÚpathss   `      r)   r_   zRevisionTextStore.keysÈ  sÑ   ø€ Ø�ŠÑ Ô ð 	/ÝÔ(¨Ñ.Ô.Ð.Ý‘5”5ˆØ"œo×BÒBÑDÔDð 	&ð 	&ˆNÝÔ& ~Ñ6Ô6ˆGÝœ×(Ò(¨Ñ1Ô1‰IˆD�#Ø�eŠ|ˆ|Ø�Ø×#Ò# FÑ+Ô+ð &Ø—’˜WÑ%Ô%Ð%øÝ�X‘”ˆØ;Ð;Ð;Ð;°UÐ;Ñ;Ô;Ð;r,   N)
rª   r«   r¬   r­   rI   r›  r”   r¢  r¦  r_   rT   r,   r)   r
  r
  Ÿ  sw   € € € € € Ø1Ð1ð&ð &ð &ð<ð <ð <ðð ð ðð ð ðGð Gð Gð<ð <ð <ð <ð <r,   r
  c                   ó*   — e Zd ZdZd„ Zd„ Zd„ Zd„ ZdS )r  z)Legacy thunk for format 4-7 repositories.c                 ób   — t                                | |||||¦  «         d| j        z   | _        d S )Nr¨  )r^  rI   rc  rf  s         r)   rI   zSignatureTextStore.__init__Ú  s9   € Ý×#Ò# D¨)°ZÀØ$-¨yñ	:ô 	:ð 	:à˜TœYÑ&ˆŒ	ˆ	ˆ	r,   c                 óN   — i }|D ]}|                       |¦  «        }|€Œd ||<   Œ |S r#   )r�  )r(   r_   r�   rW   rŽ  s        r)   r”   z!SignatureTextStore.get_parent_mapß  s?   € ØˆØð 	ð 	ˆCØ—?’? 3Ñ'Ô'ˆDØˆ|ØØˆF�3‰KˆKØˆr,   c              #   óŽ   K  — |D ]?}|                       |¦  «        }|€t          |¦  «        V — Œ+t          |d d |¦  «        V — Œ@d S r#   )r�  r   r   )r(   r_   r¤  r¥  rW   rŽ  s         r)   r¦  z$SignatureTextStore.get_record_streamè  sm   è è € Øð 	Dð 	DˆCØ—?’? 3Ñ'Ô'ˆDØˆ|Ý*¨3Ñ/Ô/Ð/Ð/Ð/Ð/å,¨S°$¸¸dÑCÔCÐCÐCÐCÐCð	Dð 	Dr,   c                 óÄ  ‡ — ‰                       ¦   «         st          j        ‰ ¦  «        ‚t          ¦   «         }‰ j                             ¦   «         D ]s}t          j        |¦  «        }t          j	         
                    |¦  «        \  }}|dk    r|}|                     d¦  «        sŒV|                     |d d…         ¦  «         Œtt          |¦  «        }ˆ fd„|D ¦   «         S )Nr`  r¨  éüÿÿÿc                 óD   •— h | ]}‰j                              |¦  «        ’ŒS rT   rª  r¬  s     €r)   r­  z*SignatureTextStore.keys.<locals>.<setcomp>ý  r®  r,   r¯  r¸  s   `      r)   r_   zSignatureTextStore.keysð  sÞ   ø€ Ø�ŠÑ Ô ð 	/ÝÔ(¨Ñ.Ô.Ð.Ý‘5”5ˆØ"œo×BÒBÑDÔDð 	'ð 	'ˆNÝÔ& ~Ñ6Ô6ˆGÝœ×(Ò(¨Ñ1Ô1‰IˆD�#Ø�eŠ|ˆ|Ø�Ø×#Ò# FÑ+Ô+ð ØØ�LŠL˜  " œÑ&Ô&Ð&Ð&Ý�X‘”ˆØ;Ð;Ð;Ð;°UÐ;Ñ;Ô;Ð;r,   N)rª   r«   r¬   r­   rI   r”   r¦  r_   rT   r,   r)   r  r  ×  sY   € € € € € Ø3Ð3ð'ð 'ð 'ð
ð ð ðDð Dð Dð<ð <ð <ð <ð <r,   r  c                   óR   — e Zd ZdZed„ ¦   «         Zed„ ¦   «         Zdd„Z	 	 d	d„Z	dS )
ÚInterWeaveRepoz;Optimised code paths between Weave based repositories.
    c                 ó   — t          ¦   «         S r#   )rF  r'   s    r)   Ú_get_repo_format_to_testz'InterWeaveRepo._get_repo_format_to_test  s   € å Ñ"Ô"Ð"r,   c                 óÂ   — 	 t          | j        t          t          t          f¦  «        o&t          |j        t          t          t          f¦  «        S # t
          $ r Y dS w xY w)z×Be compatible with known Weave formats.

        We don't test for the stores being of specific types because that
        could lead to confusing results, and there is no need to be
        overly general.
        F)r0   rK   r  r7  rF  ÚAttributeError)ÚsourceÚtargets     r)   Úis_compatiblezInterWeaveRepo.is_compatible  s}   € ð	Ý˜vœ~Õ0AÝ0AÝ0Að0Cñ Dô Dð Hõ # 6¤>Õ4EÝ4EÝ4Eð4Gñ Hô HðIøõ ð 	ð 	ð 	Ø�5�5ð	øøøs   ‚AA Á
AÁANc           	      óê  — |                       ¦   «         5  	 | j                             | j                             ¦   «         ¦  «         n# t
          j        t          f$ r Y nw xY w| j        j         	                    ¦   «         �r¶t          j                             ¦   «         5 }| j        j                             | j        j                             | j        j                             ¦   «         dd¦  «        ¦  «         |                     ddd¦  «         | j        j                             | j        j                             | j        j                             ¦   «         dd¦  «        ¦  «         | j        j                             | j        j                             | j        j                             ¦   «         dd¦  «        ¦  «         | j        j                             | j        j                             | j        j                             ¦   «         dd¦  «        ¦  «         ddd¦  «         n# 1 swxY w Y   n!| j                             | j        |¬	¦  «         ddd¦  «         dS # 1 swxY w Y   dS )
z#See InterRepository.copy_content().rÃ   FzCopying inventoryr   r   Ú	unorderedTN)rŒ   )rÔ   rË  r¤   rÊ  r¦   r   r¡   rà   rp   ÚlistableÚuiÚ
ui_factoryÚnested_progress_barræ   r„  r¦  r_   Úupdater^   rä   rh   Úfetch)r(   rŒ   Úpbs      r)   Úcopy_contentzInterWeaveRepo.copy_content  sç  € à�_Š_ÑÔð 	Hð 	HðØ”×2Ò2Ø”K×2Ò2Ñ4Ô4ñ6ô 6ð 6ð 6øåÔ4Õ6IÐJð ð ð Ø�ðøøøð Œ{Ô%×.Ò.Ñ0Ô0ñ HÝ”]×6Ò6Ñ8Ô8ð 2¸BØ”KÔ%×:Ò:ØœÔ)×;Ò;Ø œKÔ-×2Ò2Ñ4Ô4°mÀUñLô LñMô Mð Mð —I’IÐ1°1°aÑ8Ô8Ð8Ø”KÔ+×@Ò@ØœÔ/×AÒAØ œKÔ3×8Ò8Ñ:Ô:¸MÈ5ñRô RñSô Sð Sð ”KÔ*×?Ò?ØœÔ.×@Ò@Ø œKÔ2×7Ò7Ñ9Ô9Ø'¨ñ/ô /ñ0ô 0ð 0ð ”KÔ)×>Ò>ØœÔ-×?Ò?Ø œKÔ1×6Ò6Ñ8Ô8Ø)¨4ñ1ô 1ñ2ô 2ð 2ð2ð 2ð 2ñ 2ô 2ð 2ð 2ð 2ð 2ð 2ð 2øøøð 2ð 2ð 2ð 2øð" ”×!Ò! $¤+¸;Ð!ÑGÔGÐGð5	Hð 	Hð 	Hñ 	Hô 	Hð 	Hð 	Hð 	Hð 	Hð 	Hð 	Hð 	Høøøð 	Hð 	Hð 	Hð 	Hð 	Hð 	HsZ   •I(—1A	ÁI(Á	A"ÁI(Á!A"Á"A I(Â"F H.È"I(È.H2	È2I(È5H2	È6%I(É(I,É/I,Tc                 ó°  — |                       ¦   «         5  |                      ||¦  «        }t          | j                             ¦   «         ¦  «        }|                     |¦  «        }t          | j                             |¦  «        ¦  «        }|                     |¦  «        }	|�|	}
n't          | j                             |	¦  «        ¦  «        }
|�T| j         	                    ¦   «          
                    |
¦  «        }t          t                               ||¦  «        ¦  «        }
| j                             |
¦  «        cddd¦  «         S # 1 swxY w Y   dS )z2See InterRepository.search_missing_revision_ids().N)r]   Ú_present_source_revisions_forr°  rË  r`   ÚintersectionÚ _eliminate_revisions_not_presentÚ
differencerÊ  r“   Úiter_topo_orderÚ	itertoolsÚisliceÚrevision_ids_to_search_result)r(   Úfind_ghostsÚrevision_idsÚif_present_idsÚlimitÚsource_ids_setÚ
target_idsÚpossibly_present_revisionsÚactually_present_revisionsÚrequired_revisionsÚ
result_setÚtopo_ordereds               r)   Úsearch_missing_revision_idsz*InterWeaveRepo.search_missing_revision_ids8  s³  € ð �^Š^ÑÔð *	Ið *	Ið "×?Ò?Ø˜nñ.ô .ˆNõ ˜Tœ[×:Ò:Ñ<Ô<Ñ=Ô=ˆJØ)3×)@Ò)@Øñ* ô * Ð&å),Ø”×<Ò<Ø.ñ0ô 0ñ*1ô *1Ð&ð "0×!:Ò!:Ø*ñ",ô ",ÐàÐ'ð
 0�
�
õ
 !Ø”K×@Ò@Ø*ñ,ô ,ñ-ô -�
ð Ð Ø#œ{×4Ò4Ñ6Ô6×FÒFÀzÑRÔR�Ý ¥×!1Ò!1°,ÀÑ!FÔ!FÑGÔG�
Ø”;×<Ò<¸ZÑHÔHðU*	Ið *	Ið *	Ið *	Iñ *	Iô *	Ið *	Ið *	Ið *	Ið *	Ið *	Ið *	Iøøøð *	Ið *	Ið *	Ið *	Ið *	Ið *	Is   •D)EÅEÅEr#   )TNNN)
rª   r«   r¬   r­   r\  rÇ  ÚstaticmethodrÌ  rÖ  rë  rT   r,   r)   rÅ  rÅ     s�   € € € € € ðð ð ð#ð #ñ „[ð#ð ðð ñ „\ðð"Hð Hð Hð Hð< JNØ?Cð-Ið -Ið -Ið -Ið -Ið -Ir,   rÅ  c                  ó`   — ddl m}  t          t          ¦   «         |                      ¦   «         fgS )Nr   ©Úknitrepo)Úbzrrï  r   r  ÚRepositoryFormatKnit3rî  s    r)   Ú%get_extra_interrepo_test_combinationsrò  k  s>   € ØÐÐÐÐÐÝÕ/Ñ1Ô1Ø×+Ò+Ñ-Ô-ð/ð 0ð 0r,   )6r­   r‹  Úior   r³  r   Úglobalsr/   r   r   r   r	   r
   r   r   r‰  r   rð  r   r   r   r   rÝ   r   Úbzr.repositoryr   Ú
store.textr   Úbzr.versionedfiler   r   r   Úbzr.vf_repositoryr   r   r   r   r   r   r   r  r!   r²   rÂ   rE   r  r7  rF  r^  r
  r  rÅ  Úregister_optimiserrò  rT   r,   r)   ú<module>rú     sO  ðð"ð ð €€€Ø Ð Ð Ð Ð Ð Ø 	€	€	€	à &Ð &Ð &Ð &Ð &Ð &Ø €ˆGˆG‰IŒIð 
ñ 
ô 
ð 
ð	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ðð ð ð ð ð ð ð ð ð ð ð ðð ð ð ð ð ðð ð ð ð ð ð "Ð !Ð !Ð !Ð !Ð !ðð ð ð ð ð ð ð ð ð ð
ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð %Ð $Ð $Ð $Ð $Ð $ðrð rð rð rð rÐ0ñ rô rð rðjCJð CJð CJð CJð CJÐ;ñ CJô CJð CJðLEð Eð Eð Eð EÐ"?ñ Eô Eð EðP1ð 1ð 1ð 1ð 1Ð3ñ 1ô 1ð 1ðh,\ð ,\ð ,\ð ,\ð ,\Ð3ñ ,\ô ,\ð ,\ð^,\ð ,\ð ,\ð ,\ð ,\Ð3ñ ,\ô ,\ð ,\ð^gð gð gð gð gÐ<ñ gô gð gðTN1ð N1ð N1ð N1ð N1˜ñ N1ô N1ð N1ðb5<ð 5<ð 5<ð 5<ð 5<Ð*ñ 5<ô 5<ð 5<ðp&<ð &<ð &<ð &<ð &<Ð+ñ &<ô &<ð &<ðReIð eIð eIð eIð eIÐ,ñ eIô eIð eIðP #€Ô " >Ñ 2Ô 2Ð 2ð0ð 0ð 0ð 0ð 0r,   