/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 imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
        """Add a new entry to the database.
241
241
        """
242
242
        assert isinstance(type_data, tuple)
 
243
        if sha is None:
 
244
            return
243
245
        assert isinstance(sha, str), "type was %r" % sha
244
246
        if type == "commit":
245
247
            self.db.execute("replace into commits (sha1, revid, tree_sha) values (?, ?, ?)", (sha, type_data[0], type_data[1]))