Sets the original root and removes tags belonging to a replaced target
if the target is not an issue, pull request or original root patch
Sets the original root and removes tags belonging to a replaced target