Improve origin_add logic
to avoid processing twice the history graph of a revision that was already seen as the head of another origin.