Added function to get head revision hash number.