Comment 4 for bug 377261

Revision history for this message
Jan Pobrislo (ccx) wrote :

Happens to me too, after doing 'bzr remove --keep OUT', where OUT is directory with versioned files.
Now both 'bzr ls' and 'bzr inventory' crash with:

% bzr --no-plugins ls
bzr: ERROR: exceptions.AssertionError: name u'T15jack.hex' already in parent

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 911, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 1111, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 704, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 1126, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/builtins.py", line 2571, in run
    from_dir=relpath, recursive=recursive):
  File "/usr/lib64/python2.7/site-packages/bzrlib/workingtree.py", line 1160, in list_files
    inv = self.inventory
  File "/usr/lib64/python2.7/site-packages/bzrlib/workingtree_4.py", line 401, in _get_inventory
    self._generate_inventory()
  File "/usr/lib64/python2.7/site-packages/bzrlib/workingtree_4.py", line 337, in _generate_inventory
    % (name_unicode,))
AssertionError: name u'T15jack.hex' already in parent

bzr 2.2.0 on python 2.7.0 (Linux-2.6.34-gentoo-r2-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_5050e-with-gentoo-2.0.1)
arguments: ['/usr/bin/bzr', '--no-plugins', 'ls']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: None
plugins:

This originally happened on WinXP with Python 2.5 (current bzr suite install), I have the repository state backed up.
Attaching dirstate of the affected checkout.