checking out a branch from a repo while pulling into the repo causes lock issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
John A Meinel |
Bug Description
using bzr 0.8.2 the following steps leave stale locks:
bzr init-repo foorepo
bzr branch /some/random/branch foorepo/branch1
Branched 612 revision(s).
bzr branch /some/other/
ctrl+z
bzr checkout --lightweight foorepo/branch1 co1
bzr: ERROR: Could not acquire lock LockDir(
/usr/lib/
warn("file group %r was not explicitly unlocked" % self)
rm -rf co1
fg
Branched 905 revision(s).
bzr checkout --lightweight foorepo/branch1 co1
bzr: ERROR: Could not acquire lock LockDir(
/usr/lib/
warn("file group %r was not explicitly unlocked" % self)
Running break-lock on foorepo/branch1 is needed before it can be used again.
There still is a little bit of a bug, but the code has been cleaned up, so that the lock is now released.
There used to be a bug where if grabbing a lock failed, it would not always clean up all of the other locks. This has been fixed. There is still another bug that a lightweight checkout needs a write lock on its parent. But that is bug 39542