Comment 1 for bug 172383

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

Doing a recursive add on the enclosing directory results in a similar error, though the combining mark is printed using its Unicode address, instead of two escaped bytes, in the error messages:

stravinsky:test_bzr nathan$ bzr add
added "süb"
bzr: ERROR: exceptions.KeyError: u'su\u0308b'

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 390, in smart_add
    this_ie = parent_ie.children[directory.base_path]
KeyError: u'su\u0308b'

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