bzr is confused after an ignore and a few remove

Bug #273080 reported by Mamelouk
2
Affects Status Importance Assigned to Milestone
Bazaar
Incomplete
Undecided
Unassigned

Bug Description

Hi,

I can't use my current files anymore (I didn't tried restore from repository yet)

Here exactly what I did:

bzr ignore *.svn
(some files matching this pattern are in the repository, I try to remove them)
bzr remove src/ftmVideoGrabberUEye/.svn
(some files are used but the system -locked by windows- so I try to force)
bzr remove --force src/ftmVideoGrabberUEye/.svn
(I close the app using the files)
bzr remove src/ftmVideoGrabberUEye/.svn --keep
(but it's too late some files were deletes I think, so before I type help to search the restore command, I type status )
bzr status
(then I get the following exception)

bzr: ERROR: exceptions.AssertionError: Could not find target parent in wt: src/-----------/.svn
parent of: (('src/---/.svn', 'tmp', 'tmp-20080819083634-xuczb8wniirfoiae-24'), [('d', '', 0L, 0, 'AAAAAEjXWglI11oJAAAAAAAAAAAAAEH/'),
('d', '', 0L, 0, '---@---.com-20080819083807-kufjekkre8eyexfh')])

Traceback (most recent call last):
  File "bzrlib\commands.pyc", line 846, in run_bzr_catch_errors
  File "bzrlib\commands.pyc", line 797, in run_bzr
  File "bzrlib\commands.pyc", line 499, in run_argv_aliases
  File "bzrlib\commands.pyc", line 807, in ignore_pipe
  File "C:\Program Files\Bazaar\plugins\xmloutput\__init__.py", line 75, in run
  File "bzrlib\commands.pyc", line 807, in ignore_pipe
  File "bzrlib\builtins.pyc", line 178, in run
  File "bzrlib\status.pyc", line 117, in show_tree_status
  File "bzrlib\tree.pyc", line 93, in changes_from
  File "bzrlib\decorators.pyc", line 127, in read_locked
  File "bzrlib\tree.pyc", line 734, in compare
  File "bzrlib\delta.pyc", line 217, in _compare_trees
  File "bzrlib\workingtree_4.pyc", line 2346, in iter_changes
  File "bzrlib\workingtree_4.pyc", line 2089, in _process_entry
AssertionError: Could not find target parent in wt: src/-----------/.svn
parent of: (('src/ftmVideoGrabberUEye/.svn', 'tmp', 'tmp-20080819083634-xuczb8wniirfoiae-24'), [('d', '', 0L, 0, 'AAAAAEjXWglI11oJAAAAAAAAAAAAAEH/'),
('d', '', 0L, 0, '-----------@o-----------.com-20080819083807-kufjekkre8eyexfh')])

bzr 1.5 on python 2.5.2 (win32)
arguments: ['bzr', 'status']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  gtk C:\Documents and Settings\-----------\Application Data\bazaar\2.0\plugins\gtk [0.95.0]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [unknown]
  xmloutput C:\Program Files\Bazaar\plugins\xmloutput [0.4.4]
*** 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.

Revision history for this message
Mamelouk (mamelouk) wrote :

it also happen with bzr 1.7 :

bzr: ERROR: exceptions.AssertionError: Could not find target parent in wt: src/----------/.svn
parent of: (('src/----------/.svn', 'tmp', 'tmp-20080819083634-xuczb8wniirfoiae-24'), [('d', '', 0L, 0, 'AAAAAEjXgOhI14DnAAAAAAAAAAAAAEH/')
('d', '', 0L, 0, '----------@----------.com-20080819083807-kufjekkre8eyexfh')])

Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\bzrlib\commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "C:\Python25\Lib\site-packages\bzrlib\commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "C:\Python25\Lib\site-packages\bzrlib\commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "C:\Python25\Lib\site-packages\bzrlib\commands.py", line 818, in ignore_pipe
    result = func(*args, **kwargs)
  File "C:\Python25\Lib\site-packages\bzrlib\builtins.py", line 200, in run
    show_pending=(not no_pending))
  File "C:\Python25\Lib\site-packages\bzrlib\status.py", line 117, in show_tree_status
    want_unversioned=want_unversioned)
  File "C:\Python25\Lib\site-packages\bzrlib\tree.py", line 94, in changes_from
    want_unversioned=want_unversioned,
  File "C:\Python25\Lib\site-packages\bzrlib\decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "C:\Python25\Lib\site-packages\bzrlib\tree.py", line 784, in compare
    want_unversioned=want_unversioned)
  File "C:\Python25\Lib\site-packages\bzrlib\delta.py", line 217, in _compare_trees
    want_unversioned=want_unversioned):
  File "C:\Python25\Lib\site-packages\bzrlib\workingtree_4.py", line 2397, in iter_changes
    result = _process_entry(current_entry, None)
  File "C:\Python25\Lib\site-packages\bzrlib\workingtree_4.py", line 2133, in _process_entry
    % (new_dirname, entry))
AssertionError: Could not find target parent in wt: src/----------/.svn
parent of: (('src/----------/.svn', 'tmp', 'tmp-20080819083634-xuczb8wniirfoiae-24'), [('d', '', 0L, 0, 'AAAAAEjXgOhI14DnAAAAAAAAAAAAAEH/')
('d', '', 0L, 0, '----------@----------.com-20080819083807-kufjekkre8eyexfh')])

bzr 1.7rc2 on python 2.5.2 (win32)
arguments: ['C:\\Python25\\Scripts\\bzr', 'status']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  gtk C:\Documents and Settings\----------\Application Data\bazaar\2.0\plugins\gtk [0.95.0]
  launchpad C:\Python25\lib\site-packages\bzrlib\plugins\launchpad [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.

Revision history for this message
John A Meinel (jameinel) wrote :

I'm pretty sure that the state you got into was a known bug in 1.5. Where it would let you mark a directory as deleted, but fail to remove all of its children.

See bug #150438.

I believe the fix in 1.7 is to not get into these states, not to be able to get out of them. Though you might be able to do "bzr add src/..../.svn" and then "bzr status" might be happy again.

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

Please reopen this if you can still encounter it with 1.7 or later.

Changed in bzr:
status: New → Incomplete
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.