/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

mark remote git directories as not supporting working trees.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
        return default_mapping
83
83
 
84
84
    def make_working_trees(self):
85
 
        return not self._git.bare
 
85
        return True
86
86
 
87
87
    def revision_graph_can_have_wrong_parents(self):
88
88
        return False
110
110
            o = self._git.object_store[sha]
111
111
            if not isinstance(o, Commit):
112
112
                continue
113
 
            rev, roundtrip_revid, verifiers = mapping.import_commit(o,
 
113
            rev, roundtrip_revid, testament3_sha1 = mapping.import_commit(o,
114
114
                self.lookup_foreign_revision_id)
115
115
            yield o.id, rev.revision_id, roundtrip_revid
116
116
 
162
162
        """Lookup a revision id.
163
163
 
164
164
        """
165
 
        assert type(foreign_revid) is str
166
165
        if mapping is None:
167
166
            mapping = self.get_mapping()
168
167
        from dulwich.protocol import (
171
170
        if foreign_revid == ZERO_SHA:
172
171
            return revision.NULL_REVISION
173
172
        commit = self._git[foreign_revid]
174
 
        rev, roundtrip_revid, verifiers = mapping.import_commit(commit,
 
173
        rev, roundtrip_revid, testament3_sha1 = mapping.import_commit(commit,
175
174
            lambda x: None)
176
175
        # FIXME: check testament before doing this?
177
176
        if roundtrip_revid:
209
208
            commit = self._git[git_commit_id]
210
209
        except KeyError:
211
210
            raise errors.NoSuchRevision(self, revision_id)
212
 
        revision, roundtrip_revid, verifiers = mapping.import_commit(
 
211
        revision, roundtrip_revid, testament3_sha1 = mapping.import_commit(
213
212
            commit, self.lookup_foreign_revision_id)
214
213
        assert revision is not None
215
 
        # FIXME: check verifiers ?
 
214
        # FIXME: check testament3_sha1 ?
216
215
        if roundtrip_revid:
217
216
            revision.revision_id = roundtrip_revid
218
217
        return revision