implement incremental history index for file based repository
fixes #729