Changeset: 9cdd7d7fee00 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9cdd7d7fee00
Modified Files:
        common/utils/GenerateVersionHeader.cmake
Branch: Aug2024
Log Message:

Cmake's REGEX REPLACE matches too much.


diffs (12 lines):

diff --git a/common/utils/GenerateVersionHeader.cmake 
b/common/utils/GenerateVersionHeader.cmake
--- a/common/utils/GenerateVersionHeader.cmake
+++ b/common/utils/GenerateVersionHeader.cmake
@@ -11,7 +11,7 @@ if(EXISTS "${DIR}/.hg_archival.txt")
       set(MERCURIAL_ID "${HG_NODE}")
     endif()
     if(HG_ARCHIVAL MATCHES ".*branch:.*")
-      string(REGEX REPLACE ".*branch: (.*)" "\\1" HG_BRANCH "${HG_ARCHIVAL}")
+      string(REGEX REPLACE ".*branch: ([-._A-Za-z0-9]*).*" "\\1" HG_BRANCH 
"${HG_ARCHIVAL}")
       set(MERCURIAL_BRANCH "${HG_BRANCH}")
     endif()
   else()
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to