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}")
|
||||
return()
|
||||
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)
|
||||
if(GIT_FOUND)
|
||||
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)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
|
|
Loading…
Reference in New Issue