Remove SVN logic from find_first_existing_vc_file
As LLVM has moved from SVN to git, there is no need to keep SVN related code. Also, this code piece was never used. Differential Revision: https://reviews.llvm.org/D79400
This commit is contained in:
parent
cf6cc662ee
commit
0384446c7c
|
@ -2094,18 +2094,6 @@ function(find_first_existing_vc_file path out_var)
|
||||||
if(NOT EXISTS "${path}")
|
if(NOT EXISTS "${path}")
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
if(EXISTS "${path}/.svn")
|
|
||||||
set(svn_files
|
|
||||||
"${path}/.svn/wc.db" # SVN 1.7
|
|
||||||
"${path}/.svn/entries" # SVN 1.6
|
|
||||||
)
|
|
||||||
foreach(file IN LISTS svn_files)
|
|
||||||
if(EXISTS "${file}")
|
|
||||||
set(${out_var} "${file}" PARENT_SCOPE)
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
else()
|
|
||||||
find_package(Git)
|
find_package(Git)
|
||||||
if(GIT_FOUND)
|
if(GIT_FOUND)
|
||||||
execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --git-dir
|
execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --git-dir
|
||||||
|
@ -2129,5 +2117,4 @@ function(find_first_existing_vc_file path out_var)
|
||||||
set(${out_var} "${git_dir}/logs/HEAD" PARENT_SCOPE)
|
set(${out_var} "${git_dir}/logs/HEAD" PARENT_SCOPE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
Loading…
Reference in New Issue