/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to object_store.py

Cope with root moving.

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
            new_trees[posixpath.dirname(path[1])] = parent[1]
221
221
        elif kind[1] not in (None, "directory"):
222
222
            raise AssertionError(kind[1])
223
 
        if path[0] is not None and parent[0] in tree.inventory and tree.inventory[parent[0]].kind == "directory":
 
223
        if (path[0] not in (None, "") and
 
224
            parent[0] in tree.inventory and
 
225
            tree.inventory[parent[0]].kind == "directory"):
224
226
            # Removal
225
227
            new_trees[posixpath.dirname(path[0])] = parent[0]
226
228