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

Default to larger hash size.

Show diffs side-by-side

added added

removed removed

Lines of Context:
269
269
 
270
270
 
271
271
TDB_MAP_VERSION = 2
 
272
TDB_HASH_SIZE = 10000
272
273
 
273
274
 
274
275
class TdbGitShaMap(GitShaMap):
289
290
            self.db = {}
290
291
        else:
291
292
            if not mapdbs().has_key(path):
292
 
                mapdbs()[path] = tdb.Tdb(path, 0, tdb.DEFAULT, 
 
293
                mapdbs()[path] = tdb.Tdb(path, TDB_HASH_SIZE, tdb.DEFAULT, 
293
294
                                          os.O_RDWR|os.O_CREAT)
294
295
            self.db = mapdbs()[path]    
295
296
        if not "version" in self.db: