crash when "bzr ls" against a file in a branch w/o working tree

Bug #705189 reported by Michael B. Trausch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Originally found in bzr 2.2.1 in Ubuntu 10.10, still present in lp:bzr as of the time I am reporting this bug.

Given a shared repository "/path/to/repo", a branch (without a working tree) in it named "trunk", a directory in the branch named "app" and a file in the branch named "foo" the following commands work:

 $ bzr ls /path/to/repo/trunk
 $ bzr ls /path/to/repo/trunk/app

And the following command crashes:

 $ bzr ls /path/to/repo/trunk/foo

The following crash output is generated as a result of this:

<mbt@aloe> ~/Projects/redmine-nowt $ bzr ls trunk/.gitignore
Unable to load plugin 'rewrite'. It requested API version (2, 3, 0) of module <module 'bzrlib' from '/home/mbt/Projects/bzr/trunk/bzrlib/__init__.pyc'> but the minimum exported version is (2, 4, 0), and the maximum is (2, 4, 0)
Unable to load plugin 'svn'. It requested API version (2, 2, 0) of module <module 'bzrlib' from '/home/mbt/Projects/bzr/trunk/bzrlib/__init__.pyc'> but the minimum exported version is (2, 4, 0), and the maximum is (2, 4, 0)
Unable to load plugin 'gtk'. It requested API version (2, 2, 0) of module <module 'bzrlib' from '/home/mbt/Projects/bzr/trunk/bzrlib/__init__.pyc'> but the minimum exported version is (2, 4, 0), and the maximum is (2, 4, 0)
Unable to load plugin 'loggerhead'. It requested API version (2, 2, 0) of module <module 'bzrlib' from '/home/mbt/Projects/bzr/trunk/bzrlib/__init__.pyc'> but the minimum exported version is (2, 4, 0), and the maximum is (2, 4, 0)
bzr: failed to report crash using apport:
     OSError(13, 'Permission denied')
bzr: ERROR: exceptions.AttributeError: 'InventoryFile' object has no attribute 'children'

Traceback (most recent call last):
  File "/home/mbt/Projects/bzr/trunk/bzrlib/commands.py", line 923, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/home/mbt/Projects/bzr/trunk/bzrlib/commands.py", line 1123, in run_bzr
    ret = run(*run_argv)
  File "/home/mbt/Projects/bzr/trunk/bzrlib/commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/mbt/Projects/bzr/trunk/bzrlib/commands.py", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/mbt/Projects/bzr/trunk/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/mbt/Projects/bzr/trunk/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/mbt/Projects/bzr/trunk/bzrlib/commands.py", line 1138, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/mbt/Projects/bzr/trunk/bzrlib/builtins.py", line 2605, in run
    from_dir=relpath, recursive=recursive):
  File "/home/mbt/Projects/bzr/trunk/bzrlib/revisiontree.py", line 133, in list_files
    for path, entry in entries:
  File "/home/mbt/Projects/bzr/trunk/bzrlib/inventory.py", line 685, in iter_entries
    children = from_dir.children.items()
AttributeError: 'InventoryFile' object has no attribute 'children'

bzr 2.4.0dev1 on python 2.6.6 (Linux-2.6.35-24-generic-x86_64-with-Ubuntu-10.10-maverick)
arguments: ['/home/mbt/Projects/bzr/trunk/bzr', 'ls', 'trunk/.gitignore']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.utf8'
plugins:
  bash_completion /home/mbt/Projects/bzr/trunk/bzrlib/plugins/bash_completion [2.4.0dev1]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.2.0]
  cia /usr/lib/python2.6/dist-packages/bzrlib/plugins/cia [1.0.0dev]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [0.1.0dev]
  launchpad /home/mbt/Projects/bzr/trunk/bzrlib/plugins/launchpad [2.4.0dev1]
  netrc_credential_store /home/mbt/Projects/bzr/trunk/bzrlib/plugins/netrc_credential_store [2.4.0dev1]
  news_merge /home/mbt/Projects/bzr/trunk/bzrlib/plugins/news_merge [2.4.0dev1]
  pager /home/mbt/.bazaar/plugins/pager [unknown]
  search /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7.0dev]

*** 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://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
bzr: warning: some compiled extensions could not be loaded; see <https://answers.launchpad.net/bzr/+faq/703>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.