-=[ 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/test_repository.pyc

σ
ξ:οNc@@sTdZddlmZddlmZddlmZddlZddlm	Z	ddl
mZmZddl
mZmZdd	lmZdd
lmZmZddlmZddlmZdd
lmZmZmZmZmZdefd„ƒYZ defd„ƒYZ!defd„ƒYZ"dZ#dZ$defd„ƒYZ%dS(sSTests for weave repositories.

For interface tests see tests/per_repository/*.py.

i(tabsolute_import(tStringIO(tS_ISDIRN(tBzrDirMetaFormat1(tIllegalPatht
NoSuchFile(tInterRepositoryt
Repository(tformat_registry(tTestCasetTestCaseWithTransport(txml4(t
BzrDirFormat6(tInterWeaveRepotRepositoryFormat4tRepositoryFormat5tRepositoryFormat6tRepositoryFormat7tTestFormat6cB@s5eZd„Zd„Zd„Zd„Zd„ZRS(cC@sDtƒj|jƒƒ}tƒj|ƒ}|jd|jjƒdS(s'Weaves need topological data insertion.ttopologicalN(Rt
initializetget_urlRtassertEqualt_formatt_fetch_order(tselftcontroltrepo((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyttest_attribute__fetch_order?scC@sDtƒj|jƒƒ}tƒj|ƒ}|jt|jjƒdS(sWeaves do not reuse deltas.N(RRRRRtFalseRt_fetch_uses_deltas(RRR((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyt!test_attribute__fetch_uses_deltasEscC@sDtƒj|jƒƒ}tƒj|ƒ}|jt|jjƒdS(s0Weave repositories need a reconcile after fetch.N(RRRRRtTrueRt_fetch_reconcile(RRR((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyttest_attribute__fetch_reconcileKscC@sGtƒj|jƒƒ}tƒj|ƒ}|jt|jjdƒdS(Nsancestry.weave(RRRRtassertRaisesRt	transporttget(RRR((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyttest_no_ancestry_weaveQs
		cC@sAtƒj|jƒƒ}tƒj|ƒ}|j|jjƒdS(N(RRRRtassertFalseRtsupports_external_lookups(RRR((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyttest_supports_external_lookupsZs(t__name__t
__module__RRR"R&R)(((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyR=s
					tTestFormat7cB@sYeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	cC@sDtƒj|jƒƒ}tƒj|ƒ}|jd|jjƒdS(s'Weaves need topological data insertion.RN(RRRRRRR(RRR((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyRdscC@sDtƒj|jƒƒ}tƒj|ƒ}|jt|jjƒdS(sWeaves do not reuse deltas.N(RRRRRRRR(RRR((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyRjscC@sDtƒj|jƒƒ}tƒj|ƒ}|jt|jjƒdS(s0Weave repositories need a reconcile after fetch.N(RRRRRR RR!(RRR((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyR"pscC@s|tƒj|jƒƒ}tƒj|ƒ}|jƒ|jƒ|jdƒ}|jd|j	dƒj
ƒƒ|jt|j
dƒjƒƒ|jt|j
dƒjƒƒ|jd|j	dƒj
ƒƒ|jƒ|jƒ}|jdgdgd	gƒ|jdd
ƒy|jddd
ƒWn4tk
rXtjdkrG‚n|jdƒdSX|jd|j	dƒj
ƒƒdS(NsBazaar-NG Repository format 7tformatsrevision-storetweavess# bzr weave file v5
w
W
sinventory.weavetfoosFoo:Bartfilescontent
s
first posttrev_idtfirsttwin32s?Foo:Bar cannot be used as a file-id on windows in repo format 7s^# bzr weave file v5
i
1 7fe70820e08a1aac0ef224d9c66ab66831cc4ab1
n first

w
{ 0
. content
}
W
sweaves/74/Foo%3ABar.weave(RRRRt
lock_writetunlocktget_repository_transporttNonetassertEqualDiffR%treadt
assertTrueRtstattst_modet
create_branchtcreate_workingtreetaddtput_file_bytes_non_atomictcommitRtsystplatformtknownFailure(RRRttttree((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyttest_disk_layoutvs2

		



cC@sτtƒj|jƒƒ}tƒj|dtƒ}|jdƒ}|jd|jdƒj	ƒƒ|jd|jdƒj	ƒƒ|j
t|jdƒj
ƒƒ|j
t|jdƒj
ƒƒ|jd|jd	ƒj	ƒƒ|j|jd
ƒƒdS(NtsharedsBazaar-NG Repository format 7R-tsshared-storagesrevision-storeR.s# bzr weave file v5
w
W
sinventory.weavesbranch-lock(RRRRR R6R7R8R%R9R:RR;R<R'thas(RRRRE((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyttest_shared_disk_layout¦s		cC@s‹tƒj|jƒƒ}tƒj|dtƒ}|jdƒ}|j|jdƒƒ|j	ƒz|j
|jdƒƒWd|jƒXdS(s<Make sure it appears to be controlled by a LockDir existenceRHslock/held/infoN(RRRRR R6R7R'RJR4R:R5(RRRRE((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyttest_creates_lockdirΌs
cC@s―|jƒ}tƒj|ƒ}tƒj|dtƒ}|jdƒ}|jƒ|jƒ~t	j
|ƒ}|jƒ|j|jdƒƒ|jƒ|j
|jdƒƒdS(s'repo format 7 actually locks on lockdirRHslock/held/infoN(RRRRR R6R7R4R5RtopenR:RJR'(Rtbase_urlRRRE((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyttest_uses_lockdirΛs



cC@s-tƒj|jƒƒ}tƒj|dtƒ}|jtƒ|jdƒ}|j	d|j
dƒjƒƒ|j	d|j
dƒjƒƒ|j	d|j
dƒjƒƒ|jtƒ|j|j
dƒƒ|jt|jdƒjƒƒ|jt|jdƒjƒƒ|j	d	|j
d
ƒjƒƒdS(NRHsBazaar-NG Repository format 7R-RIsshared-storagesno-working-treessrevision-storeR.s# bzr weave file v5
w
W
sinventory.weave(RRRRR tset_make_working_treesRR6R7R8R%R9R'RJR:RR;R<(RRRRE((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyttest_shared_no_tree_disk_layoutΫs
	
	cC@sAtƒj|jƒƒ}tƒj|ƒ}|j|jjƒdS(N(RRRRR'RR((RRR((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyR)υs(R*R+RRR"RGRKRLRORQR)(((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyR,bs				0				tTestInterWeaveRepocB@seZd„ZRS(c	C@s$ddlm}tƒtƒtƒg}tƒ|jƒg}|jdƒ}|jdƒ}tj	}xP|D]H}||_
|d|_
|j|||ƒƒ|j|||ƒƒqkWxG|D]?}||_
x-|D]%}||_
|j|||ƒƒqΤWqΎW|j
ttj||ƒjƒdS(Ni(tknitrepotatb(tbzrlib.repofmtRSRRRRtRepositoryFormatKnit1tmake_repositoryR
t
is_compatibleRR'R:RRR%t	__class__(	RRStformatstincompatible_formatstrepo_atrepo_bRYtsourcettarget((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyt!test_is_compatible_and_registeredύs*	
	

	
		(R*R+Ra(((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyRRϋssz<inventory file_id="TREE_ROOT">
<entry file_id="bar-20050901064931-73b4b1138abc9cd2" kind="file" name="bar" parent_id="TREE_ROOT" />
<entry file_id="foo-20050801201819-4139aa4a272f4250" kind="directory" name="foo" parent_id="TREE_ROOT" />
<entry file_id="bar-20050824000535-6bc48cfad47ed134" kind="file" name="bar" parent_id="foo-20050801201819-4139aa4a272f4250" />
</inventory>s<revision committer="Martin Pool &lt;mbp@sourcefrog.net&gt;"
    inventory_id="mbp@sourcefrog.net-20050905080035-e0439293f8b6b9f9"
    inventory_sha1="e79c31c1deb64c163cf660fdedd476dd579ffd41"
    revision_id="mbp@sourcefrog.net-20050905080035-e0439293f8b6b9f9"
    timestamp="1125907235.212"
    timezone="36000">
<message>- start splitting code for xml (de)serialization away from objects
  preparatory to supporting multiple formats by a single library
</message>
<parents>
<revision_ref revision_id="mbp@sourcefrog.net-20050905063503-43948f59fa127d92" revision_sha1="7bdf4cc8c5bdac739f8cf9b10b78cf4b68f915ff" />
</parents>
</revision>
tTestSerializercB@s)eZdZd„Zd„Zd„ZRS(sTest serializercC@s |jtjtjdƒƒdS(Nt4(tassertIsRt
serializer_v4tserializer_format_registryR%(R((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyt
test_registry3scC@sNttƒ}tjj|ƒ}|jt|ƒdƒ|j|jdƒƒdS(s)Test unpacked a canned inventory v4 file.is#bar-20050901064931-73b4b1138abc9cd2N(	Rt_working_inventory_v4RRetread_inventoryRtlentassert_thas_id(Rtinptinv((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyttest_canned_inventory7scC@suttƒ}tjj|ƒ}|j}||jdƒ||jdƒ|t|j	ƒdƒ||j	ddƒdS(s#Test unpacking a canned revision v4s Martin Pool <mbp@sourcefrog.net>s2mbp@sourcefrog.net-20050905080035-e0439293f8b6b9f9iis2mbp@sourcefrog.net-20050905063503-43948f59fa127d92N(
Rt_revision_v4RRet
read_revisionRt	committertinventory_idRjt
parent_ids(RRmtrevteq((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyttest_unpack_revision>s			
(R*R+t__doc__RgRoRw(((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyRb0s		(&Rxt
__future__Rt	cStringIORR;RRBt
bzrlib.bzrdirRt
bzrlib.errorsRRtbzrlib.repositoryRRtbzrlib.serializerRRftbzrlib.testsR	R
tbzrlib.plugins.weave_fmtRtbzrlib.plugins.weave_fmt.bzrdirRt#bzrlib.plugins.weave_fmt.repositoryR
RRRRRR,RRRhRpRb(((sL/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_repository.pyt<module>s$(	%™"

Copyright © 2017 || Recoded By Mr.Bumblebee