making checkouts, branches and repositories on disk - and the whole naming debate

Robert Collins robertc at robertcollins.net
Tue Jan 24 21:23:28 GMT 2006


On Tue, 2006-01-24 at 14:57 -0600, John Arbash Meinel wrote:
> Robert Collins wrote:

> Right now we handle this by using WorkingTree.open_containing versus
> Branch.open_containing. We use the former if we know that we need a
> working tree, and the latter if we just need branch information.
> However, we end up with code duplication (the open containing loop).

And if we need 'the first thing found' - we currently search for a
branch and then open the tree at the branch if desired. This is ok today
while branches always co-exist but it wont be very very soon.

> I wouldn't mind seeing something that just understood
> '.bzr/branch-format' (and the future '.bzr/meta-format'). And this could
> then be called by all other functions.

MetaTree.open_containing ?

that will work too, but I suspect we will have a bunch of duplicate code
building on this.

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/20060125/7bfe05be/attachment.pgp 


More information about the bazaar mailing list