Error while renaming a directory

Andreas Deininger adeininger at googlemail.com
Wed Sep 9 20:53:33 BST 2009


Hi,

I'm using bzr 1.18, my bzr repository is a standalone tree (format 1.9).
I'm encountering the following problem, which I can reproduce:

$bzr mkdir test
$bzr rename test test.renamed
$bzr rename test.renamed test

The last command results in an error (see stacktrace below).
Is this a known bug?

Thanks
Andreas

bzr: ERROR: exceptions.IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 835, in
exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 1030, in
run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 647, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 804, in
run
    self._run(tree, names_list, rel_names, after)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 897, in
_run
    tree.rename_one(src, dest, after=after)
  File "/usr/lib/python2.4/site-packages/bzrlib/mutabletree.py", line 52, in
tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/workingtree_4.py", line
1245, in rename_one
    WorkingTree.rename_one(self, from_rel, to_rel, after)
  File "/usr/lib/python2.4/site-packages/bzrlib/mutabletree.py", line 52, in
tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/workingtree.py", line 1530,
in rename_one
    self._write_inventory(inv)
  File "/usr/lib/python2.4/site-packages/bzrlib/mutabletree.py", line 52, in
tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/workingtree_4.py", line
1270, in _write_inventory
    self.current_dirstate().set_state_from_inventory(inv)
  File "/usr/lib/python2.4/site-packages/bzrlib/dirstate.py", line 2629, in
set_state_from_inventory
    fullscan=True)
  File "/usr/lib/python2.4/site-packages/bzrlib/dirstate.py", line 2797, in
update_minimal
    other_key = list(existing_keys)[0]
IndexError: list index out of range

bzr 1.18 on python 2.4.4 (linux2)
arguments: ['/usr/bin/bzr', 'rename', 'yourdir/', 'mydir']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'de_DE.UTF-8'
plugins:
  bzrtools
/usr/lib/python2.4/site-packages/bzrlib/plugins/bzrtools [1.16]
  explorer
/usr/lib/python2.4/site-packages/bzrlib/plugins/explorer [0.4]
  gtk                  /usr/lib/python2.4/site-packages/bzrlib/plugins/gtk
[0.95.0.final.1]
  launchpad
/usr/lib/python2.4/site-packages/bzrlib/plugins/launchpad [1.18]
  multiparent
/usr/lib/python2.4/site-packages/bzrlib/plugins/multiparent.py [unknown]
  netrc_credential_store
/usr/lib/python2.4/site-packages/bzrlib/plugins/netrc_credential_store
[1.18]
  qbzr                 /usr/lib/python2.4/site-packages/bzrlib/plugins/qbzr
[0.11]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20090909/cc45506e/attachment-0002.htm 


More information about the bazaar mailing list