internal error when removing folder and adding symlink with same name

Bug #418005 reported by Jesper Skytte
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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/", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 547, in run_argv_aliases
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 2789, in run
    exclude=safe_relpath_files(tree, exclude))
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 226, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 228, in commit
    *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 379, in commit
    message = message_callback(self)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 2766, in get_message
  File "/usr/lib/python2.6/dist-packages/bzrlib/", 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/", line 251, in make_commit_message_template
    to_file=status_tmp, verbose=True)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 118, in show_tree_status
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 95, in changes_from
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 847, in compare
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 230, in _compare_trees
  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'
  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 []
  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:

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.