TestKindChanges in the attached branch reproduces one of these cases:
<class 'testtools.testresult.real._StringException'>: Text attachment: traceback
------------
Traceback (most recent call last):
File "/home/mbp/bzr/192859-2.0-symlinks/bzrlib/tests/per_workingtree/test_symlinks.py", line 84, in test_symlink_to_dir
tree.smart_add(['tree/a/f'])
File "/home/mbp/bzr/192859-2.0-symlinks/bzrlib/mutabletree.py", line 53, in tree_write_locked
return unbound(self, *args, **kwargs)
File "/home/mbp/bzr/192859-2.0-symlinks/bzrlib/mutabletree.py", line 417, in smart_add
added.extend(_add_one_and_parent(self, inv, None, rf, kind, action))
File "/home/mbp/bzr/192859-2.0-symlinks/bzrlib/mutabletree.py", line 671, in _add_one_and_parent
_add_one(tree, inv, parent_ie, path, kind, action)
File "/home/mbp/bzr/192859-2.0-symlinks/bzrlib/mutabletree.py", line 688, in _add_one
inv.add(entry)
File "/home/mbp/bzr/192859-2.0-symlinks/bzrlib/inventory.py", line 1300, in add
if entry.name in parent.children:
AttributeError: children
------------
TestKindChanges in the attached branch reproduces one of these cases:
<class 'testtools. testresult. real._StringExc eption' >: Text attachment: traceback mbp/bzr/ 192859- 2.0-symlinks/ bzrlib/ tests/per_ workingtree/ test_symlinks. py", line 84, in test_symlink_to_dir smart_add( ['tree/ a/f']) mbp/bzr/ 192859- 2.0-symlinks/ bzrlib/ mutabletree. py", line 53, in tree_write_locked mbp/bzr/ 192859- 2.0-symlinks/ bzrlib/ mutabletree. py", line 417, in smart_add extend( _add_one_ and_parent( self, inv, None, rf, kind, action)) mbp/bzr/ 192859- 2.0-symlinks/ bzrlib/ mutabletree. py", line 671, in _add_one_and_parent mbp/bzr/ 192859- 2.0-symlinks/ bzrlib/ mutabletree. py", line 688, in _add_one mbp/bzr/ 192859- 2.0-symlinks/ bzrlib/ inventory. py", line 1300, in add
------------
Traceback (most recent call last):
File "/home/
tree.
File "/home/
return unbound(self, *args, **kwargs)
File "/home/
added.
File "/home/
_add_one(tree, inv, parent_ie, path, kind, action)
File "/home/
inv.add(entry)
File "/home/
if entry.name in parent.children:
AttributeError: children
------------