def searchinfo(xml, *args):

    entry = xml.find("entry")

    if len(args) == 0:
        return {}

    keys = {}
    for a in args:
        try:
            if a == "url":
                keys[a] = entry.find(a).text
            elif a in ["root", "uuid"]:
                repo = entry.find("repository")
                keys[a] = repo.find(a).text
            elif a in ["revision", "author", "date"]:
                com = entry.find("commit")
                if a == "revision":
                    keys[a] = com.attrib["revision"]
                else:
                    keys[a] = com.find(a).text
            elif a in ["token", "owner", "created", "expires"]:
                lk = entry.find("lock")
                keys[a] = lk.find(a).text
        except Exception:
            keys[a] = None
    return keys
Search the info (acquired via the info method) for the keys given.
dataset/ETHPy150Open facelessuser/EasyDiff/lib/svn.py/searchinfo