def METHOD_NAME(original_call):
    def side_effect(cmd, *args, **kwargs):
        if len(cmd) > 1 and cmd[1] == "revno":
            return "mock-commit".encode()
        elif cmd[0] == "bzr":
            return
        return original_call(cmd, *args, **kwargs)
    return side_effect