/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

Fix tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
423
423
            return self._cache.idmap.lookup_git_sha(sha)
424
424
 
425
425
    def __getitem__(self, sha):
426
 
        (type, type_data) = self._lookup_git_sha(sha)
427
426
        if self._cache.content_cache is not None:
428
427
            try:
429
428
                return self._cache.content_cache[sha]
430
429
            except KeyError:
431
430
                pass
 
431
        (type, type_data) = self._lookup_git_sha(sha)
432
432
        # convert object to git object
433
433
        if type == "commit":
434
434
            (revid, tree_sha) = type_data