/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 map for Tree objects becoming invalid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
        elif type == "blob":
230
230
            return self._get_blob(type_data[0], type_data[1], expected_sha=sha)
231
231
        elif type == "tree":
232
 
            return self._get_tree(type_data[0], type_data[1], expected_sha=sha)
 
232
            try:
 
233
                return self._get_tree(type_data[0], type_data[1], 
 
234
                                      expected_sha=sha)
 
235
            except errors.NoSuchRevision:
 
236
                raise KeyError(sha)
233
237
        else:
234
238
            raise AssertionError("Unknown object type '%s'" % type)