/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 Tdb backend, use tdb if possible by default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    )
45
45
from bzrlib.plugins.git.shamap import (
46
46
    SqliteGitShaMap,
 
47
    TdbGitShaMap,
47
48
    )
48
49
 
49
50
 
63
64
            self.mapping = default_mapping
64
65
        else:
65
66
            self.mapping = mapping
66
 
        self._idmap = SqliteGitShaMap.from_repository(repository)
 
67
        try:
 
68
            self._idmap = TdbGitShaMap.from_repository(repository)
 
69
        except ImportError:
 
70
            self._idmap = SqliteGitShaMap.from_repository(repository)
67
71
 
68
72
    def _update_sha_map(self, stop_revision=None):
69
73
        if stop_revision is None: