Fix and speed up indexing existing changesets.