Branch for format 7

Robert Collins robertc at robertcollins.net
Sun Jan 15 21:05:53 GMT 2006


On Sun, 2006-01-08 at 23:46 -0600, John Arbash Meinel wrote:
> After hearing from Robert that we are going to try and support more
> branch versions, I went ahead and created a format-7 branch, available at:
> http://bzr.arbash-meinel.com/branches/bzr/format-7/
> 
> Basically, this includes my bound branch changes (which only need a new
> branch format so that old clients don't commit to bound branches). The
> changes to use '.bzr/basis-inventory' instead of using
> '.bzr/basis-inventory-<revision-id>', and then change to remove
> '.bzr/ancestry.weave'.
> 
> This at least fit the short list of things Robert thought were worth
> pulling together into a micro format bump.
> 
> It might be nice to have it change to '.bzr/checkout/basis-inventory',
> and some of the other changes like that. But I think those are better
> handled after the 'storage' branch lands. And I haven't worked on it
> enough to know if Robert and Aaron think it is ready.
> What I saw looked reasonable, so if they want, I suppose I could merge
> that, and extend it so that we have the real separation of directories.
> (Though they might want to continue using merged directories until they
> get comfortable with the internal split).

My branch-formats work is coming along now. The way I ended up doing it
is to have a 'BzrBranchFormat' class which represents a single format. A
format has a format_string, an initialize routine and an open routine.
The BzrBranchFormat class has static methods to find a format for a URL,
- which gives you the right open routine - and the right initialization
routine if you want to mirror the branch in the same format.

When we start the split into checkout, branch and repository, I figure
we'll leave .bzr/branch-format behind with a value of (say) 9, and
introduce new format values for each of the other three elements. This
work will then chain into the format logic for other elements.

I'd like to make the format-7 work depend on the branch-formats branch,
so that there is no loss of ability to create format 6 branches.

Cheers,
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: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060116/3359b91b/attachment.pgp 


More information about the bazaar mailing list