hg2git.py: Use git-rev-parse to get SHA1s instead of reading files below refs/ directly