def getrevision(target, count=1):
    """Get revision(s)."""

    assert exists(target), "%s does not exist!" % target
    results = log(target, count)
    assert results is not None, "Failed to acquire log info!"
    revs = []
    for entry in results.findall('logentry'):
        revs.append(entry.attrib["node"])
    return revs
dataset/ETHPy150Open facelessuser/EasyDiff/lib/hg.py/getrevision/original