Only include date in full version signature if not in a release

Mon, 22 Jun 2015 02:27:26 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Mon, 22 Jun 2015 02:27:26 +0300
changeset 57
3003661011d2
parent 56
bdbbde5f754e
child 58
6a70b2390f75

Only include date in full version signature if not in a release

commonlib/version.cpp file | annotate | diff | comparison | revisions
--- a/commonlib/version.cpp	Mon Jun 22 01:44:30 2015 +0300
+++ b/commonlib/version.cpp	Mon Jun 22 02:27:26 2015 +0300
@@ -45,11 +45,11 @@
 
 QString versionSignature()
 {
-#ifdef HG_DATE_STRING
+#if defined (HG_DATE_STRING) && !defined (RELEASE)
 # define DATE_INFO " (" HG_DATE_STRING ")"
 #else
 # define DATE_INFO ""
 #endif
 
 	return QString (APPNAME) + " " + versionString() + DATE_INFO;
-}
\ No newline at end of file
+}

mercurial