author | Patrik Svestka <patrik.svestka@gmail.com> |
Wed, 17 Feb 2021 15:24:09 +0100 | |
branch | jv |
changeset 4568 | 524471ef6575 |
parent 4330 | 998eb03f0736 |
permissions | -rw-r--r-- |
3 | 1 |
" |
2 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
4330 | 3 |
COPYRIGHT (c) 2015 Jan Vrany |
38 | 4 |
All Rights Reserved |
3 | 5 |
|
6 |
This software is furnished under a license and may be used |
|
7 |
only in accordance with the terms of that license and with the |
|
8 |
inclusion of the above copyright notice. This software may not |
|
9 |
be provided or otherwise made available to, or used by, any |
|
10 |
other person. No title to or ownership of the software is |
|
11 |
hereby transferred. |
|
12 |
" |
|
932 | 13 |
"{ Package: 'stx:libbasic3' }" |
14 |
||
4015 | 15 |
"{ NameSpace: Smalltalk }" |
16 |
||
0 | 17 |
Object subclass:#Change |
2489 | 18 |
instanceVariableNames:'source timeOfChangeIfKnown mcDefinition' |
235 | 19 |
classVariableNames:'' |
20 |
poolDictionaries:'' |
|
21 |
category:'System-Changes' |
|
0 | 22 |
! |
23 |
||
633 | 24 |
!Change class methodsFor:'documentation'! |
9 | 25 |
|
26 |
copyright |
|
27 |
" |
|
28 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
4330 | 29 |
COPYRIGHT (c) 2015 Jan Vrany |
38 | 30 |
All Rights Reserved |
9 | 31 |
|
32 |
This software is furnished under a license and may be used |
|
33 |
only in accordance with the terms of that license and with the |
|
34 |
inclusion of the above copyright notice. This software may not |
|
35 |
be provided or otherwise made available to, or used by, any |
|
36 |
other person. No title to or ownership of the software is |
|
37 |
hereby transferred. |
|
38 |
" |
|
39 |
! |
|
40 |
||
41 |
documentation |
|
42 |
" |
|
43 |
abstract superclass for all kind of changes - managed in changeSets. |
|
235 | 44 |
|
2513 | 45 |
[instance variables:] |
46 |
mcDefinition .... prep for monticello |
|
47 |
||
235 | 48 |
[author:] |
49 |
Claus Gittinger |
|
9 | 50 |
" |
51 |
! ! |
|
52 |
||
1510 | 53 |
!Change class methodsFor:'support'! |
54 |
||
55 |
isSource:source1Arg sameSourceAs:source2Arg |
|
56 |
"return true, if the given sources are the same, ignoring tabs and whitespace differences." |
|
57 |
||
3136 | 58 |
|source1 source2 tSource1 tSource2| |
1510 | 59 |
|
60 |
source1 := source1Arg. |
|
61 |
source2 := source2Arg. |
|
62 |
||
63 |
source1 = source2 ifTrue:[^ true]. |
|
2507
d657fabea438
changed: #isSource:sameSourceAs:
Claus Gittinger <cg@exept.de>
parents:
2494
diff
changeset
|
64 |
source1 isNil ifTrue:[^ false]. |
d657fabea438
changed: #isSource:sameSourceAs:
Claus Gittinger <cg@exept.de>
parents:
2494
diff
changeset
|
65 |
source2 isNil ifTrue:[^ false]. |
1510 | 66 |
|
67 |
source1 := source1 withoutTrailingSeparators asCollectionOfLines. |
|
68 |
source2 := source2 withoutTrailingSeparators asCollectionOfLines. |
|
3874
f373ac106d3d
Fix in Change: care for empty sources passed to #isSource:sameSourceAs:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3862
diff
changeset
|
69 |
[source1 notEmptyOrNil and:[ source1 last isEmptyOrNil]] whileTrue:[ source1 removeLast ]. |
f373ac106d3d
Fix in Change: care for empty sources passed to #isSource:sameSourceAs:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3862
diff
changeset
|
70 |
[source2 notEmptyOrNil and:[ source2 last isEmptyOrNil]] whileTrue:[ source2 removeLast ]. |
3136 | 71 |
|
1510 | 72 |
source1 size ~~ source2 size ifTrue:[^ false]. |
3136 | 73 |
source1 = source2 ifTrue:[^ true]. |
74 |
||
75 |
tSource1 := source1 collect:[:line | (line withTabsExpanded:8) withoutTrailingSeparators]. |
|
76 |
tSource2 := source2 collect:[:line | (line withTabsExpanded:8) withoutTrailingSeparators]. |
|
77 |
tSource1 = tSource2 ifTrue:[^ true]. |
|
78 |
||
79 |
"/ how about that one? |
|
80 |
"/ tSource1 := source1 collect:[:line | line withoutLeadingSeparators withoutTrailingSeparators]. |
|
81 |
"/ tSource2 := source2 collect:[:line | line withoutLeadingSeparators withoutTrailingSeparators]. |
|
82 |
"/ tSource1 = tSource2 ifTrue:[^ true]. |
|
83 |
||
84 |
^ false. |
|
1510 | 85 |
|
86 |
"Created: / 25-07-2006 / 11:22:21 / cg" |
|
3874
f373ac106d3d
Fix in Change: care for empty sources passed to #isSource:sameSourceAs:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3862
diff
changeset
|
87 |
"Modified: / 21-05-2015 / 13:30:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1510 | 88 |
! ! |
89 |
||
647 | 90 |
!Change methodsFor:'accessing'! |
91 |
||
850 | 92 |
changeClass |
93 |
"the class of the change (nil if not present)" |
|
94 |
||
95 |
^ nil |
|
96 |
||
97 |
! |
|
98 |
||
2378 | 99 |
changeLanguage |
2844 | 100 |
"Answer the programming language of the receiver. |
101 |
Since changesets are currently only supported for Smalltalk, |
|
102 |
return SmalltalkLanguage unconditionally" |
|
2378 | 103 |
|
2844 | 104 |
^ SmalltalkLanguage instance |
2378 | 105 |
|
2844 | 106 |
"Modified (comment): / 25-07-2012 / 17:40:47 / cg" |
2378 | 107 |
! |
108 |
||
850 | 109 |
changeSelector |
2844 | 110 |
"the selector, if it is a method change. Nil oherwise" |
111 |
||
850 | 112 |
^ nil |
113 |
||
2844 | 114 |
"Created: / 06-02-1998 / 13:29:35 / cg" |
850 | 115 |
! |
116 |
||
2471 | 117 |
changeSource |
2844 | 118 |
"Return the source of the change" |
2471 | 119 |
|
120 |
^ self source |
|
121 |
||
122 |
"Created: / 19-07-2011 / 19:03:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2844 | 123 |
"Modified (comment): / 25-07-2012 / 17:39:24 / cg" |
2471 | 124 |
! |
125 |
||
647 | 126 |
className |
127 |
"the className of the change" |
|
128 |
||
129 |
^ nil |
|
130 |
||
131 |
"Modified: / 15.7.1996 / 09:26:34 / cg" |
|
132 |
"Created: / 6.2.1998 / 13:06:56 / cg" |
|
133 |
! |
|
134 |
||
2378 | 135 |
delta |
3862
476566b38577
Make Change>>delta an obsolete.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3838
diff
changeset
|
136 |
<resource: #obsolete> |
2378 | 137 |
"Returns a delta to current state as symbol: |
138 |
#+ .....the subject is to be added to the image (new) |
|
139 |
#- .....the subject is to be removed from the image (old) |
|
140 |
#= .....the image is up to date |
|
141 |
#~ .....change version and image version differ |
|
142 |
#? .....delta is unknown or N/A for this kind of change |
|
143 |
" |
|
144 |
||
3862
476566b38577
Make Change>>delta an obsolete.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3838
diff
changeset
|
145 |
^ self deltaDetail shortDeltaSymbol |
2494 | 146 |
|
147 |
"Modified (comment): / 31-08-2011 / 10:29:47 / cg" |
|
3862
476566b38577
Make Change>>delta an obsolete.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3838
diff
changeset
|
148 |
"Modified: / 23-04-2015 / 10:38:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2494 | 149 |
! |
150 |
||
151 |
deltaDetail |
|
152 |
"Returns a delta to the current state as a ChangeDelta object" |
|
153 |
||
154 |
^ ChangeDeltaInformation unknown "We don't know how to compute delta for generic change" |
|
155 |
||
156 |
"Created: / 31-08-2011 / 09:59:15 / cg" |
|
2378 | 157 |
! |
158 |
||
909 | 159 |
file |
160 |
^ nil "/ to be added as instvar |
|
161 |
! |
|
162 |
||
163 |
file:aFile position:anInteger |
|
164 |
^ self "/ to be added |
|
165 |
! |
|
166 |
||
2471 | 167 |
imageSource |
2844 | 168 |
"Return the source of the in-image version |
169 |
or nil if there is no source for this change" |
|
2471 | 170 |
|
2844 | 171 |
^ nil |
2471 | 172 |
|
173 |
"Created: / 19-07-2011 / 11:58:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2844 | 174 |
"Modified (format): / 25-07-2012 / 17:37:23 / cg" |
2471 | 175 |
! |
176 |
||
2816 | 177 |
nameSpaceOverride:ns |
178 |
||
179 |
"Created: / 20-03-2012 / 17:18:17 / cg" |
|
180 |
! |
|
181 |
||
2411 | 182 |
nonMetaClassName |
183 |
||
184 |
^nil |
|
185 |
||
186 |
"Created: / 26-11-2009 / 16:14:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
187 |
! |
|
188 |
||
909 | 189 |
objectType:aSymbol |
190 |
^ self "/ to be added as instvar |
|
191 |
! |
|
192 |
||
2287 | 193 |
package |
194 |
^ nil |
|
195 |
! |
|
196 |
||
1052 | 197 |
prettyPrintedSource |
198 |
"return the prettyPrinted or normal source of the change" |
|
199 |
||
200 |
^ self source |
|
201 |
! |
|
202 |
||
647 | 203 |
selector |
204 |
^ nil |
|
205 |
||
206 |
"Created: / 6.2.1998 / 13:29:35 / cg" |
|
787 | 207 |
! |
208 |
||
209 |
source |
|
210 |
"return the source of the change" |
|
211 |
||
1096 | 212 |
|s| |
213 |
||
214 |
source isNil ifTrue:[ |
|
1385
495fc9f2c9da
replaced '' writeStream by String writeStream
Claus Gittinger <cg@exept.de>
parents:
1290
diff
changeset
|
215 |
s := String writeStream. |
1096 | 216 |
self printOn:s. |
217 |
^ s contents. |
|
218 |
]. |
|
787 | 219 |
^ source |
220 |
||
221 |
"Modified: 15.7.1996 / 09:26:34 / cg" |
|
222 |
! |
|
223 |
||
224 |
source:someString |
|
225 |
"set the source of the change" |
|
226 |
||
1290 | 227 |
"/ debugging only ... |
228 |
someString isString ifFalse:[ |
|
229 |
(someString respondsTo:#string) ifFalse:[ |
|
230 |
self halt:'argument should be string-like' |
|
231 |
] |
|
232 |
]. |
|
787 | 233 |
source := someString |
234 |
||
235 |
"Modified: / 15.7.1996 / 09:26:34 / cg" |
|
236 |
"Created: / 16.2.1998 / 13:05:16 / cg" |
|
1147 | 237 |
! |
238 |
||
239 |
timeOfChangeIfKnown |
|
240 |
^ timeOfChangeIfKnown |
|
241 |
! |
|
242 |
||
243 |
timeStamp:aTimestamp |
|
244 |
timeOfChangeIfKnown := aTimestamp |
|
647 | 245 |
! ! |
246 |
||
849 | 247 |
!Change methodsFor:'applying'! |
248 |
||
249 |
apply |
|
250 |
"apply the change" |
|
251 |
||
252 |
self subclassResponsibility |
|
1873
2cbdfc5da6d7
changes for compare-project functionality
Claus Gittinger <cg@exept.de>
parents:
1868
diff
changeset
|
253 |
|
2cbdfc5da6d7
changes for compare-project functionality
Claus Gittinger <cg@exept.de>
parents:
1868
diff
changeset
|
254 |
"Modified: / 13-10-2006 / 00:41:05 / cg" |
3461 | 255 |
! |
256 |
||
257 |
applyWithNameSpaceOverride: nameSpaceOrNameSpaceName |
|
258 |
"Apply the change, overriding a namespace to given one" |
|
259 |
||
260 |
self apply |
|
261 |
||
262 |
"Created: / 04-02-2014 / 18:21:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
849 | 263 |
! ! |
264 |
||
1234 | 265 |
!Change methodsFor:'change notification'! |
266 |
||
267 |
sendChangeNotificationThroughSmalltalk |
|
268 |
"intentionally left blank" |
|
269 |
! ! |
|
270 |
||
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
271 |
!Change methodsFor:'comparing'! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
272 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
273 |
isForSameAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
274 |
"return true, if the given change represents a change for the same |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
275 |
thingy as the receiver (i.e. same method, same definition etc.)." |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
276 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
277 |
^ false |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
278 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
279 |
! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
280 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
281 |
sameAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
282 |
"return true, if the given change represents the same change as the receiver." |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
283 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
284 |
^ false |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
285 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
286 |
! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
287 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
288 |
sameSourceAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
289 |
"return true, if the given change has the same source as the receiver." |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
290 |
|
1510 | 291 |
^ self class isSource:(self source) sameSourceAs:(changeB source) |
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
292 |
|
1510 | 293 |
"Modified: / 25-07-2006 / 11:22:46 / cg" |
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
294 |
! ! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
295 |
|
2411 | 296 |
!Change methodsFor:'converting'! |
297 |
||
298 |
asAntiChange |
|
299 |
"Returns my anti-change, i.e. change that do the |
|
300 |
opposite. For class defintion change it returns |
|
301 |
class remove change, for method defintion change |
|
302 |
it returns method remove change. If there is no way |
|
303 |
how to revert the change, an error is trigerred. |
|
304 |
||
305 |
JV: personal note: we should switch to deltastreams |
|
306 |
(http://wiki.squeak.org/squeak/6001) |
|
3136 | 307 |
|
308 |
CG: is the above really true - what about a classDefChange for |
|
309 |
an existing class???? |
|
2411 | 310 |
" |
311 |
||
312 |
"/self error: 'Could not create antichange' |
|
313 |
^self copy |
|
314 |
||
315 |
"Created: / 02-11-2009 / 11:11:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
316 |
"Modified: / 26-11-2009 / 16:10:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
317 |
! ! |
|
2378 | 318 |
|
319 |
!Change methodsFor:'enumerating'! |
|
320 |
||
321 |
do: aBlock |
|
322 |
||
323 |
^aBlock value: self |
|
324 |
||
325 |
"Created: / 29-10-2010 / 14:02:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
326 |
! ! |
|
327 |
||
328 |
!Change methodsFor:'fileout'! |
|
329 |
||
330 |
basicFileOutOn: aStream |
|
331 |
||
332 |
aStream |
|
333 |
cr; |
|
334 |
nextPutAllAsChunk: self source; |
|
335 |
cr; |
|
336 |
nextPutChunkSeparator; cr |
|
337 |
! |
|
338 |
||
339 |
fileOutOn: aStream |
|
340 |
||
341 |
self removed ifFalse:[self basicFileOutOn: aStream] |
|
342 |
! ! |
|
343 |
||
778 | 344 |
!Change methodsFor:'printing & storing'! |
345 |
||
897 | 346 |
printStringWithoutClassName |
778 | 347 |
|s| |
348 |
||
1385
495fc9f2c9da
replaced '' writeStream by String writeStream
Claus Gittinger <cg@exept.de>
parents:
1290
diff
changeset
|
349 |
s := String writeStream. |
897 | 350 |
self printWithoutClassNameOn:s. |
778 | 351 |
^ s contents |
352 |
! |
|
353 |
||
897 | 354 |
printWithoutClassNameOn:aStream |
778 | 355 |
self printOn:aStream |
356 |
||
357 |
||
358 |
! ! |
|
359 |
||
3212 | 360 |
|
2167 | 361 |
!Change methodsFor:'queries'! |
362 |
||
363 |
isForGeneratedSubject |
|
364 |
" |
|
365 |
Answers true iff subject of this method is somewhat |
|
366 |
auto-generated by some tool - just like version methods |
|
367 |
are. |
|
368 |
" |
|
369 |
||
370 |
^ false |
|
371 |
||
372 |
"Created: / 08-04-2009 / 09:45:26 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
373 |
"Modified: / 17-08-2009 / 18:55:20 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
374 |
! ! |
|
375 |
||
2135 | 376 |
!Change methodsFor:'testing'! |
651 | 377 |
|
1175 | 378 |
isClassCategoryChange |
2135 | 379 |
"return true, if this is a class-category change" |
380 |
||
1175 | 381 |
^ false |
382 |
||
383 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
384 |
! |
|
385 |
||
932 | 386 |
isClassChange |
2135 | 387 |
"return true, if this is a class-related change" |
388 |
||
932 | 389 |
^ false |
390 |
||
391 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
392 |
! |
|
393 |
||
777 | 394 |
isClassCommentChange |
2135 | 395 |
"return true, if this is a class-comment change" |
396 |
||
777 | 397 |
^ false |
398 |
||
399 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
400 |
! |
|
401 |
||
771 | 402 |
isClassDefinitionChange |
2135 | 403 |
"return true, if this is a class-definition change" |
404 |
||
771 | 405 |
^ false |
406 |
||
407 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
408 |
! |
|
409 |
||
3531 | 410 |
isClassInitializeChange |
411 |
^ false |
|
412 |
! |
|
413 |
||
798 | 414 |
isClassInstVarDefinitionChange |
415 |
^ false |
|
416 |
||
417 |
! |
|
418 |
||
1234 | 419 |
isClassRemoveChange |
420 |
^ false |
|
421 |
||
422 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
423 |
! |
|
424 |
||
2411 | 425 |
isClassRemoveChangeOrMethodRemoveChange |
426 |
^self isClassRemoveChange or: [self isMethodRemoveChange] |
|
427 |
||
428 |
"Created: / 25-11-2009 / 08:16:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
429 |
! |
|
430 |
||
1234 | 431 |
isClassRenameChange |
432 |
^ false |
|
433 |
||
434 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
435 |
! |
|
436 |
||
2378 | 437 |
isCompositeChange |
438 |
^ false |
|
439 |
||
440 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
441 |
! |
|
442 |
||
3212 | 443 |
isConflict |
444 |
"true if this change is different than what is already in the image |
|
445 |
(i.e. it overwrites some existing code)" |
|
446 |
||
447 |
^ true |
|
448 |
! |
|
449 |
||
773 | 450 |
isDoIt |
451 |
^ false |
|
452 |
||
453 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
454 |
! |
|
455 |
||
964
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
456 |
isMethodCategoryChange |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
457 |
^ false |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
458 |
! |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
459 |
|
1234 | 460 |
isMethodCategoryRenameChange |
461 |
^ false |
|
462 |
||
463 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
464 |
! |
|
465 |
||
651 | 466 |
isMethodChange |
2135 | 467 |
"true if this is a method related change" |
468 |
||
469 |
^ false |
|
470 |
||
471 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
472 |
! |
|
473 |
||
3461 | 474 |
isMethodChangeForCopyrightMethod |
475 |
"Return true if this is a change of #copyright method" |
|
476 |
||
477 |
^ false |
|
478 |
||
479 |
"Created: / 01-08-2012 / 16:34:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
480 |
! |
|
481 |
||
2945 | 482 |
isMethodChangeForExtensionsVersionMethod |
483 |
"true if this is a change for an extensionsVersion method" |
|
484 |
||
485 |
^ false |
|
486 |
||
487 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
488 |
! |
|
489 |
||
2185 | 490 |
isMethodChangeForVersionMethod |
2945 | 491 |
"true if this is a change for a version method" |
2185 | 492 |
|
493 |
^ false |
|
494 |
||
495 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
496 |
! |
|
497 |
||
2135 | 498 |
isMethodCodeChange |
499 |
"true if this is a method's code change (not package, category etc.)" |
|
500 |
||
651 | 501 |
^ false |
502 |
||
503 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
783 | 504 |
! |
505 |
||
1225 | 506 |
isMethodDefinitionChange |
507 |
^ false |
|
508 |
! |
|
509 |
||
2167 | 510 |
isMethodPackageChange |
511 |
^ false |
|
512 |
||
513 |
"Created: / 08-04-2009 / 09:00:21 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
514 |
! |
|
515 |
||
1163
4886886a78b7
#isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents:
1147
diff
changeset
|
516 |
isMethodRemoveChange |
4886886a78b7
#isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents:
1147
diff
changeset
|
517 |
^ false |
4886886a78b7
#isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents:
1147
diff
changeset
|
518 |
! |
4886886a78b7
#isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents:
1147
diff
changeset
|
519 |
|
2610 | 520 |
isNameSpaceCreationChange |
521 |
^ false |
|
522 |
||
523 |
"Created: / 24-11-2011 / 12:10:06 / cg" |
|
524 |
! |
|
525 |
||
3493
9ee153674732
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3461
diff
changeset
|
526 |
isOrContainsClassDefinitionChange |
9ee153674732
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3461
diff
changeset
|
527 |
^ false |
9ee153674732
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3461
diff
changeset
|
528 |
|
9ee153674732
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3461
diff
changeset
|
529 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
9ee153674732
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3461
diff
changeset
|
530 |
! |
9ee153674732
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3461
diff
changeset
|
531 |
|
2882 | 532 |
isOtherChange |
533 |
^ false |
|
534 |
! |
|
535 |
||
783 | 536 |
isPrimitiveChange |
537 |
^ false |
|
538 |
||
539 |
! |
|
540 |
||
541 |
isPrimitiveDefinitionsChange |
|
542 |
^ false |
|
543 |
||
544 |
! |
|
545 |
||
546 |
isPrimitiveFunctionsChange |
|
547 |
^ false |
|
548 |
||
549 |
! |
|
550 |
||
551 |
isPrimitiveVariablesChange |
|
552 |
^ false |
|
553 |
||
1868
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
554 |
! |
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
555 |
|
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
556 |
isPrivateClassDefinitionChange |
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
557 |
^ false |
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
558 |
|
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
559 |
"Created: / 12-10-2006 / 22:59:04 / cg" |
651 | 560 |
! ! |
561 |
||
2618
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
562 |
!Change methodsFor:'visiting'! |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
563 |
|
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
564 |
acceptChangeVisitor:aVisitor |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
565 |
^ aVisitor visitChange:self. |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
566 |
|
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
567 |
"Created: / 25-11-2011 / 17:12:05 / cg" |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
568 |
! ! |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
569 |
|
633 | 570 |
!Change class methodsFor:'documentation'! |
235 | 571 |
|
2490 | 572 |
version |
4015 | 573 |
^ '$Header$' |
574 |
! |
|
575 |
||
576 |
version_CVS |
|
577 |
^ '$Header$' |
|
2185 | 578 |
! |
4024 | 579 |
|
3874
f373ac106d3d
Fix in Change: care for empty sources passed to #isSource:sameSourceAs:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3862
diff
changeset
|
580 |
version_HG |
f373ac106d3d
Fix in Change: care for empty sources passed to #isSource:sameSourceAs:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3862
diff
changeset
|
581 |
|
f373ac106d3d
Fix in Change: care for empty sources passed to #isSource:sameSourceAs:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3862
diff
changeset
|
582 |
^ '$Changeset: <not expanded> $' |
f373ac106d3d
Fix in Change: care for empty sources passed to #isSource:sameSourceAs:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3862
diff
changeset
|
583 |
! |
2185 | 584 |
|
2378 | 585 |
version_SVN |
4015 | 586 |
^ '$Id$' |
235 | 587 |
! ! |
3136 | 588 |