commit-graph: avoid repeated mixed generation number warnings