lock oddity

Robert Collins robertc at robertcollins.net
Wed Nov 21 21:16:35 GMT 2007


On Wed, 2007-11-21 at 13:06 -0800, Wichmann, Mats D wrote:
> >> We could, I suppose, have some kind of notification on update
> >> failure; we already have that for builds.  Then, lock handling could
> >> be completely manual.
> > 
> > One way would be to use bzr info to determine if the tree is locked;
> > if it is then your update hasn't finished and you shouldn't build.
> 
> for the purposes of fiddling around with this, how
> would one create a valid lock without having to try
> to kill a process in progress?

$ python
import bzrlib.workingtree
tree = bzrlib.workingtree.WorkingTree.open('.')
tree.lock_write()

-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/20071122/b9b422e4/attachment.pgp 


More information about the bazaar mailing list