Semantically these changes are made to adjust the dirstate after a commit, so it should be in a parentchange context.
parentchange