36
|
1 |
"{ Package: 'stx:goodies/monticello' }"
|
|
2 |
|
|
3 |
MCWriter subclass:#MCVersionInfoWriter
|
|
4 |
instanceVariableNames:'written'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Monticello-Storing'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!MCVersionInfoWriter methodsFor:'as yet unclassified'!
|
|
12 |
|
|
13 |
isWritten: aVersionInfo
|
|
14 |
^ self written includes: aVersionInfo
|
|
15 |
!
|
|
16 |
|
|
17 |
writeVersionInfo: aVersionInfo
|
|
18 |
(self isWritten: aVersionInfo)
|
|
19 |
ifTrue: [^ stream nextPutAll: '(id ', aVersionInfo id asString printString, ')'].
|
|
20 |
stream nextPut: $(.
|
|
21 |
#(name message id date time author)
|
|
22 |
do: [:sel |
|
|
23 |
stream nextPutAll: sel.
|
|
24 |
stream nextPut: $ .
|
|
25 |
((aVersionInfo perform: sel) ifNil: ['']) asString printOn: stream.
|
|
26 |
stream nextPut: $ ].
|
|
27 |
stream nextPutAll: 'ancestors ('.
|
|
28 |
aVersionInfo ancestors do: [:ea | self writeVersionInfo: ea].
|
|
29 |
stream nextPutAll: ') stepChildren ('.
|
|
30 |
aVersionInfo stepChildren do: [:ea | self writeVersionInfo: ea].
|
|
31 |
stream nextPutAll: '))'.
|
|
32 |
self wrote: aVersionInfo
|
|
33 |
!
|
|
34 |
|
|
35 |
written
|
|
36 |
^ written ifNil: [written _ Set new]
|
|
37 |
!
|
|
38 |
|
|
39 |
wrote: aVersionInfo
|
|
40 |
self written add: aVersionInfo
|
|
41 |
! !
|
|
42 |
|
|
43 |
!MCVersionInfoWriter class methodsFor:'documentation'!
|
|
44 |
|
|
45 |
version
|
|
46 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCVersionInfoWriter.st,v 1.1 2006-11-22 13:05:22 cg Exp $'
|
|
47 |
! !
|