/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

Cope with NULL_REVISION.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    trace,
33
33
    ui,
34
34
    )
 
35
from bzrlib.revision import (
 
36
    NULL_REVISION,
 
37
    )
35
38
 
36
39
from bzrlib.plugins.git.errors import (
37
40
    GhostRevision,
184
187
 
185
188
    def _lookup_revision_sha1(self, revid):
186
189
        """Return the SHA1 matching a Bazaar revision."""
 
190
        if revid == NULL_REVISION:
 
191
            return "0" * 40
187
192
        try:
188
193
            return self._idmap.lookup_commit(revid)
189
194
        except KeyError: