internal error when removing folder and adding symlink with same name

Bug #418005 reported by Jesper Skytte
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Incomplete
Undecided
Unassigned

Bug Description

jesper@jesper-laptop:~/Work/EduLab/bzr/main/administration/www/files/video_images$ bzr ci .
Committing to: /home/jesper/Work/EduLab/bzr/main/
missing administration/www/files/video_images/lessons.OTHER
deleted administration/www/files/video_images/lessons
aborting commit write group: TypeError("'NoneType' object is unsubscriptable",)
bzr: ERROR: exceptions.TypeError: 'NoneType' object is unsubscriptable

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 2789, in run
    exclude=safe_relpath_files(tree, exclude))
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree_4.py", line 226, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line 228, in commit
    *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commit.py", line 379, in commit
    message = message_callback(self)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 2766, in get_message
    output_encoding=osutils.get_user_encoding())
  File "/usr/lib/python2.6/dist-packages/bzrlib/msgeditor.py", line 269, in make_commit_message_template_encoded
    template = make_commit_message_template(working_tree, specific_files)
  File "/usr/lib/python2.6/dist-packages/bzrlib/msgeditor.py", line 251, in make_commit_message_template
    to_file=status_tmp, verbose=True)
  File "/usr/lib/python2.6/dist-packages/bzrlib/status.py", line 118, in show_tree_status
    want_unversioned=want_unversioned)
  File "/usr/lib/python2.6/dist-packages/bzrlib/tree.py", line 95, in changes_from
    want_unversioned=want_unversioned,
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/tree.py", line 847, in compare
    want_unversioned=want_unversioned)
  File "/usr/lib/python2.6/dist-packages/bzrlib/delta.py", line 230, in _compare_trees
    want_unversioned=want_unversioned):
  File "_dirstate_helpers_c.pyx", line 1353, in bzrlib._dirstate_helpers_c.ProcessEntryC.__next__
  File "_dirstate_helpers_c.pyx", line 1619, in bzrlib._dirstate_helpers_c.ProcessEntryC._iter_next
  File "_dirstate_helpers_c.pyx", line 1681, in bzrlib._dirstate_helpers_c.ProcessEntryC._loop_one_block
  File "_dirstate_helpers_c.pyx", line 1266, in bzrlib._dirstate_helpers_c.ProcessEntryC._process_entry
TypeError: 'NoneType' object is unsubscriptable

bzr 1.13.1 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'ci', '.']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_DK.UTF-8'
plugins:
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [1.13]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [unknown]
  gtk /home/jesper/.bazaar/plugins/gtk [0.95.0.final.1]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [unknown]

Revision history for this message
Vincent Ladeuil (vila) wrote :

Two things here:
1) You seem to have left unresolved conflicts (or badly resolved conflicts) in your tree (lessons deleted, lessons.OTHER missing),
2) The traceback itself may have been fixed in more recent bzr versions

If you're using Jaunty, you may want to use the bazaar ppa to get the more recent stable releases, look at:
- https://launchpad.net/bzr/
- https://launchpad.net/~bzr/+archive/ppa

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.