{RFC} creating disk objects returns locked objects

Robert Collins robertc at robertcollins.net
Sat Mar 25 02:34:29 GMT 2006


So in profiling I've noted we need 8 locks - bzrdir, wt, branch, repo
each, times 2.

This is quite a few round trips to mkdir rename etc etc.

I'd like to change the object creation api to return locked objects. In
a chat with ddaa he thinks this is reasonable too - but we should ensure
reviewers look for 'unlocks' in finally: clauses quite aggressively.

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/20060325/19e4a125/attachment.pgp 


More information about the bazaar mailing list