Source

hydra / apps / all_docs / views / all_docs / map.py

Full commit
def mapfun(doc):
    yield doc['_id'], {"rev": doc['_rev']}