1027
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
268
|
3 |
"{ Package: 'stx:goodies/monticello' }"
|
|
4 |
|
1027
|
5 |
"{ NameSpace: Smalltalk }"
|
|
6 |
|
268
|
7 |
MCVersionInfo subclass:#MCLazyVersionInfo
|
|
8 |
instanceVariableNames:'ancestorsProps stepChildrenProps'
|
|
9 |
classVariableNames:''
|
|
10 |
poolDictionaries:''
|
635
|
11 |
category:'SCM-Monticello-St/X support'
|
268
|
12 |
!
|
|
13 |
|
|
14 |
|
|
15 |
!MCLazyVersionInfo class methodsFor:'instance creation'!
|
|
16 |
|
|
17 |
withProperties: properties
|
|
18 |
|
|
19 |
^self new initializeWithProperties: properties
|
|
20 |
|
|
21 |
"Created: / 28-10-2010 / 15:34:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
22 |
! !
|
|
23 |
|
|
24 |
!MCLazyVersionInfo methodsFor:'accessing'!
|
|
25 |
|
|
26 |
ancestors
|
|
27 |
|
|
28 |
ancestors ifNil:
|
|
29 |
[ancestorsProps ifNotNil:
|
|
30 |
[ancestors := ancestorsProps collect:[:p|MCLazyVersionInfo withProperties:p].
|
|
31 |
ancestorsProps := nil]].
|
|
32 |
^super ancestors
|
|
33 |
|
|
34 |
"Created: / 28-10-2010 / 17:51:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
35 |
!
|
|
36 |
|
1027
|
37 |
species
|
|
38 |
"Make this class equivalent to a MCVersionInfo in all regards."
|
|
39 |
|
|
40 |
^ self class superclass
|
|
41 |
!
|
|
42 |
|
268
|
43 |
stepChildren
|
|
44 |
|
|
45 |
stepChildren ifNil:
|
|
46 |
[stepChildrenProps ifNotNil:
|
|
47 |
[stepChildren := stepChildrenProps collect:[:p|MCLazyVersionInfo withProperties:p].
|
|
48 |
stepChildrenProps := nil]].
|
|
49 |
^super stepChildren
|
|
50 |
|
|
51 |
"Created: / 28-10-2010 / 17:52:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
52 |
! !
|
|
53 |
|
|
54 |
!MCLazyVersionInfo methodsFor:'initialization'!
|
|
55 |
|
|
56 |
initializeWithProperties: dict
|
|
57 |
|
|
58 |
name:= (dict at: #name ifAbsent: ['']).
|
|
59 |
id:= (UUID fromString: (dict at: #id)).
|
|
60 |
message:= (dict at: #message ifAbsent: ['']).
|
|
61 |
date:= ([Date fromString: (dict at: #date) ] on: Error do: [ :ex | ex return: nil ]).
|
|
62 |
time:= ([ Time fromString:(dict at: #time)] on: Error do: [ :ex | ex return: nil ]).
|
|
63 |
author:= (dict at: #author ifAbsent: ['']).
|
|
64 |
|
|
65 |
ancestorsProps:= dict at: #ancestors ifAbsent:[#()].
|
|
66 |
stepChildrenProps:= dict at: #stepChildren ifAbsent: [#()].
|
|
67 |
|
|
68 |
"Created: / 28-10-2010 / 15:36:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
69 |
"Modified: / 28-10-2010 / 17:49:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
70 |
! !
|
|
71 |
|
|
72 |
!MCLazyVersionInfo class methodsFor:'documentation'!
|
|
73 |
|
|
74 |
version
|
1027
|
75 |
^ '$Header$'
|
268
|
76 |
!
|
|
77 |
|
|
78 |
version_CVS
|
1027
|
79 |
^ '$Header$'
|
268
|
80 |
!
|
|
81 |
|
|
82 |
version_SVN
|
1027
|
83 |
^ '$Id$'
|
268
|
84 |
! !
|
1027
|
85 |
|