implement incremental history index for file based repository
fixes #729
Merge pull request #766 from vladak/filehist_incr

implement incremenal history index for file based repository