Make time-based commit filtering work with topological ordering.