Show open locks
Alexander Belchenko
bialix at ukr.net
Fri Jan 29 13:08:02 GMT 2010
Eli Zaretskii пишет:
> 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.
This is the bug: https://bugs.launchpad.net/bzr/+bug/174055
> 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?
I have only one: poke someone to fix the bug above.
More information about the bazaar
mailing list