commit: use generations in paint_down_to_common()