-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyc


nNc@@sRdZddlmZddlZddlZddlmZddlmZee	dddl
mZmZm
Z
mZmZmZmZmZmZmZmZmZddlmZmZdd	lmZmZdd
lmZddlm Z m!Z!m"Z"ddl#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)dd
l*m+Z,de&fdYZ-de(fdYZ.de'fdYZ/de/fdYZ0de/fdYZ1de/fdYZ2de)fdYZ3de"fdYZ4de4fdYZ5d e4fd!YZ6d"e$fd#YZ7ej8e7d$Z9dS(%sDeprecated weave-based repository formats.

Weave based formats scaled linearly with history size and could not represent
ghosts.
i(tabsolute_importN(tStringIO(tlazy_importsY
import itertools

from bzrlib import (
    xml5,
    graph as _mod_graph,
    ui,
    )
(tdebugterrorstlockable_filestlockdirtosutilstsymbol_versioningttracet
tuned_gzipturlutilst
versionedfiletweavet	weavefile(tneeds_read_locktneeds_write_lock(tInterRepositorytRepositoryFormatMetaDir(t	TextStore(tAbsentContentFactorytFulltextContentFactorytVersionedFiles(tInterSameDataRepositorytVersionedFileCommitBuildertVersionedFileRepositorytVersionedFileRepositoryFormattMetaDirVersionedFileRepositoryt$MetaDirVersionedFileRepositoryFormat(tbzrdirtAllInOneRepositorycB@seZdZedZdZdZedZedZ	dZ
dZdZddddded	Zed
ZedZdZed
ZdZRS(sBLegacy support - the repository behaviour for all-in-one branches.cC@stjS(N(txml5t
serializer_v5(tself((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt_serializerOscC@sGt|ts!dj|}n|dkr1dStjtj|S(Nt/tu(t
isinstancet
basestringtjoinRtescapeRtsafe_unicode(R!tfile_or_path((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt_escapeSs
c@sjjttfd}t|trf|d_|d_ntt	j
|jdS(Nc
@sCj|}tjj|d|d|dd}|S(Ntprefixedt
compressedtdir_modet	file_mode(R+Rt	transporttclone(tnameR-R,trelpathtstore(ta_bzrdirR.R/R!(sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt	get_store_s	sinventory-stores
text-store(t
_get_dir_modet_get_file_modetTruetFalseR%tRepositoryFormat4tinventory_storet_text_storetsuperRt__init__t_control_files(R!t_formatR5R6((R5R.R/R!sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR?ZscC@sFdtjkr"tjddng|jjD]}|d^q2S(s5Return all the possible revisions that we could find.tevilis._all_possible_ids scales with size of history.i(Rtdebug_flagsR	tmutter_callsitetinventoriestkeys(R!tkey((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt_all_possible_idsts
cC@s$g|jjD]}|d^qS(sReturns 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.
        i(t	revisionsRF(R!RG((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt_all_revision_ids|scC@s=|jjj}|jdd|jd|jjdS(s8Put a replacement inventory.new into use as inventories.sinventory.new.weavesinventory.weaveN(RR@t
_transporttcopytdeleteRERF(R!tt((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt_activate_new_inventorys
cC@s#|jjj}|jdddS(Nsinventory.weavesinventory.backup.weave(RR@RKRL(R!RN((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt_backup_inventoryscC@s%|jjj}|jj||dS(Ns
inventory.new(RR@RKRAt_get_inventories(R!RN((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt_temp_inventoriessc
C@sH|j||jt||||||||d|	}
|j|
S(Ntlossy(t_check_ascii_revisionidtget_commit_builderRtstart_write_group(R!tbranchtparentstconfigt	timestampttimezonet	committertrevpropstrevision_idRStresult((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRUs

cC@s|j|}|S(N(t_get_revisions(R!trevision_idstrevs((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt
get_revisionsscC@sn|jj|}g}x-|D]%}||kr"|j|fq"q"W|jj|f||d|dS(s;Store lines in inv_vf and return the sha1 of the inventory.t
check_contenti(t	get_graphtget_parent_maptappendREt	add_lines(R!R^RXtlinesRdtpresent_parentst
final_parentstparent((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt_inventory_add_liness
cC@stS(s'AllInOne repositories cannot be shared.(R:(R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt	is_sharedscC@stj|jdS(s&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.
        N(RtRepositoryUpgradeRequiredtuser_url(R!t	new_value((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pytset_make_working_treess
cC@stS(s<Returns the policy for making working trees on new branches.(R9(R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pytmake_working_treessN(t__name__t
__module__t__doc__tpropertyR"R+R?RRHRJRORPRRtNoneR:RURcR9RmRnRRrRs(((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRLs"		
	
			
	tWeaveMetaDirRepositorycB@seZdZdZedZedZdZdZdZ	d
d
d
d
d
edZedZ
ed	ZRS(s=A subclass of MetaDirRepository to set weave specific policy.cC@s,tt|j||||j|_dS(N(R>RyR?R"(R!RAR5t
control_files((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR?scC@sFdtjkr"tjddng|jjD]}|d^q2S(s5Return all the possible revisions that we could find.RBis._all_possible_ids scales with size of history.i(RRCR	RDRERF(R!RG((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRHs
cC@s$g|jjD]}|d^qS(sReturns 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.
        i(RIRF(R!RG((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRJscC@s7|j}|jdd|jd|jjdS(s8Put a replacement inventory.new into use as inventories.sinventory.new.weavesinventory.weaveN(RKRLRMRERF(R!RN((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyROs	
cC@s|j}|jdddS(Nsinventory.weavesinventory.backup.weave(RKRL(R!RN((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRPs	cC@s|j}|jj||dS(Ns
inventory.new(RKRARQ(R!RN((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRRs	c
C@sH|j||jt||||||||d|	}
|j|
S(NRS(RTRURRV(R!RWRXRYRZR[R\R]R^RSR_((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRUs

cC@s|j|}|S(s/Return the Revision object for a named revision(tget_revision_reconcile(R!R^tr((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pytget_revisionscC@sn|jj|}g}x-|D]%}||kr"|j|fq"q"W|jj|f||d|dS(s;Store lines in inv_vf and return the sha1 of the inventory.Rdi(ReRfRgRERh(R!R^RXRiRdRjRkRl((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRms
N(RtRuRvR?RRHRJRORPRRRxR:RUR}R9Rm(((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRys	
	
			tPreSplitOutRepositoryFormatcB@steZdZeZeZeZeZeZe	Z
dZe	ZeZ
eZeZeedZedZdZRS(s4Base class for the pre split out repository formats.ttopologicalc	C@s)|rtj||jn|s7|j|dtSt}tjtj	||j
}tjd|j
jtj|j
dtj}|j|j|j
}z?|jddgd|j|jd|d|jWd|jX|j|dt}|j||||S(	sCreate a weave repository.t_foundscreating repository in %s.sbranch-locksrevision-storetweavestmodesinventory.weaveN(RtIncompatibleFormatRAtopenR9RRtwrite_weave_v5R
tWeavetgetvalueR	tmutterR0tbaseRt
LockableFilest
TransportLocktcreate_lockt
lock_writetmkdir_multiR7tput_bytes_non_atomicR8tunlockt_run_post_repo_init_hooks(	R!R5tsharedt	_internaltsiotempty_weaveRzR0t
repository((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt
initializes,	

	
cC@s|stn|jd}td|d|}|j|||_|j|||_|j|||_	|j
|||_d|_|S(sSee RepositoryFormat.open().RAR5N(
tNotImplementedErrortget_repository_transportRxRR`RIt_get_signaturest
signaturesRQREt
_get_textsttextst	chk_bytes(R!R5Rtrepo_transportR_((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR?s		cC@stS(N(R9(R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt
is_deprecatedNs(RtRuRvR:trich_root_datatsupports_tree_referencetsupports_ghoststsupports_external_lookupst
supports_chksR9tsupports_nesting_repositoriest_fetch_ordert_fetch_reconciletfast_deltastsupports_leaving_lockt%revision_graph_can_have_wrong_parentsRRR(((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR~s"R;cB@sheZdZeZejZdZeedZ	dZ
ddZdZdZ
dZRS(	s/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.
    cC@sdS(s.See RepositoryFormat.get_format_description().sRepository format 4((R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pytget_format_descriptionbscC@stj|dS(s$Format 4 branches cannot be created.N(RtUninitializableFormat(R!turlRR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRfscC@stS(sFormat 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.
        (R:(R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pytis_supportedjst	inventorycC@sdS(N(Rx(R!RtrepoR2((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRQsscC@s>ddlm}t|jd|ttj|j|jS(Ni(t
serializer_v4srevision-store(	tbzrlib.plugins.weave_fmt.xml4RtRevisionTextStoreR1R9RtPrefixMappert	is_lockedtis_write_locked(R!RRR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR`wscC@s+t|jdttj|j|jS(Nsrevision-store(tSignatureTextStoreR1R:RRRR(R!RR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR}scC@sdS(N(Rx(R!RR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRs(RtRuRvR:tsupports_funky_characterstweave_bzrdirt
BzrDirFormat4t_matchingbzrdirRRRRQR`RR(((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR;Rs
					tRepositoryFormat5cB@sqeZdZejZejZe	Z
edZdZ
dZddZdZdZdZRS(	sBzr control format 5.

    This repository format has:
     - weaves for file texts and inventory
     - flat stores
     - TextStores for revisions and signatures.
    cC@stjS(N(RR (R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR"scC@sdS(s.See RepositoryFormat.get_format_description().sWeave repository format 5((R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRscC@s
|jjS(s@The network name for this format is the control dirs disk label.(Rtget_format_string(R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pytnetwork_namesRcC@s+tj|}tj|tj||jS(N(RtConstantMappertThunkedVersionedFilesR
t	WeaveFileR(R!RRR2tmapper((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRQs	cC@s1t|jdtjttj|j|jS(Nsrevision-store(	RR1RR R:RRRR(R!RR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR`scC@s+t|jdttj|j|jS(Nsrevision-store(RR1R:RRRR(R!RR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRscC@s7tj}|jd}tj|tj||jS(NR(RRR1RR
RR(R!RRRtbase_transport((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRs	(RtRuRvR
Rt_versionedfile_classRt
BzrDirFormat5RR:RRwR"RRRQR`RR(((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRs					tRepositoryFormat6cB@sqeZdZejZejZe	Z
edZdZ
dZddZdZdZdZRS(	sBzr control format 6.

    This repository format has:
     - weaves for file texts and inventory
     - hash subdirectory based stores.
     - TextStores for revisions and signatures.
    cC@stjS(N(RR (R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR"scC@sdS(s.See RepositoryFormat.get_format_description().sWeave repository format 6((R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRscC@s
|jjS(s@The network name for this format is the control dirs disk label.(RR(R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRsRcC@s+tj|}tj|tj||jS(N(RRRR
RR(R!RRR2R((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRQs	cC@s1t|jdtjttj|j|jS(Nsrevision-store(	RR1RR R:RtHashPrefixMapperRR(R!RR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR`scC@s+t|jdttj|j|jS(Nsrevision-store(RR1R:RRRR(R!RR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRscC@s7tj}|jd}tj|tj||jS(NR(RRR1RR
RR(R!RRRR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRs	(RtRuRvR
RRRt
BzrDirFormat6RR:RRwR"RRRQR`RR(((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRs					tRepositoryFormat7cB@seZdZejZeZeZeZ	eZ
dZeZ
eZedZedZdZddZdZdZd	Zed
Zed
dZdZRS(s/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
    RcC@stjS(N(RR (R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR"scC@sdS(s)See RepositoryFormat.get_format_string().sBazaar-NG Repository format 7((tcls((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRscC@sdS(s.See RepositoryFormat.get_format_description().sWeave repository format 7((R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRsRcC@s+tj|}tj|tj||jS(N(RRRR
RR(R!RRR2R((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRQs	cC@s1t|jdtjttj|j|jS(Nsrevision-store(	RR1RR R9RRRR(R!RR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR`
scC@s+t|jdttj|j|jS(Nsrevision-store(RR1R9RRRR(R!RR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRscC@s7tj}|jd}tj|tj||jS(NR(RRR1RR
RR(R!RRRR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRs	cC@st}tjtj||j}tjd|jj	ddg}dt|fg}d|j
fg}|j||||||jd|dt
S(sCreate a weave repository.

        :param shared: If true the repository will be initialized as a shared
                       repository.
        screating repository in %s.srevision-storeRsinventory.weavetformatR5R(RRRR
RRR	RR0RRt_upload_blank_contentRR9(R!R5RRRtdirstfilest
utf8_files((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRs	cC@s|stj|}n|dk	r-|}n|jd}tj|dtj}td|d|d|}|j	|||_
|j|||_|j
|||_|j|||_d|_||_|S(sSee RepositoryFormat.open().

        :param _override_transport: INTERNAL USE ONLY. Allows opening the
                                    repository at a slightly different url
                                    than normal. I.e. during 'upgrade'.
        tlockRAR5RzN(Rtfind_formatRxRRRRtLockDirRyR`RIRRRQRERRRRK(R!R5Rt_override_transportRRRzR_((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR.s 					cC@stS(N(R9(R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRGsN(RtRuRvR
RRR:RRRRRR9RRRwR"tclassmethodRRRQR`RRRRxRR(((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRs&
					tTextVersionedFilescB@s;eZdZdZdZdZdZdZRS(s1Just-a-bunch-of-files based VersionedFile stores.cC@sO||_||_||_|jr0d|_n	d|_||_||_dS(Ns.gzR$(t_compressedRKt_mappert_extt
_is_lockedt
_can_write(R!R0R-RRt	can_write((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR?Ns						cC@s|jstj|n|js<tj|nd|dkrbtd|fndj|}|jrtj	|}n|j
|}|jj||dt
dS(sAdd a revision to the store.R#isbad idea to put / in %rR$tcreate_parent_dirN(RRtObjectNotLockedRt
ReadOnlyErrort
ValueErrorR'RR
t
bytes_to_gzipt_mapRKRR9(R!RGRXRittexttpath((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRhYs	cC@s1i}x$|D]}|jdkrAtj|jdg|n|jdkr{|j|jdtj|jdq
|jdf}y||}Wn6t	k
rt
j|}||}|||<nXtj|j||j|j}y|j|jd|Wq
tj
k
r(q
Xq
WdS(Ntabsentitfulltext(tstorage_kindRtRevisionNotPresentRGRhRxRtsplit_linestget_bytes_astKeyErrortadapter_registrytgett	get_bytestRevisionAlreadyPresent(R!tstreamtadapterstrecordtadapter_keytadaptertadapter_factoryRi((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pytinsert_record_streamgs(

cC@s|jstj|n|j|}y|jj|}|j}Wnbtjk
r|jr|d }y|jj|}t}Wqtjk
rdSXqdSnX|rt
jdddt|j
}n|S(NiRtrbtfileobj(RRRRRKRRt
NoSuchFileR:RxtgziptGzipFileRtread(R!RGRRR-((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt
_load_texts$
	

'cC@s|jj||jS(N(RtmapR(R!RG((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRs(RtRuRvR?RhRRR(((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRKs				RcB@sDeZdZdZdZdZdZdZdZRS(s'Legacy thunk for format 4 repositories.cC@s)tj||||||||_dS(s8Create a RevisionTextStore at transport with serializer.N(RR?R"(R!R0t
serializerR-RRR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR?s
cC@sN|j|}|dkrdS|jj|j}|td|DfS(Ncs@s|]}|fVqdS(N((t.0Rl((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pys	<genexpr>s(NN(RRxR"tread_revision_from_stringt
parent_idsttuple(R!RGRRX((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt_load_text_parentss
cC@sJi}x=|D]5}|j|d}|dkr8q
n|||<q
W|S(Ni(RRx(R!RFR_RGRX((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRfs
cC@s.|j}|j|}tj|}|S(s4Get a KnownGraph instance with the ancestry of keys.(RFRft
_mod_grapht
KnownGraph(R!RFt
parent_maptkg((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pytget_known_graph_ancestryscc@sXxQ|D]I}|j|\}}|dkr<t|Vqt||d|VqWdS(N(RRxRR(R!RFt
sort_ordertinclude_delta_closureRGRRX((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pytget_record_streams

cC@s|jstj|nt}xr|jjD]a}tj|}tj	j
|\}}|dkry|}n|jds7|j|q7q7Wt
|}tg|D]}|jj|^qS(Ns.gzs.sig(RRRtsetRKtiter_files_recursiveRtunquotetosRtsplitexttendswithtaddtlistRtunmap(R!trelpathstquoted_relpathR3Rtexttpaths((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRFs		(	RtRuRvR?RRfR	RRF(((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRs						RcB@s2eZdZdZdZdZdZRS(s)Legacy thunk for format 4-7 repositories.cC@s0tj||||||d|j|_dS(Ns.sig(RR?R(R!R0R-RRR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyR?s
cC@sFi}x9|D]1}|j|}|dkr4q
nd||<q
W|S(N(RRx(R!RFR_RGR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRfs
cc@sRxK|D]C}|j|}|dkr6t|Vqt|dd|VqWdS(N(RRxRR(R!RFR
RRGR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRs

cC@s|jstj|nt}xy|jjD]h}tj|}tj	j
|\}}|dkry|}n|jdsq7n|j|d q7Wt
|}tg|D]}|jj|^qS(Ns.gzs.sigi(RRRR
RKRRRRRRRRRRR(R!RRR3RRR((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRFs		(RtRuRvR?RfRRF(((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRs
				tInterWeaveRepocB@s_eZdZedZedZeddZ	e
eje
ddddZRS(s;Optimised code paths between Weave based repositories.
    cC@stS(N(R(R!((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt_get_repo_format_to_testscC@sQy8t|jtttfo6t|jtttfSWntk
rLtSXdS(sBe 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.
        N(R%RARRRtAttributeErrorR:(tsourcettarget((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt
is_compatibles
cC@spy|jj|jjWntjtfk
r9nX|jjjrSt	j
j}z|jjj
|jjj|jjjdt|jddd|jjj
|jjj|jjjdt|jjj
|jjj|jjjdt|jjj
|jjj|jjjdtWd|jXn|jj|jd|dS(s#See InterRepository.copy_content().RsCopying inventoryiit	unorderedNR^(RRrRRsRRotNotImplementedRKtlistabletuit
ui_factorytnested_progress_barRRRRFR:tupdateRERR9RItfinishedtfetch(R!R^tpb((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pytcopy_contents0
c
C@s4tj|r[tjdtdd|dk	r@tdn|dk	r[|g}q[n~|j||}t|jj	}|j
|}t|jj|}	|j|	}
|dk	r|
}nt|j
j|
}|dk	r$|jj|}ttj||}n|j
j|S(s2See InterRepository.search_missing_revision_ids().sdsearch_missing_revision_ids(revision_id=...) was deprecated in 2.4.  Use revision_ids=[...] instead.t
stacklevelis3revision_ids is mutually exclusive with revision_idN(Rtdeprecated_passedtwarntDeprecationWarningRxtAssertionErrort_present_source_revisions_forR
RRHtintersectiont _eliminate_revisions_not_presentt
differenceRRetiter_topo_ordert	itertoolstislicetrevision_ids_to_search_result(
R!R^tfind_ghostsRatif_present_idstlimittsource_ids_sett
target_idstpossibly_present_revisionstactually_present_revisionstrequired_revisionst
result_setttopo_ordered((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pytsearch_missing_revision_ids5s2
	N(RtRuRvRRtstaticmethodRRRxR*RRtDEPRECATED_PARAMETERR9RB(((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyRs	cC@s)ddlm}tt|jfgS(Ni(tknitrepo(tbzrlib.repofmtRERRtRepositoryFormatKnit3(RE((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt%get_extra_interrepo_test_combinationsps	(:Rvt
__future__RRRt	cStringIORtbzrlib.lazy_importRtglobalstbzrlibRRRRRRR	R
RRR
Rtbzrlib.decoratorsRRtbzrlib.repositoryRRtbzrlib.store.textRtbzrlib.versionedfileRRRtbzrlib.vf_repositoryRRRRRRtbzrlib.plugins.weave_fmtRRRRyR~R;RRRRRRRtregister_optimiserRH(((sG/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/repository.pyt<module>s6	R.	zFF4/.hO8)r


Copyright © 2017 || Recoded By Mr.Bumblebee