class: VersionInfo
authorClaus Gittinger <cg@exept.de>
Sat, 29 Nov 2014 03:05:30 +0100
changeset 3662 576a064f048e
parent 3661 ce825c324ef7
child 3663 4cd9f90aaad3
class: VersionInfo added: #symbolicVersionName
VersionInfo.st
--- a/VersionInfo.st	Fri Nov 28 20:39:13 2014 +0100
+++ b/VersionInfo.st	Sat Nov 29 03:05:30 2014 +0100
@@ -153,6 +153,17 @@
     revision := something.
 !
 
+symbolicVersionName
+    "iff that source code manager uses cryptic names for versions,
+     (eg. dbManager, git and hg managers), we may add an additional symbolic
+     version name, which is used for human readers (and not required to be unique).
+     Usually something like x.y-nn, where nn is the user name is returned there.
+     Here, we return the revision proper, which is ok for cvs, svn and others with a 
+     user-friendly version number."
+
+    ^ revision
+!
+
 time
     ^ time
 !
@@ -186,7 +197,11 @@
 
 !VersionInfo class methodsFor:'documentation'!
 
+version
+    ^ '$Header: /cvs/stx/stx/libbasic3/VersionInfo.st,v 1.9 2014-11-29 02:05:30 cg Exp $'
+!
+
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic3/VersionInfo.st,v 1.8 2014-11-28 17:28:19 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic3/VersionInfo.st,v 1.9 2014-11-29 02:05:30 cg Exp $'
 ! !