/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

Use standard names for lookup functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
            if revision_id == revision.NULL_REVISION:
135
135
                parent_map[revision_id] = ()
136
136
                continue
137
 
            hexsha, mapping = self.lookup_git_revid(revision_id)
 
137
            hexsha, mapping = self.lookup_bzr_revision_id(revision_id)
138
138
            try:
139
139
                commit = self._git.commit(hexsha)
140
140
            except KeyError:
163
163
    def get_signature_text(self, revision_id):
164
164
        raise errors.NoSuchRevision(self, revision_id)
165
165
 
166
 
    def lookup_revision_id(self, foreign_revid, mapping=None):
 
166
    def lookup_foreign_revision_id(self, foreign_revid, mapping=None):
167
167
        """Lookup a revision id.
168
168
        
169
169
        :param revid: Bazaar revision id.
176
176
    def has_signature_for_revision_id(self, revision_id):
177
177
        return False
178
178
 
179
 
    def lookup_git_revid(self, bzr_revid):
 
179
    def lookup_bzr_revision_id(self, bzr_revid):
180
180
        try:
181
181
            return mapping_registry.revision_id_bzr_to_foreign(bzr_revid)
182
182
        except errors.InvalidRevisionId:
183
183
            raise errors.NoSuchRevision(self, bzr_revid)
184
184
 
185
185
    def get_revision(self, revision_id):
186
 
        git_commit_id, mapping = self.lookup_git_revid(revision_id)
 
186
        git_commit_id, mapping = self.lookup_bzr_revision_id(revision_id)
187
187
        try:
188
188
            commit = self._git.commit(git_commit_id)
189
189
        except KeyError: