The first merge we see in Factory determines if we keep the devel commits in the factory chain or cut that branch.
Walk the node tree and record the parents, then reverse the tree so we can have the exact order in which to create git commits