implement incremenal history index for file based repository

fixes #729

passes Jenkins