Correctly parse head revision for individual files, too.