bzr log on directory fails with "ObjectNotLocked"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
Executing "bzr log foo", where foo is a subdirectory of the working tree (tracked with Bazaar, of course), generates a crash. Either with checkouts or full branches, this always happens with directories.
Even when logging a subtree is not supported, bazaar should fail gracefully.
Generated traceback:
bzr: ERROR: bzrlib.
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/home/
cmd_
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
revision, file_list, self.add_cleanup)
File "/usr/lib/
kind = _get_kind_
File "/usr/lib/
return tree.kind(file_id)
File "/usr/lib/
return self._kind(relpath)
File "/usr/lib/
entry = self._get_
File "/usr/lib/
state = self.current_
File "/usr/lib/
self.
File "/usr/lib/
raise errors.
ObjectNotLocked: <WorkingTree6 of /home/ijurado/
bzr 2.2.0 on python 2.6.6rc1 (Linux-
arguments: ['/usr/bin/bzr', 'log', 'conf']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'es_ES.UTF-8'
plugins:
bash_completion /usr/lib/
bzr_interactive /home/ijurado/
bzrtools /usr/lib/
launchpad /usr/lib/
netrc_
news_merge /usr/lib/
pager /home/ijurado/
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
'bzr log bzrlib' does work ok for me in 2.2. I wonder if this is actually a problem with bzr locking the wrong directory? Is 'conf' perhaps a symlink from one branch to a subdirectory of another, or something like that?