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

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