minseong.kim created this revision. Herald added a subscriber: mgorny. When repo is used, '--version' option does not display correct version information (i.e. Git hashes). This change makes the parsing of the version info correctly recognise svn, git, git-svn and repo. This in turn enables the option displays correct version information with repo. Tested with git, svn and repo with this patch.
https://reviews.llvm.org/D35533 Files: lib/Basic/CMakeLists.txt Index: lib/Basic/CMakeLists.txt =================================================================== --- lib/Basic/CMakeLists.txt +++ lib/Basic/CMakeLists.txt @@ -34,6 +34,7 @@ "${git_path}/logs/HEAD" # Git or Git submodule "${path}/.svn/wc.db" # SVN 1.7 "${path}/.svn/entries" # SVN 1.6 + "${path}/.git/HEAD" # Repo ) endmacro()
Index: lib/Basic/CMakeLists.txt =================================================================== --- lib/Basic/CMakeLists.txt +++ lib/Basic/CMakeLists.txt @@ -34,6 +34,7 @@ "${git_path}/logs/HEAD" # Git or Git submodule "${path}/.svn/wc.db" # SVN 1.7 "${path}/.svn/entries" # SVN 1.6 + "${path}/.git/HEAD" # Repo ) endmacro()
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits