535
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2011 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
"{ Package: 'stx:goodies/monticello' }"
|
|
13 |
|
|
14 |
VersionInfo subclass:#MCStxVersionInfo
|
|
15 |
instanceVariableNames:'uuid'
|
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
687
|
18 |
category:'SCM-Monticello-St/X support'
|
535
|
19 |
!
|
|
20 |
|
|
21 |
!MCStxVersionInfo class methodsFor:'documentation'!
|
|
22 |
|
|
23 |
copyright
|
|
24 |
"
|
|
25 |
COPYRIGHT (c) 2011 by eXept Software AG
|
|
26 |
All Rights Reserved
|
|
27 |
|
|
28 |
This software is furnished under a license and may be used
|
|
29 |
only in accordance with the terms of that license and with the
|
|
30 |
inclusion of the above copyright notice. This software may not
|
|
31 |
be provided or otherwise made available to, or used by, any
|
|
32 |
other person. No title to or ownership of the software is
|
|
33 |
hereby transferred.
|
|
34 |
"
|
|
35 |
!
|
|
36 |
|
|
37 |
documentation
|
|
38 |
"
|
|
39 |
versionInfo as used in st/x.
|
|
40 |
Named as it is, because MCVersionInfo already exists with completely different
|
|
41 |
use & semantics.
|
|
42 |
"
|
|
43 |
! !
|
|
44 |
|
|
45 |
!MCStxVersionInfo class methodsFor:'instance creation'!
|
|
46 |
|
|
47 |
fromMCVersionString:aString
|
|
48 |
"{ Pragma: +optSpace }"
|
|
49 |
|
|
50 |
|words info t|
|
|
51 |
|
|
52 |
info := self new.
|
|
53 |
|
|
54 |
words := aString asCollectionOfWords.
|
|
55 |
info revision:(words first).
|
|
56 |
info uuid:(UUID fromString:words second).
|
|
57 |
t := (Timestamp readIso8601FormatFrom:(words third)).
|
|
58 |
info date:(t asDate).
|
|
59 |
info time:(t asTime).
|
|
60 |
info user:(words at:4 ifAbsent:'?').
|
|
61 |
^ info
|
|
62 |
|
|
63 |
"Created: / 04-12-2011 / 10:04:30 / cg"
|
|
64 |
! !
|
|
65 |
|
|
66 |
!MCStxVersionInfo methodsFor:'accessing'!
|
|
67 |
|
|
68 |
uuid
|
|
69 |
^ uuid
|
|
70 |
!
|
|
71 |
|
|
72 |
uuid:something
|
|
73 |
uuid := something.
|
|
74 |
! !
|
|
75 |
|
|
76 |
!MCStxVersionInfo class methodsFor:'documentation'!
|
|
77 |
|
|
78 |
version
|
687
|
79 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCStxVersionInfo.st,v 1.2 2012-09-11 21:29:20 cg Exp $'
|
535
|
80 |
!
|
|
81 |
|
|
82 |
version_CVS
|
687
|
83 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCStxVersionInfo.st,v 1.2 2012-09-11 21:29:20 cg Exp $'
|
535
|
84 |
! !
|