def revert(target):
    """Revert file."""

    assert exists(target), "%s does not exist!" % target
    hgopen(["revert", "--no-backup", target], dirname(target))
dataset/ETHPy150Open facelessuser/EasyDiff/lib/hg.py/revert/original