/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

Cope with API changes in Dulwich.

Show diffs side-by-side

added added

removed removed

Lines of Context:
283
283
    def commit(self):
284
284
        pass
285
285
 
286
 
    def add_entries(self, entries):
287
 
        """Add multiple new entries to the database.
288
 
        """
289
 
        self.db.transaction_start()
290
 
        try:
291
 
            for e in entries:
292
 
                self.add_entry(*e)
293
 
        except:
294
 
            self.db.transaction_cancel()
295
 
            raise
296
 
        self.db.transaction_commit()
297
 
 
298
286
    def add_entry(self, sha, type, type_data):
299
287
        """Add a new entry to the database.
300
288
        """