/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

Refactor repository initialization.

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
        return revision
229
229
 
230
230
    def has_revision(self, revision_id):
 
231
        """See Repository.has_revision."""
231
232
        try:
232
233
            git_commit_id, mapping = self.lookup_bzr_revision_id(revision_id)
233
234
        except errors.NoSuchRevision:
235
236
        return (git_commit_id in self._git)
236
237
 
237
238
    def has_revisions(self, revision_ids):
 
239
        """See Repository.has_revisions."""
238
240
        return set(filter(self.has_revision, revision_ids))
239
241
 
240
242
    def get_revisions(self, revids):
 
243
        """See Repository.get_revisions."""
241
244
        return [self.get_revision(r) for r in revids]
242
245
 
243
246
    def revision_trees(self, revids):
 
247
        """See Repository.revision_trees."""
244
248
        for revid in revids:
245
249
            yield self.revision_tree(revid)
246
250
 
247
251
    def revision_tree(self, revision_id):
 
252
        """See Repository.revision_tree."""
248
253
        revision_id = revision.ensure_null(revision_id)
249
254
        if revision_id == revision.NULL_REVISION:
250
255
            inv = inventory.Inventory(root_id=None)
263
268
        progress=None):
264
269
        return self._git.fetch_objects(determine_wants, graph_walker, progress)
265
270
 
266
 
    def _get_versioned_file_checker(self, text_key_references=None,
267
 
                        ancestors=None):
 
271
    def _get_versioned_file_checker(self, text_key_references=None, ancestors=None):
268
272
        return GitVersionedFileChecker(self,
269
273
            text_key_references=text_key_references, ancestors=ancestors)
270
274