crash on `bzr mv` of existing added file to another name in same location

Bug #436897 reported by Andrew Svetlov
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

Bug Description

C:\projects\testgui\src\testgui\runner>bzr add
adding src/testgui/runner/loggers.py
ignored 4 file(s).
If you wish to add ignored files, please add them explicitly by name. ("bzr ignored" gives a list)

C:\projects\testgui\src\testgui\runner>bzr mv loggers.py logger.py
bzr: ERROR: exceptions.IndexError: list index out of range

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 835, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1030, in run_bzr
  File "bzrlib\commands.pyo", line 647, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 813, in run
  File "bzrlib\builtins.pyo", line 906, in _run
  File "bzrlib\mutabletree.pyo", line 52, in tree_write_locked
  File "bzrlib\workingtree_4.pyo", line 1245, in rename_one
  File "bzrlib\mutabletree.pyo", line 52, in tree_write_locked
  File "bzrlib\workingtree.pyo", line 1535, in rename_one
  File "bzrlib\mutabletree.pyo", line 52, in tree_write_locked
  File "bzrlib\workingtree_4.pyo", line 1270, in _write_inventory
  File "bzrlib\dirstate.pyo", line 2629, in set_state_from_inventory
  File "bzrlib\dirstate.pyo", line 2797, in update_minimal
IndexError: list index out of range

bzr 1.18.1 on python 2.5.4 (win32)
arguments: ['C:\\Program Files\\Bazaar\\bzr.EXE', 'mv', 'loggers.py', 'logger.py']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [1.18]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [1.18.1]
  netrc_credential_store C:\Program Files\Bazaar\plugins\netrc_credential_store [1.18.1]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.13.1]
  rebase C:\Program Files\Bazaar\plugins\rebase [0.5.3]
  svn C:\Program Files\Bazaar\plugins\svn [0.6.5]
*** 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.

C:\projects\testgui\src\testgui\runner>bzr st
modified:
  src/testgui/runner/importer.py
  src/testgui/runner/runner.py
unknown:
  src/testgui/runner/logger.py

C:\projects\testgui\src\testgui\runner>bzr --version
Bazaar (bzr) 1.18.1
  Python interpreter: C:\Program Files\Bazaar\python25.dll 2.5.4
  Python standard library: C:\Program Files\Bazaar\lib\library.zip
  bzrlib: C:\Program Files\Bazaar\lib\library.zip\bzrlib
  Bazaar configuration: C:\Documents and Settings\asvetlov\Application Data\bazaar\2.0
  Bazaar log file: C:\Documents and Settings\asvetlov\My Documents\.bzr.log

Copyright 2005, 2006, 2007, 2008, 2009 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

next commit was successful and looks like is nothing broken

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.