def revisions(self, id, **options):
        try:
            resource = _doc_resource(self.resource, id)
            status, headers, data = resource.get_json(revs=True)
        except http.ResourceNotFound:
            return

        startrev = data['_revisions']['start']
        for index, rev in enumerate(data['_revisions']['ids']):
            options['rev'] = '%d-%s' % (startrev - index, rev)
            revision = self.get(id, **options)
            if revision is None:
                return
            yield revision
Return all available revisions of the given document.
dataset/ETHPy150Open djc/couchdb-python/couchdb/client.py/Database.revisions