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

Cope with the fact that the old format didn't export file ids.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
from dulwich.objects import (
49
49
    Commit,
50
50
    )
51
 
from dulwich.protocol import (
52
 
    ZERO_SHA,
53
 
    )
54
51
 
55
52
 
56
53
class GitRepository(ForeignRepository):
167
164
        """
168
165
        if mapping is None:
169
166
            mapping = self.get_mapping()
 
167
        from dulwich.protocol import (
 
168
            ZERO_SHA,
 
169
            )
170
170
        if foreign_revid == ZERO_SHA:
171
171
            return revision.NULL_REVISION
172
172
        commit = self._git[foreign_revid]