"bzr mv --auto" generates inconsistent delta when auto detecting files moved to unversioned directories

Bug #370551 reported by Jonny Dee
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Declined for 1.14 by Robert Collins

Bug Description

bzr init trunk
cd trunk
echo Hello World! > test.txt
bzr add
bzr ci -m "Import."
mkdir new-dir
mv test.txt new-dir/file.xml
bzr mv --auto

outputs:

Created a standalone tree (format: pack-0.92)
adding test.txt
Committing to: /tmp/trunk/
added test.txt
Committed revision 1.
 => new-dir
test.txt => new-dir/file.xml
bzr: ERROR: An inconsistent delta was supplied involving u'', 'TREE_ROOT'
reason: This parent is not present.

Tags: mv
Revision history for this message
Jonny Dee (jonny.dee) wrote :
Jonny Dee (jonny.dee)
tags: added: 1.14
Jonny Dee (jonny.dee)
summary: - "bzr mv --auto" fails with "bzr: ERROR: exceptions.IndexError: list
- index out of range"
+ "bzr mv --auto" provokes traceback when auto detecting files that were
+ moved to unversioned directories
Revision history for this message
Wouter van Heyst (larstiq) wrote : Re: "bzr mv --auto" provokes traceback when auto detecting files that were moved to unversioned directories

Happens in bzr.dev too, tail end of traceback:

  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/builtins.py", line 311, in run
    show_pending=(not no_pending), verbose=verbose)
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/status.py", line 118, in show_tree_status
    want_unversioned=want_unversioned)
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/tree.py", line 97, in changes_from
    want_unversioned=want_unversioned,
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/tree.py", line 876, in compare
    want_unversioned=want_unversioned)
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/delta.py", line 230, in _compare_trees
    want_unversioned=want_unversioned):
  File "_dirstate_helpers_c.pyx", line 1350, in _dirstate_helpers_c.ProcessEntryC.__next__
  File "_dirstate_helpers_c.pyx", line 1475, in _dirstate_helpers_c.ProcessEntryC._iter_next
IndexError: list index out of range

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Robert Collins (lifeless) wrote :

Its being corrupted by the 'mv test.txt new-dir/file.xml' step - see https://bugs.edge.launchpad.net/bzr/+bug/367628 for the master bug on that issue. There may be other issues in here; so not closing for now.

summary: - "bzr mv --auto" provokes traceback when auto detecting files that were
+ "bzr mv --auto" generates inconsistent delta when auto detecting files
moved to unversioned directories
tags: removed: 1.14
tags: added: mv
description: updated
summary: - "bzr mv --auto" generates inconsistent delta when auto detecting files
+ "bzr mv --auto" reports inconsistent delta when auto detecting files
moved to unversioned directories
summary: - "bzr mv --auto" reports inconsistent delta when auto detecting files
+ "bzr mv --auto" generates inconsistent delta when auto detecting files
moved to unversioned directories
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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