duplicate key value JDBC exception when indexing large Mercurial repo

fixes #683
make -post-compile-test pre-requisite for running single test file

fixes #686
need more careful checking of repositories.zip in order to avoid generating it every time single test is run