[MERGE] Policy-based repository acquisition

Aaron Bentley aaron at aaronbentley.com
Wed Apr 9 16:59:23 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Bennetts wrote:
> Aaron Bentley wrote:
> In the meantime, it's little a bit of a hack, but if you do this inside
> TestBzrDir:
> 
>         bd = TestCaseWithTransport.make_bzrdir(self, 'source', format='knit')
>         bd.create_repository()
>         source_branch = bd.create_branch()
> 
> instead of:
> 
>         source_branch = self.make_branch('source', format='knit')
> 
> you get a branch with a KnitRepository.

Cool, but don't you also override the scenario's metadir type if you do
that?

First you create it with the "knit" format, which expects to use a
BzrMetaDir.  Then you clone it, and cloning is supposed to preserve the
BzrMetaDir format.  So you won't get to test any of the PreSplitOut
implementations, and I'm not sure about RemoteBzrDir, either.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH/Ofb0F+nu1YWqI0RArhDAJ9a1ctktG4IzPmM0F5dAjIYxIGIDQCfaG0c
S1X1BcmIZtZk+VsLANReiHk=
=3b8k
-----END PGP SIGNATURE-----



More information about the bazaar mailing list