2.1.1 "bzr cat" Could not acquire lock -- Do not check lock condition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
SUMMARY
Please do not check lock condition for "cat" command as it doe snot modify the state of repository. Querying previous information from files can be needed e.g. for log messages.
Please also check other commands that could be run without checking the lock condition ("log" command comes to mind).
TEST CASE
1. FILE.txt is modified. Start "bzr ci", hold it in editor
2. In another terminal, run command:
bzr cat -r REV "FILE.txt > FILE-REV.txt
=> bzr: ERROR: Could not acquire lock .... [Errno 11] Resource temporarily unavailable
SUGGESTION
Please allow running "bzr cat" in all cases as it does not modify the state of the repository.
NOTES
In this case, some information was needed to be consulted from a previous revision for the in-progress log message open in "bzr ci" EDITOR. Due to lock, the user was forced to interrupt the currently open "bzr ci" session, run command "bzr cat ...", and re-running the "bzr ci" to complete the log message.