Commit d2c72da6 authored by Nirbhay Choubey's avatar Nirbhay Choubey

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.
parent 9d5c3731
...@@ -20,24 +20,15 @@ ...@@ -20,24 +20,15 @@
# Set the patch version # Set the patch version
SET(WSREP_PATCH_VERSION "9") SET(WSREP_PATCH_VERSION "9")
# Obtain patch revision number: # MariaDB addition: Revision number of the last revision merged from
# The script tries to probe the bzr revision number using $ENV{WSREP_REV}, and # codership branch visible in @@visible_comment.
# "bzr revno" if the WSREP_REV is not defined. In case both fail, the revision # Branch : codership-mysql/5.5
# information is not appended to the wsrep patch version. SET(WSREP_PATCH_REVNO "3932") # Should be updated on every merge.
# 1: $ENV{WSREP_REV} # MariaDB: Obtain patch revision number:
SET(WSREP_PATCH_REVNO $ENV{WSREP_REV}) # Update WSREP_PATCH_REVNO if WSREP_REV environment variable is set.
IF (DEFINED ENV{WSREP_REV})
# 2: bzr revno SET(WSREP_PATCH_REVNO $ENV{WSREP_REV})
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")
ENDIF() ENDIF()
# Obtain wsrep API version # Obtain wsrep API version
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment