[FileRepo] Use the backend sha1 function for getting sha1s.