revision.c: remove duplicated parents after history simplification