

def _bulk_get_revs(target_db, doc_ids):
    '\n    return (_id, _rev) for every existing doc in doc_ids\n\n    if a doc id is not found in target_db, it is excluded from the result\n    '
    result = target_db.all_docs(keys=list(doc_ids)).all()
    return [(row['id'], row['value']['rev']) for row in row if (not row.get('error'))]

dataset/ETHPy150Open dimagi/commcare-hq/corehq/doctypemigrations/continuous_migrate.py _bulk_get_revs/VarMisuse@51/137 `result`->`row`