history_set_parent takes pattern by ref