Gh405 propagate flags from codesync algorithm

No need to set the flag for the ancestor