renamed patterns_history_set_parent