Fix a few problems in VersionFromVCS.cmake to make it more reliable:
- Stop using git svn info to retrieve the svn revision. I am unable to determine what the svn revision returned by this command means. During my testing this command returned a revision from a month ago which was not the HEAD of any of my local branches.
Also, this revision was never actually added to the version string due to a typo in the script. All it was used for was to reject the revision number returned by git svn find-rev HEAD when the revision numbers didn't match.
- Populate LLVM_REPOSITORY variable using git svn info --url. This lets avoid having to do a search and replace on the output of git svn info
- Populate GIT_COMMIT even when we detect a git repo without any svn information.
If the git svn information hasn't been updated recently the output of this command will also contain the log of rebuilding the git-svn data. Maybe run git svn fetch first to rebuild. Then when you run git svn info --url the only output should be the url.