bazaar locks...

Michael Andronov michael_andronov at sd-kyber.com
Thu Sep 9 02:44:20 BST 2010


Martin -

> ... I presume you want this to run from a noninteractive script?

That is correct. I have 2 nodes,  across the world.
The user on one side makes the 'local' push to node1, and then the
node1 propagate the change asynchronously to node2.
Another user is pulling from node2...

Sometimes, the communication is broken... with the lock still present.

The current script, which is running on the node,  executes 'bzr push
....'  as bash shell script.

 I'm thinking to replace that script with Python script, to use
bzrlib, and to replace the 'bzr push...' with corresponding library
call.
 I hope it would be easier in such way to analyse the return code, and
to recover from any errors...

 But may be there is a simpler,  -- most common way?  -- to achieve
the same goal.

> I'm working on making this automatically prompt the user to break the
> lock.  For command-line noninteractive use it would be nice to also
> have a config variable that makes it fail immediately rather than
> waiting.
 Thanks for the information. Let me know if it is available to run as
alpha/beta test.

Have a great day,
Michael.



More information about the bazaar mailing list