add FindSha method for check_repos_revision.py