-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into fix_recover_hnsw
- Loading branch information
Showing
689 changed files
with
59,154 additions
and
54,969 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,15 +68,25 @@ execute_process( | |
OUTPUT_VARIABLE GIT_BRANCH_NAME | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
execute_process( | ||
COMMAND "${GIT_EXECUTABLE}" rev-parse HEAD | ||
OUTPUT_VARIABLE GIT_COMMIT_ID | ||
COMMAND "${GIT_EXECUTABLE}" describe --tags --abbrev=0 | ||
OUTPUT_VARIABLE GIT_TAG | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
execute_process( | ||
COMMAND "${GIT_EXECUTABLE}" rev-list --count "${GIT_TAG}..HEAD" | ||
OUTPUT_VARIABLE COMMIT_COUNT | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
execute_process( | ||
COMMAND "${GIT_EXECUTABLE}" rev-parse --short HEAD | ||
OUTPUT_VARIABLE HEAD_COMMIT_ID | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
|
||
set(GIT_COMMIT_ID "${GIT_TAG}-${COMMIT_COUNT}-${HEAD_COMMIT_ID}") | ||
if("${GIT_BRANCH_NAME}" STREQUAL "") | ||
message(WARNING "Branch name not found.") | ||
else() | ||
message(STATUS "Branch name = ${GIT_BRANCH_NAME}") | ||
endif() | ||
if("${GIT_COMMIT_ID}" STREQUAL "") | ||
if("${HEAD_COMMIT_ID}" STREQUAL "") | ||
message(WARNING "Commit id not found.") | ||
else() | ||
message(STATUS "Commit-id = ${GIT_COMMIT_ID}") | ||
|
@@ -260,7 +270,7 @@ if(DEFINED CPACK_PACKAGE_VERSION) | |
string(REPLACE "-" "." CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}") | ||
endif() | ||
if(NOT DEFINED CPACK_PACKAGE_VERSION OR CPACK_PACKAGE_VERSION STREQUAL "") | ||
set(CPACK_PACKAGE_VERSION "0.5.2") | ||
set(CPACK_PACKAGE_VERSION "${GIT_COMMIT_ID}") | ||
endif() | ||
set(CPACK_PACKAGE_RELEASE 1) | ||
set(CPACK_PACKAGE_CONTACT "Zhichang Yu <[email protected]>") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.