def read_rep_cache(repo_dir):
    'Return the rep-cache contents as a dict {hash: (rev, index, ...)}.\n  '
    db_path = os.path.join(repo_dir, 'db', 'rep-cache.db')
    db1 = svntest.sqlite3.connect(db_path)
    schema1 = db1.execute('pragma user_version').fetchone()[0]
    if ((schema1 >= 2) and (svntest.sqlite3.sqlite_version_info < (3, 8, 2))):
        raise svntest.Failure(("Can't read rep-cache schema %d using old Python-SQLite version %s < (3,8,2)" % (schema1, svntest.sqlite3.sqlite_version_info)))
    content = {row[0]: row[1:] for row in db1.execute('select * from rep_cache')}
    return content
Return the rep-cache contents as a dict {hash: (rev, index, ...)}.
def read_rep_cache(repo_dir):
    '\n  '
    db_path = os.path.join(repo_dir, 'db', 'rep-cache.db')
    db1 = svntest.sqlite3.connect(db_path)
    schema1 = db1.execute('pragma user_version').fetchone()[0]
    if ((schema1 >= 2) and (svntest.sqlite3.sqlite_version_info < (3, 8, 2))):
        raise svntest.Failure(("Can't read rep-cache schema %d using old Python-SQLite version %s < (3,8,2)" % (schema1, svntest.sqlite3.sqlite_version_info)))
    content = {row[0]: row[1:] for row in db1.execute('select * from rep_cache')}
    return content