implement incremenal history index for file based repository
fixes #729