author | HG Automerge |
Thu, 24 Nov 2016 21:56:31 +0000 | |
branch | jv |
changeset 1015 | 7b6393ea3d52 |
parent 1003 | 0ebeea1cdeeb |
child 1095 | 87f223484bc3 |
permissions | -rw-r--r-- |
268 | 1 |
"{ Package: 'stx:goodies/monticello' }" |
2 |
||
999
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
3 |
"{ NameSpace: Smalltalk }" |
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
4 |
|
268 | 5 |
MCVersionInfo subclass:#MCLazyVersionInfo |
6 |
instanceVariableNames:'ancestorsProps stepChildrenProps' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
635 | 9 |
category:'SCM-Monticello-St/X support' |
268 | 10 |
! |
11 |
||
12 |
||
13 |
!MCLazyVersionInfo class methodsFor:'instance creation'! |
|
14 |
||
15 |
withProperties: properties |
|
16 |
||
17 |
^self new initializeWithProperties: properties |
|
18 |
||
19 |
"Created: / 28-10-2010 / 15:34:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
20 |
! ! |
|
21 |
||
22 |
!MCLazyVersionInfo methodsFor:'accessing'! |
|
23 |
||
24 |
ancestors |
|
25 |
||
1003
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
999
diff
changeset
|
26 |
ancestors isNil ifTrue: |
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
999
diff
changeset
|
27 |
[ancestorsProps notNil ifTrue: |
268 | 28 |
[ancestors := ancestorsProps collect:[:p|MCLazyVersionInfo withProperties:p]. |
29 |
ancestorsProps := nil]]. |
|
30 |
^super ancestors |
|
31 |
||
32 |
"Created: / 28-10-2010 / 17:51:41 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1003
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
999
diff
changeset
|
33 |
"Modified: / 07-09-2015 / 15:45:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
268 | 34 |
! |
35 |
||
36 |
stepChildren |
|
37 |
||
38 |
stepChildren ifNil: |
|
39 |
[stepChildrenProps ifNotNil: |
|
40 |
[stepChildren := stepChildrenProps collect:[:p|MCLazyVersionInfo withProperties:p]. |
|
41 |
stepChildrenProps := nil]]. |
|
42 |
^super stepChildren |
|
43 |
||
44 |
"Created: / 28-10-2010 / 17:52:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
45 |
! ! |
|
46 |
||
47 |
!MCLazyVersionInfo methodsFor:'initialization'! |
|
48 |
||
49 |
initializeWithProperties: dict |
|
50 |
||
51 |
name:= (dict at: #name ifAbsent: ['']). |
|
52 |
id:= (UUID fromString: (dict at: #id)). |
|
53 |
message:= (dict at: #message ifAbsent: ['']). |
|
54 |
date:= ([Date fromString: (dict at: #date) ] on: Error do: [ :ex | ex return: nil ]). |
|
55 |
time:= ([ Time fromString:(dict at: #time)] on: Error do: [ :ex | ex return: nil ]). |
|
56 |
author:= (dict at: #author ifAbsent: ['']). |
|
57 |
||
999
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
58 |
(dict includesKey: #ancestors) ifTrue:[ |
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
59 |
ancestorsProps:= dict at: #ancestors. |
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
60 |
ancestors := nil. |
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
61 |
]. |
268 | 62 |
stepChildrenProps:= dict at: #stepChildren ifAbsent: [#()]. |
63 |
||
64 |
"Created: / 28-10-2010 / 15:36:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
999
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
65 |
"Modified: / 12-05-2015 / 01:05:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
268 | 66 |
! ! |
67 |
||
68 |
!MCLazyVersionInfo class methodsFor:'documentation'! |
|
69 |
||
70 |
version |
|
635 | 71 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCLazyVersionInfo.st,v 1.3 2012-09-11 21:22:41 cg Exp $' |
268 | 72 |
! |
73 |
||
74 |
version_CVS |
|
635 | 75 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCLazyVersionInfo.st,v 1.3 2012-09-11 21:22:41 cg Exp $' |
268 | 76 |
! |
77 |
||
999
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
78 |
version_HG |
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
79 |
|
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
80 |
^ '$Changeset: <not expanded> $' |
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
81 |
! |
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
82 |
|
268 | 83 |
version_SVN |
84 |
^ '§Id: MCLazyVersionInfo.st 23 2010-10-29 14:41:24Z vranyj1 §' |
|
85 |
! ! |
|
999
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
86 |