cache file revision hashes like we do for git
make git more consistent with hg