how to create a BzrDir of specified format
Robert Collins
robertc at robertcollins.net
Wed Mar 8 10:26:58 GMT 2006
On Wed, 2006-03-08 at 20:43 +1100, Martin Pool wrote:
> I'm just trying to work out how to make a BzrDir, Branch, etc, of a
> specified format for the purposes of testing. The current api seems
> a bit odd - strongly inclined to create the default format. As a
> result many of the existing tests need to set the default format
> before they do anything.
>
> One perverse effect is that
>
> BzrDirMetaFormat1.create('.')
>
> creates an instance of a different format!
>
> It seems to me that by static methods on e.g. a BzrDirFormat we ought
> to be able to create an instance and the relevant internal components.
BzrDirMetaFormat1().intialize('.') ...
but sure, happy for things to be made easier. It wasn't clear exactly
how it should fit together for maximum ease during development.
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060308/43ccd70c/attachment.pgp
More information about the bazaar
mailing list