/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 bzr_commit_handler.py

fix first file is in a subdirectory bug for chk formats

Show diffs side-by-side

added added

removed removed

Lines of Context:
244
244
        """
245
245
        result = self.directory_entries.get(dirname)
246
246
        if result is None:
247
 
            file_id = inv.path2id(dirname)
 
247
            try:
 
248
                file_id = inv.path2id(dirname)
 
249
            except errors.NoSuchId:
 
250
                # In a CHKInventory, this is raised if there's no root yet
 
251
                raise KeyError
248
252
            if file_id is None:
249
253
                raise KeyError
250
254
            result = inv[file_id]