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

Support working trees properly, status and ls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
class GitInventory(inventory.Inventory):
151
151
 
152
152
    def __init__(self, tree_id, mapping, store, revision_id):
153
 
        super(GitInventory, self).__init__(revision_id)
 
153
        super(GitInventory, self).__init__(revision_id=revision_id)
154
154
        self.store = store
155
155
        self.mapping = mapping
156
156
        self.root = GitInventoryDirectory(self, None, tree_id, "", "", False)
194
194
        if file_id == inventory.ROOT_ID:
195
195
            return self.root
196
196
        path = self.mapping.parse_file_id(file_id)
197
 
        return self._get_ie(path)
 
197
        try:
 
198
            return self._get_ie(path)
 
199
        except KeyError:
 
200
            raise errors.NoSuchId(None, file_id)