diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2014-01-23 15:57:47 -0500 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2014-01-23 15:57:47 -0500 |
commit | d2c72da610074afe95959094a11f95b29a741f29 (patch) | |
tree | 78bb5ef9964990a91de94e1a80a68408245ac16e /cmake | |
parent | 9d5c3731be1395bd19329443e680db11545bb5c4 (diff) | |
download | mariadb-git-d2c72da610074afe95959094a11f95b29a741f29.tar.gz |
The bzr revision visible in @@version_comment should
represent the last merged revision from codership branch
and not the revision of the MGC tree itself.
Fixed by adding a cmake variable to hold the revision
number of last merged revision from codership branch.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/wsrep.cmake | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/cmake/wsrep.cmake b/cmake/wsrep.cmake index 91b3524c199..849da4e555d 100644 --- a/cmake/wsrep.cmake +++ b/cmake/wsrep.cmake @@ -20,24 +20,15 @@ # Set the patch version SET(WSREP_PATCH_VERSION "9") -# Obtain patch revision number: -# The script tries to probe the bzr revision number using $ENV{WSREP_REV}, and -# "bzr revno" if the WSREP_REV is not defined. In case both fail, the revision -# information is not appended to the wsrep patch version. +# MariaDB addition: Revision number of the last revision merged from +# codership branch visible in @@visible_comment. +# Branch : codership-mysql/5.5 +SET(WSREP_PATCH_REVNO "3932") # Should be updated on every merge. -# 1: $ENV{WSREP_REV} -SET(WSREP_PATCH_REVNO $ENV{WSREP_REV}) - -# 2: bzr revno -IF(NOT WSREP_PATCH_REVNO) - EXECUTE_PROCESS( - COMMAND bzr revno - OUTPUT_VARIABLE WSREP_PATCH_REVNO - RESULT_VARIABLE RESULT - ) - -STRING(REGEX REPLACE "(\r?\n)+$" "" WSREP_PATCH_REVNO "${WSREP_PATCH_REVNO}") -#FILE(WRITE "wsrep_config" "Debug: WSREP_PATCH_REVNO result: ${RESULT}\n") +# MariaDB: Obtain patch revision number: +# Update WSREP_PATCH_REVNO if WSREP_REV environment variable is set. +IF (DEFINED ENV{WSREP_REV}) + SET(WSREP_PATCH_REVNO $ENV{WSREP_REV}) ENDIF() # Obtain wsrep API version |