Rewrite FindCommitByCommitMessage to better find by changeset Id

(for better performance and maintainability)