/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

Add check that callers don't try to look up NULL_REVISION.

Show diffs side-by-side

added added

removed removed

Lines of Context:
642
642
                try:
643
643
                    rev = self.repository.get_revision(revid)
644
644
                except errors.NoSuchRevision:
 
645
                    if revid == NULL_REVISION:
 
646
                        raise AssertionError(
 
647
                            "should not try to look up NULL_REVISION")
645
648
                    trace.mutter('entry for %s %s in shamap: %r, but not '
646
649
                                 'found in repository', kind, sha, type_data)
647
650
                    raise KeyError(sha)