Show open locks

Eli Zaretskii eliz at gnu.org
Fri Jan 29 12:52:36 GMT 2010


The docs of "bzr break-lock" says that "bzr info" shows open locks:

  You can get information on what locks are open via the ‘bzr info’ command.

Does this actually work?  I tried to invoke "bzr info", with and
without -v, while "bzr log -n0" was running, but didn't see any
information about the lock. 

If "bzr info" does not show the locks, is there some other way of
knowing that a branch is locked?

The issue of locking gets in the way when you have some bzr command
running, and while it runs, visit in Emacs a versioned file.  Emacs
automatically runs "bzr status FILE" as part of visiting FILE, if it
detects that FILE's directory is controlled by Bazaar.  But because
the running command locked the working directory (or is it the
branch?), "bzr status" fails, and Emacs then displays an ugly error
message.

If Emacs could determine that the wd is locked, it could deal with
this situation in a more intelligent way.  Since exit status of 3
returned by the command in this case is just a sign of some kind of
trouble in bzr, there's no way of knowing that just by looking at the
exit status.

Any suggestions?




More information about the bazaar mailing list