Cannot perform "bzr mv" on a working tree while the repository is locked.
Bug #54107 reported by
Andrew Bennetts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Robert Collins |
Bug Description
I have a repository with a number of branches inside it:
repo/
repo/branch1
repo/branch2
...
The problem is that if do a "bzr branch http://
$ bzr mv database/
bzr: ERROR: Could not acquire lock LockDir(
It seems that even though "bzr mv" should only need to modify the working tree, it's unnecessarily trying to lock the repository as well.
To post a comment you must log in.
The basic flow is that WorkingTree always locks Branch which always locks Repository.
As Andrew points out, there are instances where we want a write-lock on WorkingTree, but really we only need a read-lock on Branch and Repo.
(building the working tree, moving files, etc would all be instances of this).
We've discussed and want to add a locking mechanism which has more customization about what gets locked.