This is still happening with bzr 2.1. Interestingly it happens only with 'bzr info -v lp:loggerhead/1.17'. Without the -v and on a few other repos (I tried bzr/2.0, bzr-grep) it doesn't happen.
The LockNotHeld exception is caused during the unlock which is odd since the lock is actually held show_bzrdir_info
Related branches:
stacked on: /~loggerhead-team/loggerhead/trunk-rich
[~]%
Stack Trace
==========
File "/usr/lib/python2.6/dist-packages/bzrlib/info.py", line 354, in show_bzrdir_info
lockable.unlock()
File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 222, in wrapped
return unbound(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 2446, in unlock
self.repository.unlock()
File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 222, in wrapped
return unbound(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 1128, in unlock
self._real_repository.unlock()
File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 222, in wrapped
return unbound(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/pack_repo.py", line 2422, in unlock
self.control_files.unlock()
File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 222, in wrapped
return unbound(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/lockable_files.py", line 226, in unlock
return lock.cant_unlock_not_held(self)
File "/usr/lib/python2.6/dist-packages/bzrlib/lock.py", line 105, in cant_unlock_not_held
raise errors.LockNotHeld(locked_object)
LockNotHeld: Lock not held: LockableFiles(lock, bzr+ssh://bazaar.launchpad.net/~loggerhead-team/loggerhead/1.17/.bzr/repository/)
This is still happening with bzr 2.1. Interestingly it happens only with 'bzr info -v lp:loggerhead/1.17'. Without the -v and on a few other repos (I tried bzr/2.0, bzr-grep) it doesn't happen.
The LockNotHeld exception is caused during the unlock which is odd since the lock is actually held show_bzrdir_info
Source: bzrlib. info.show_ bzrdir_ info: ======= ======= ======= = lock_read( )
show_component _info(a_ bzrdir, repository, branch, tree, verbose,
outfile)
lockable. unlock( )
=======
.....
lockable.
try:
finally:
Log //bazaar. launchpad. net/~loggerhead -team/loggerhea d/1.17/ //bazaar. launchpad. net/~loggerhead -team/loggerhea d/1.17/
===
[~]% bzr info -v lp:loggerhead/1.17
Repository branch (format: unnamed)
Location:
shared repository: bzr+ssh:
repository branch: bzr+ssh:
Related branches: team/loggerhead /trunk- rich
stacked on: /~loggerhead-
Format: //bazaar. launchpad. net/~loggerhead -team/loggerhea d/1.17/ .bzr/repository /) //bazaar. launchpad. net/~loggerhead -team/loggerhea d/1.17/ //bazaar. launchpad. net/~loggerhead -team/loggerhea d/1.17/
control: bzr remote bzrdir
branch: Remote: Branch format 7
repository: Remote: Packs 6 rich-root (uses btree indexes, requires bzr 1.9)
bzr: ERROR: Lock not held: LockableFiles(lock, bzr+ssh:
[~]% bzr info lp:loggerhead/1.17
Repository branch (format: unnamed)
Location:
shared repository: bzr+ssh:
repository branch: bzr+ssh:
Related branches: team/loggerhead /trunk- rich
stacked on: /~loggerhead-
[~]%
Stack Trace python2. 6/dist- packages/ bzrlib/ info.py" , line 354, in show_bzrdir_info unlock( ) python2. 6/dist- packages/ bzrlib/ decorators. py", line 222, in wrapped python2. 6/dist- packages/ bzrlib/ remote. py", line 2446, in unlock repository. unlock( ) python2. 6/dist- packages/ bzrlib/ decorators. py", line 222, in wrapped python2. 6/dist- packages/ bzrlib/ remote. py", line 1128, in unlock _real_repositor y.unlock( ) python2. 6/dist- packages/ bzrlib/ decorators. py", line 222, in wrapped python2. 6/dist- packages/ bzrlib/ repofmt/ pack_repo. py", line 2422, in unlock control_ files.unlock( ) python2. 6/dist- packages/ bzrlib/ decorators. py", line 222, in wrapped python2. 6/dist- packages/ bzrlib/ lockable_ files.py" , line 226, in unlock unlock_ not_held( self) python2. 6/dist- packages/ bzrlib/ lock.py" , line 105, in cant_unlock_ not_held LockNotHeld( locked_ object) //bazaar. launchpad. net/~loggerhead -team/loggerhea d/1.17/ .bzr/repository /)
==========
File "/usr/lib/
lockable.
File "/usr/lib/
return unbound(*args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
return unbound(*args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
return unbound(*args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
return unbound(*args, **kwargs)
File "/usr/lib/
return lock.cant_
File "/usr/lib/
raise errors.
LockNotHeld: Lock not held: LockableFiles(lock, bzr+ssh: