Creating a branch reference without opening

David Allouche ddaa at canonical.com
Sat Sep 22 00:51:50 BST 2007


On Fri, 21 Sep 2007 13:40:20 -0500, John Arbash Meinel wrote:
> Well, I would consider this hackish but:
> 
> os.mkdir('.bzr')
> open('.bzr/branch-format',
> 'wb').write(bzrlib.bzrdir.BzrDirMetaFormat1().get_format_string())
> os.mkdir('branch')
> open('.bzr/branch/format',
> 'wb').write(bzrlib.branch.BranchReferenceFormat.get_format_string())
> open('.bzr/branch/location', 'wb').write('http://bad/url/')

I know how to do this by hand.

What I am requesting here is a supported API in bzrlib to do it in a
non-hackish way.

-- 
                                                            -- ddaa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070922/258a271c/attachment.pgp 


More information about the bazaar mailing list