Comment 0 for bug 172383

Revision history for this message
n[ate]vw (natevw) wrote : Cannot add normalized Unicode file to repo

OS X 10.5.1 (HFS+, case-sensitive, journaled) / bzr 0.92.0, trying to 'bzr add' a folder named "süb" fails. This may be related to https://bugs.launchpad.net/bzr/+bug/102935.

Example:

stravinsky:test_bzr nathan$ bzr add süb
added "süb"
added "süb"
bzr: ERROR: exceptions.AttributeError: 'NoneType' object has no attribute 'file_id'

Traceback (most recent call last):
  File "/Users/nathan/lib/python/bzrlib/commands.py", line 802, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/Users/nathan/lib/python/bzrlib/commands.py", line 758, in run_bzr
    ret = run(*run_argv)
  File "/Users/nathan/lib/python/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Users/nathan/lib/python/bzrlib/builtins.py", line 384, in run
    no_recurse, action=action, save=not dry_run)
  File "/Users/nathan/lib/python/bzrlib/mutabletree.py", line 51, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/Users/nathan/lib/python/bzrlib/mutabletree.py", line 384, in smart_add
    _add_one(self, inv, parent_ie, directory, kind, action)
  File "/Users/nathan/lib/python/bzrlib/mutabletree.py", line 526, in _add_one
    entry = inv.make_entry(kind, path.base_path, parent_ie.file_id,
AttributeError: 'NoneType' object has no attribute 'file_id'

bzr 0.92.0 on python 2.5.1.final.0 (darwin)
arguments: ['/Users/nathan/bin/bzr', 'add', 'su\xcc\x88b']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'