author | Jan Vrany <jan.vrany@labware.com> |
Tue, 11 Jul 2023 12:59:07 +0100 | |
branch | jv |
changeset 1174 | f0a16c301971 |
parent 1095 | 87f223484bc3 |
permissions | -rw-r--r-- |
1095
87f223484bc3
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1003
diff
changeset
|
1 |
"{ Encoding: utf8 }" |
87f223484bc3
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1003
diff
changeset
|
2 |
|
268 | 3 |
"{ Package: 'stx:goodies/monticello' }" |
4 |
||
999
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
5 |
"{ NameSpace: Smalltalk }" |
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
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 |
||
1003
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
999
diff
changeset
|
28 |
ancestors isNil ifTrue: |
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
999
diff
changeset
|
29 |
[ancestorsProps notNil ifTrue: |
268 | 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>" |
|
1003
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
999
diff
changeset
|
35 |
"Modified: / 07-09-2015 / 15:45:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
268 | 36 |
! |
37 |
||
38 |
stepChildren |
|
39 |
||
40 |
stepChildren ifNil: |
|
41 |
[stepChildrenProps ifNotNil: |
|
42 |
[stepChildren := stepChildrenProps collect:[:p|MCLazyVersionInfo withProperties:p]. |
|
43 |
stepChildrenProps := nil]]. |
|
44 |
^super stepChildren |
|
45 |
||
46 |
"Created: / 28-10-2010 / 17:52:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
47 |
! ! |
|
48 |
||
49 |
!MCLazyVersionInfo methodsFor:'initialization'! |
|
50 |
||
51 |
initializeWithProperties: dict |
|
52 |
||
53 |
name:= (dict at: #name ifAbsent: ['']). |
|
54 |
id:= (UUID fromString: (dict at: #id)). |
|
55 |
message:= (dict at: #message ifAbsent: ['']). |
|
56 |
date:= ([Date fromString: (dict at: #date) ] on: Error do: [ :ex | ex return: nil ]). |
|
57 |
time:= ([ Time fromString:(dict at: #time)] on: Error do: [ :ex | ex return: nil ]). |
|
58 |
author:= (dict at: #author ifAbsent: ['']). |
|
59 |
||
999
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
60 |
(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
|
61 |
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
|
62 |
ancestors := nil. |
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
63 |
]. |
268 | 64 |
stepChildrenProps:= dict at: #stepChildren ifAbsent: [#()]. |
65 |
||
66 |
"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
|
67 |
"Modified: / 12-05-2015 / 01:05:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
268 | 68 |
! ! |
69 |
||
70 |
!MCLazyVersionInfo class methodsFor:'documentation'! |
|
71 |
||
72 |
version |
|
635 | 73 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCLazyVersionInfo.st,v 1.3 2012-09-11 21:22:41 cg Exp $' |
268 | 74 |
! |
75 |
||
76 |
version_CVS |
|
635 | 77 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCLazyVersionInfo.st,v 1.3 2012-09-11 21:22:41 cg Exp $' |
268 | 78 |
! |
79 |
||
999
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
80 |
version_HG |
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 |
^ '$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
|
83 |
! |
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
84 |
|
268 | 85 |
version_SVN |
1095
87f223484bc3
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1003
diff
changeset
|
86 |
^ '§Id: MCLazyVersionInfo.st 23 2010-10-29 14:41:24Z vranyj1 §' |
268 | 87 |
! ! |
999
679cac09d882
Fix in MCLazyVersionInfo: set ancestor instvar to nil when initializing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
635
diff
changeset
|
88 |