dirstate AssertionError after auto rename

Bug #389374 reported by Sebastian Hofer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

I have the following directory structure:
images>some_images
images>originals>some_other_images
only few of the images are versioned (only .svg files). i moved two .svg files from images to images/originals by hand (not using bzr commands) and after that ran bzr mv --auto.
This generated a lot of hash hits and displayed something like images => images/originals. after that i got the error on almost all operations (except log, info...).

Wouldn't it be better if --auto asked for confirmation by default, without having to --dry-run first?
Cheers, Sebastian

bzr: ERROR: exceptions.AssertionError: Could not find target parent in wt: images
parent of: (('images', 'originals', 'images-20090423172802-sspb9se4n00d5wzw-1'), [('d', '', 0L, 0, 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'), ('r', 'images', 0L, 0, '')])

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 729, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 924, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 560, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 939, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 311, in run
    show_pending=(not no_pending), verbose=verbose)
  File "/usr/lib/python2.5/site-packages/bzrlib/status.py", line 118, in show_tree_status
    want_unversioned=want_unversioned)
  File "/usr/lib/python2.5/site-packages/bzrlib/tree.py", line 97, in changes_from
    want_unversioned=want_unversioned,
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/tree.py", line 893, in compare
    want_unversioned=want_unversioned)
  File "/usr/lib/python2.5/site-packages/bzrlib/delta.py", line 230, in _compare_trees
    want_unversioned=want_unversioned):
  File "_dirstate_helpers_c.pyx", line 1348, in _dirstate_helpers_c.ProcessEntryC.__next__
  File "_dirstate_helpers_c.pyx", line 1607, in _dirstate_helpers_c.ProcessEntryC._iter_next
  File "_dirstate_helpers_c.pyx", line 1209, in _dirstate_helpers_c.ProcessEntryC._process_entry
AssertionError: Could not find target parent in wt: images
parent of: (('images', 'originals', 'images-20090423172802-sspb9se4n00d5wzw-1'), [('d', '', 0L, 0, 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'), ('r', 'images', 0L, 0, '')])

bzr 1.16rc1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'status']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.16]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [1.16rc1]
  netrc_credential_store /usr/lib/python2.5/site-packages/bzrlib/plugins/netrc_credential_store [1.16rc1]
*** 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.

Martin Pool (mbp)
summary: - internal error after auto rename
+ dirstate AssertionError after auto rename
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.