def is_versioned(target):

    assert exists(target), "%s does not exist!" % target

    versioned = False
    try:
        entries = status(target, depth="empty")
        if len(entries["unversioned"]) == 0:
            versioned = True
    except Exception:
        pass

    return versioned
Check if file/folder is versioned.
dataset/ETHPy150Open facelessuser/EasyDiff/lib/svn.py/is_versioned