/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

  • Committer: Jelmer Vernooij
  • Date: 2010-05-01 23:16:11 UTC
  • mfrom: (0.200.904 trunk)
  • mto: (0.200.912 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20100501231611-t8hh69jq6krevlwi
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
 
192
192
    def has_revision(self, revision_id):
193
193
        try:
194
 
            self.get_revision(revision_id)
 
194
            git_commit_id, mapping = self.lookup_bzr_revision_id(revision_id)
195
195
        except errors.NoSuchRevision:
196
196
            return False
197
 
        else:
198
 
            return True
 
197
        return (git_commit_id in self._git)
 
198
 
 
199
    def has_revisions(self, revision_ids):
 
200
        ret = set()
 
201
        for revid in revision_ids:
 
202
            if self.has_revision(revid):
 
203
                ret.add(revid)
 
204
        return ret
199
205
 
200
206
    def get_revisions(self, revids):
201
207
        return [self.get_revision(r) for r in revids]