bzr crash on move fresh file

Bug #509052 reported by vitaly.v.ch
This bug report is a duplicate of:  Bug #403322: IndexError on moving added file. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned
Declined for 1.18 by Martin Pool

Bug Description

#ls buy-in-game
double-11-nomoney-buy-bycash.test
double-11-nomoney-buy.test
#bzr add buy-in-game
#bzr mv buy-in-game buy-in-game-apmoney
#cd buy-in-game-apmoney
#bzr mv double-11-nomoney-buy-bycash.test double-11-nomoney-buy.test
bzr: ERROR: Could not move double-11-nomoney-buy-bycash.test => double-11-nomoney-buy.test: data/pok/game/rcg/buy-in-game-apmoney/double-11-nomoney-buy.test is already versioned
#bzr mv double-11-nomoney-buy-bycash.test double-11-nomoney-buy-byapm.test
bzr: ERROR: exceptions.IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 835, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 1030, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 647, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 813, in run
    self._run(tree, names_list, rel_names, after)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 906, in _run
    tree.rename_one(src, dest, after=after)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 52, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 1245, in rename_one
    WorkingTree.rename_one(self, from_rel, to_rel, after)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 52, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 1535, in rename_one
    self._write_inventory(inv)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 52, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 1270, in _write_inventory
    self.current_dirstate().set_state_from_inventory(inv)
  File "/usr/lib/python2.5/site-packages/bzrlib/dirstate.py", line 2629, in set_state_from_inventory
    fullscan=True)
  File "/usr/lib/python2.5/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.1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'mv', 'double-11-nomoney-buy-bycash.test', 'double-11-nomoney-buy-byapm.test']
encoding: 'KOI8-U', fsenc: 'KOI8-U', lang: 'uk_UA.KOI8-U'
plugins:
  acad /root/.bazaar/plugins/acad [0.7]
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.18]
  colo /root/.bazaar/plugins/colo [0.0.1]
  fastimport /root/.bazaar/plugins/fastimport [0.9dev]
  file_revno /root/.bazaar/plugins/file_revno [unknown]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.95.0.final.1]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [1.18.1]
  lessdiff /root/.bazaar/plugins/lessdiff [unknown]
  lesslog /root/.bazaar/plugins/lesslog [unknown]
  loom /root/.bazaar/plugins/loom [1.4dev]
  netrc_credential_store /usr/lib/python2.5/site-packages/bzrlib/plugins/netrc_credential_store [1.18.1]
  pager /root/.bazaar/plugins/pager [unknown]
rebase /root/.bazaar/plugins/rebase [0.5.4dev]
  scmproj /root/.bazaar/plugins/scmproj [0.5.2dev]
  svn /root/.bazaar/plugins/svn [0.6.5]
  vimdiff /root/.bazaar/plugins/vimdiff [unknown]
*** 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.
#bzr st
added:
buy-in-game-apmoney/
buy-in-game-apmoney/double-11-nomoney-buy.test
unknown:
buy-in-game-apmoney/double-11-nomoney-buy-byapm.test
#

Tags: trace move
Revision history for this message
Martin Pool (mbp) wrote :

Hi,

I think this bug was been fixed in 2.0.1. Please upgrade to 2.0.4 and reopen the bug if you can still reproduce it.

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.