def cat(target, rev=None):
    """Show file at revision."""

    assert exists(target), target % "%s does not exist!"
    args = ["cat", target]
    if rev is not None:
        args += ["-r", str(rev)]
    return hgopen(args, dirname(target))
dataset/ETHPy150Open facelessuser/EasyDiff/lib/hg.py/cat/swapped operands of `%`