cherry-pick, revert: add a label for ancestor