Change.st
author vrany
Wed, 06 Jul 2011 13:50:11 +0200
changeset 2411 37acd98eb083
parent 2378 9d8435b2e196
child 2471 b0dd40fea5d3
permissions -rw-r--r--
Extension methods from libsvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     1
"
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     2
 COPYRIGHT (c) 1993 by Claus Gittinger
38
claus
parents: 10
diff changeset
     3
	      All Rights Reserved
3
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     4
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     5
 This software is furnished under a license and may be used
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     6
 only in accordance with the terms of that license and with the
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     8
 be provided or otherwise made available to, or used by, any
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     9
 other person.  No title to or ownership of the software is
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
    10
 hereby transferred.
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
    11
"
932
8028d375f842 #isClassChange query
Claus Gittinger <cg@exept.de>
parents: 909
diff changeset
    12
"{ Package: 'stx:libbasic3' }"
8028d375f842 #isClassChange query
Claus Gittinger <cg@exept.de>
parents: 909
diff changeset
    13
0
470788421600 Initial revision
claus
parents:
diff changeset
    14
Object subclass:#Change
1147
c1ea2e764760 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1096
diff changeset
    15
	instanceVariableNames:'source timeOfChangeIfKnown'
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    16
	classVariableNames:''
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    17
	poolDictionaries:''
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    18
	category:'System-Changes'
0
470788421600 Initial revision
claus
parents:
diff changeset
    19
!
470788421600 Initial revision
claus
parents:
diff changeset
    20
633
bfd87dc78c08 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
    21
!Change class methodsFor:'documentation'!
9
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    22
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    23
copyright
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    24
"
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    25
 COPYRIGHT (c) 1993 by Claus Gittinger
38
claus
parents: 10
diff changeset
    26
	      All Rights Reserved
9
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    27
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    28
 This software is furnished under a license and may be used
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    29
 only in accordance with the terms of that license and with the
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    31
 be provided or otherwise made available to, or used by, any
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    32
 other person.  No title to or ownership of the software is
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    33
 hereby transferred.
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    34
"
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    35
!
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    36
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    37
documentation
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    38
"
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    39
    abstract superclass for all kind of changes - managed in changeSets.
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    40
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    41
    [author:]
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    42
        Claus Gittinger
9
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    43
"
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    44
! !
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    45
1510
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    46
!Change class methodsFor:'support'!
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    47
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    48
isSource:source1Arg sameSourceAs:source2Arg
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    49
    "return true, if the given sources are the same, ignoring tabs and whitespace differences."
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    50
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    51
    |source1 source2|
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    52
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    53
    source1 := source1Arg.
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    54
    source2 := source2Arg.
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    55
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    56
    source1 = source2 ifTrue:[^ true].
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    57
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    58
    source1 := source1 withoutTrailingSeparators asCollectionOfLines.
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    59
    source2 := source2 withoutTrailingSeparators asCollectionOfLines.
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    60
    source1 size ~~ source2 size ifTrue:[^ false].
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    61
    source1 := source1 collect:[:line | line withTabsExpanded withoutTrailingSeparators].
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    62
    source2 := source2 collect:[:line | line withTabsExpanded withoutTrailingSeparators].
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    63
    ^ source1 = source2
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    64
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    65
    "Created: / 25-07-2006 / 11:22:21 / cg"
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    66
! !
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
    67
647
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
    68
!Change methodsFor:'accessing'!
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
    69
850
5efe4b98c509 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 849
diff changeset
    70
changeClass
5efe4b98c509 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 849
diff changeset
    71
    "the class of the change (nil if not present)"
5efe4b98c509 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 849
diff changeset
    72
5efe4b98c509 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 849
diff changeset
    73
    ^ nil
5efe4b98c509 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 849
diff changeset
    74
5efe4b98c509 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 849
diff changeset
    75
!
5efe4b98c509 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 849
diff changeset
    76
2378
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
    77
changeLanguage
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
    78
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
    79
    "Answer the language of the receiver. Since changesets 
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
    80
    are now supported only for Smalltalk, return SmalltalkLanguage
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
    81
    unconditionally"
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
    82
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
    83
    ^SmalltalkLanguage instance
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
    84
!
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
    85
850
5efe4b98c509 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 849
diff changeset
    86
changeSelector
5efe4b98c509 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 849
diff changeset
    87
    ^ nil
5efe4b98c509 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 849
diff changeset
    88
5efe4b98c509 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 849
diff changeset
    89
    "Created: / 6.2.1998 / 13:29:35 / cg"
5efe4b98c509 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 849
diff changeset
    90
!
5efe4b98c509 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 849
diff changeset
    91
647
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
    92
className
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
    93
    "the className of the change"
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
    94
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
    95
    ^ nil
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
    96
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
    97
    "Modified: / 15.7.1996 / 09:26:34 / cg"
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
    98
    "Created: / 6.2.1998 / 13:06:56 / cg"
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
    99
!
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
   100
2378
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   101
delta
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   102
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   103
    "Returns a delta to current state as symbol:
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   104
        #+ .....the subject is to be added to the image (new)
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   105
        #- .....the subject is to be removed from the image (old)
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   106
        #= .....the image is up to date
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   107
        #~ .....change version and image version differ
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   108
        #? .....delta is unknown or N/A for this kind of change
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   109
    "
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   110
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   111
    ^#? "We don't know how to compute delta for generic change"
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   112
!
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   113
909
2af6462c44ff VW5i compatibility
Claus Gittinger <cg@exept.de>
parents: 897
diff changeset
   114
file
2af6462c44ff VW5i compatibility
Claus Gittinger <cg@exept.de>
parents: 897
diff changeset
   115
    ^ nil "/ to be added as instvar
2af6462c44ff VW5i compatibility
Claus Gittinger <cg@exept.de>
parents: 897
diff changeset
   116
!
2af6462c44ff VW5i compatibility
Claus Gittinger <cg@exept.de>
parents: 897
diff changeset
   117
2af6462c44ff VW5i compatibility
Claus Gittinger <cg@exept.de>
parents: 897
diff changeset
   118
file:aFile position:anInteger
2af6462c44ff VW5i compatibility
Claus Gittinger <cg@exept.de>
parents: 897
diff changeset
   119
    ^ self "/ to be added 
2af6462c44ff VW5i compatibility
Claus Gittinger <cg@exept.de>
parents: 897
diff changeset
   120
!
2af6462c44ff VW5i compatibility
Claus Gittinger <cg@exept.de>
parents: 897
diff changeset
   121
2411
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   122
nonMetaClassName
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   123
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   124
    ^nil
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   125
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   126
    "Created: / 26-11-2009 / 16:14:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   127
!
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   128
909
2af6462c44ff VW5i compatibility
Claus Gittinger <cg@exept.de>
parents: 897
diff changeset
   129
objectType:aSymbol
2af6462c44ff VW5i compatibility
Claus Gittinger <cg@exept.de>
parents: 897
diff changeset
   130
    ^ self "/ to be added as instvar
2af6462c44ff VW5i compatibility
Claus Gittinger <cg@exept.de>
parents: 897
diff changeset
   131
!
2af6462c44ff VW5i compatibility
Claus Gittinger <cg@exept.de>
parents: 897
diff changeset
   132
2287
271a86b96fd3 added: #package
Claus Gittinger <cg@exept.de>
parents: 2185
diff changeset
   133
package
271a86b96fd3 added: #package
Claus Gittinger <cg@exept.de>
parents: 2185
diff changeset
   134
    ^ nil
271a86b96fd3 added: #package
Claus Gittinger <cg@exept.de>
parents: 2185
diff changeset
   135
!
271a86b96fd3 added: #package
Claus Gittinger <cg@exept.de>
parents: 2185
diff changeset
   136
1052
cc84f5e27bb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 988
diff changeset
   137
prettyPrintedSource
cc84f5e27bb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 988
diff changeset
   138
    "return the prettyPrinted or normal source of the change"
cc84f5e27bb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 988
diff changeset
   139
cc84f5e27bb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 988
diff changeset
   140
    ^ self source
cc84f5e27bb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 988
diff changeset
   141
!
cc84f5e27bb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 988
diff changeset
   142
2411
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   143
removed
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   144
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   145
    ^(self objectAttributeAt: #removed) ? false
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   146
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   147
    "Created: / 24-10-2009 / 21:10:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   148
!
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   149
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   150
removed: aBoolean
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   151
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   152
    ^self objectAttributeAt: #removed put: aBoolean
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   153
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   154
    "Created: / 24-10-2009 / 21:11:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   155
!
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   156
647
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
   157
selector
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
   158
    ^ nil
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
   159
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
   160
    "Created: / 6.2.1998 / 13:29:35 / cg"
787
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   161
!
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   162
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   163
source
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   164
    "return the source of the change"
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   165
1096
4a949a840bb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1052
diff changeset
   166
    |s|
4a949a840bb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1052
diff changeset
   167
4a949a840bb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1052
diff changeset
   168
    source isNil ifTrue:[
1385
495fc9f2c9da replaced '' writeStream by String writeStream
Claus Gittinger <cg@exept.de>
parents: 1290
diff changeset
   169
        s := String writeStream.
1096
4a949a840bb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1052
diff changeset
   170
        self printOn:s.
4a949a840bb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1052
diff changeset
   171
        ^ s contents.
4a949a840bb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1052
diff changeset
   172
    ].
787
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   173
    ^ source
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   174
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   175
    "Modified: 15.7.1996 / 09:26:34 / cg"
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   176
!
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   177
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   178
source:someString
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   179
    "set the source of the change"
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   180
1290
5d97b96b1237 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1288
diff changeset
   181
    "/ debugging only ...
5d97b96b1237 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1288
diff changeset
   182
    someString isString ifFalse:[
5d97b96b1237 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1288
diff changeset
   183
        (someString respondsTo:#string) ifFalse:[
5d97b96b1237 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1288
diff changeset
   184
            self halt:'argument should be string-like'
5d97b96b1237 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1288
diff changeset
   185
        ]
5d97b96b1237 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1288
diff changeset
   186
    ].
787
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   187
    source := someString
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   188
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   189
    "Modified: / 15.7.1996 / 09:26:34 / cg"
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   190
    "Created: / 16.2.1998 / 13:05:16 / cg"
1147
c1ea2e764760 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1096
diff changeset
   191
!
c1ea2e764760 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1096
diff changeset
   192
c1ea2e764760 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1096
diff changeset
   193
timeOfChangeIfKnown
c1ea2e764760 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1096
diff changeset
   194
    ^ timeOfChangeIfKnown
c1ea2e764760 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1096
diff changeset
   195
!
c1ea2e764760 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1096
diff changeset
   196
c1ea2e764760 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1096
diff changeset
   197
timeStamp:aTimestamp
c1ea2e764760 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1096
diff changeset
   198
    timeOfChangeIfKnown := aTimestamp
647
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
   199
! !
abc0329b81a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 633
diff changeset
   200
849
d31825895bb2 preps to allow applying
Claus Gittinger <cg@exept.de>
parents: 798
diff changeset
   201
!Change methodsFor:'applying'!
d31825895bb2 preps to allow applying
Claus Gittinger <cg@exept.de>
parents: 798
diff changeset
   202
d31825895bb2 preps to allow applying
Claus Gittinger <cg@exept.de>
parents: 798
diff changeset
   203
apply
d31825895bb2 preps to allow applying
Claus Gittinger <cg@exept.de>
parents: 798
diff changeset
   204
    "apply the change"
d31825895bb2 preps to allow applying
Claus Gittinger <cg@exept.de>
parents: 798
diff changeset
   205
d31825895bb2 preps to allow applying
Claus Gittinger <cg@exept.de>
parents: 798
diff changeset
   206
    self subclassResponsibility
1873
2cbdfc5da6d7 changes for compare-project functionality
Claus Gittinger <cg@exept.de>
parents: 1868
diff changeset
   207
2cbdfc5da6d7 changes for compare-project functionality
Claus Gittinger <cg@exept.de>
parents: 1868
diff changeset
   208
    "Modified: / 13-10-2006 / 00:41:05 / cg"
849
d31825895bb2 preps to allow applying
Claus Gittinger <cg@exept.de>
parents: 798
diff changeset
   209
! !
d31825895bb2 preps to allow applying
Claus Gittinger <cg@exept.de>
parents: 798
diff changeset
   210
1234
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   211
!Change methodsFor:'change notification'!
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   212
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   213
sendChangeNotificationThroughSmalltalk
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   214
    "intentionally left blank"
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   215
! !
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   216
784
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   217
!Change methodsFor:'comparing'!
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   218
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   219
isForSameAs:changeB
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   220
    "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
   221
     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
   222
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   223
    ^ false
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   224
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   225
!
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   226
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   227
sameAs:changeB
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   228
    "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
   229
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   230
    ^ false
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   231
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   232
!
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   233
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   234
sameSourceAs:changeB
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   235
    "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
   236
1510
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
   237
    ^ 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
   238
1510
ce7253f6f687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1385
diff changeset
   239
    "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
   240
! !
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   241
2411
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   242
!Change methodsFor:'converting'!
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   243
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   244
asAntiChange
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   245
    "Returns my anti-change, i.e. change that do the
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   246
     opposite. For class defintion change it returns
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   247
     class remove change, for method defintion change
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   248
     it returns method remove change. If there is no way
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   249
     how to revert the change, an error is trigerred.
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   250
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   251
     JV: personal note: we should switch to deltastreams
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   252
     (http://wiki.squeak.org/squeak/6001)
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   253
    "
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   254
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   255
    "/self error: 'Could not create antichange'
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   256
    ^self copy
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   257
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   258
    "Created: / 02-11-2009 / 11:11:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   259
    "Modified: / 26-11-2009 / 16:10:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   260
! !
2378
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   261
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   262
!Change methodsFor:'enumerating'!
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   263
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   264
do: aBlock
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   265
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   266
    ^aBlock value: self
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   267
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   268
    "Created: / 29-10-2010 / 14:02:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   269
! !
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   270
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   271
!Change methodsFor:'fileout'!
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   272
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   273
basicFileOutOn: aStream
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   274
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   275
    aStream 
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   276
        cr;
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   277
        nextPutAllAsChunk: self source; 
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   278
        cr;
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   279
        nextPutChunkSeparator; cr
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   280
!
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   281
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   282
fileOutOn: aStream
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   283
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   284
    self removed ifFalse:[self basicFileOutOn: aStream]
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   285
! !
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   286
778
36f27d7e25f4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   287
!Change methodsFor:'printing & storing'!
36f27d7e25f4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   288
897
d46a2564eba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 852
diff changeset
   289
printStringWithoutClassName
778
36f27d7e25f4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   290
    |s|
36f27d7e25f4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   291
1385
495fc9f2c9da replaced '' writeStream by String writeStream
Claus Gittinger <cg@exept.de>
parents: 1290
diff changeset
   292
    s := String writeStream.
897
d46a2564eba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 852
diff changeset
   293
    self printWithoutClassNameOn:s.
778
36f27d7e25f4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   294
    ^ s contents
36f27d7e25f4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   295
!
36f27d7e25f4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   296
897
d46a2564eba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 852
diff changeset
   297
printWithoutClassNameOn:aStream
778
36f27d7e25f4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   298
    self printOn:aStream
36f27d7e25f4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   299
36f27d7e25f4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   300
36f27d7e25f4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   301
! !
36f27d7e25f4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   302
2411
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   303
!Change methodsFor:'private'!
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   304
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   305
flattenOnto: aCollection 
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   306
	aCollection add: self
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   307
!
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   308
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   309
flattenedChanges
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   310
	| changes |
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   311
	changes := OrderedCollection new.
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   312
	self flattenOnto: changes.
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   313
	^changes
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   314
! !
2378
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   315
2167
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   316
!Change methodsFor:'queries'!
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   317
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   318
isForGeneratedSubject
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   319
    "
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   320
    Answers true iff subject of this method is somewhat
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   321
    auto-generated by some tool - just like version methods
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   322
    are.
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   323
    "
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   324
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   325
    ^ false
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   326
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   327
    "Created: / 08-04-2009 / 09:45:26 / Jan Vrany <vranyj1@fel.cvut.cz>"
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   328
    "Modified: / 17-08-2009 / 18:55:20 / Jan Vrany <vranyj1@fel.cvut.cz>"
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   329
! !
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   330
2135
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   331
!Change methodsFor:'testing'!
651
20f3013cf5c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 647
diff changeset
   332
1175
d4d0a2cc711a added classCategoryChange
Claus Gittinger <cg@exept.de>
parents: 1163
diff changeset
   333
isClassCategoryChange
2135
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   334
    "return true, if this is a class-category change"
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   335
1175
d4d0a2cc711a added classCategoryChange
Claus Gittinger <cg@exept.de>
parents: 1163
diff changeset
   336
    ^ false
d4d0a2cc711a added classCategoryChange
Claus Gittinger <cg@exept.de>
parents: 1163
diff changeset
   337
d4d0a2cc711a added classCategoryChange
Claus Gittinger <cg@exept.de>
parents: 1163
diff changeset
   338
    "Created: / 7.2.1998 / 19:26:50 / cg"
d4d0a2cc711a added classCategoryChange
Claus Gittinger <cg@exept.de>
parents: 1163
diff changeset
   339
!
d4d0a2cc711a added classCategoryChange
Claus Gittinger <cg@exept.de>
parents: 1163
diff changeset
   340
932
8028d375f842 #isClassChange query
Claus Gittinger <cg@exept.de>
parents: 909
diff changeset
   341
isClassChange
2135
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   342
    "return true, if this is a class-related change"
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   343
932
8028d375f842 #isClassChange query
Claus Gittinger <cg@exept.de>
parents: 909
diff changeset
   344
    ^ false
8028d375f842 #isClassChange query
Claus Gittinger <cg@exept.de>
parents: 909
diff changeset
   345
8028d375f842 #isClassChange query
Claus Gittinger <cg@exept.de>
parents: 909
diff changeset
   346
    "Created: / 7.2.1998 / 19:26:50 / cg"
8028d375f842 #isClassChange query
Claus Gittinger <cg@exept.de>
parents: 909
diff changeset
   347
!
8028d375f842 #isClassChange query
Claus Gittinger <cg@exept.de>
parents: 909
diff changeset
   348
777
1eb424230652 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
   349
isClassCommentChange
2135
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   350
    "return true, if this is a class-comment change"
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   351
777
1eb424230652 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
   352
    ^ false
1eb424230652 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
   353
1eb424230652 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
   354
    "Created: / 7.2.1998 / 19:26:50 / cg"
1eb424230652 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
   355
!
1eb424230652 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
   356
771
0fc9c131d807 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   357
isClassDefinitionChange
2135
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   358
    "return true, if this is a class-definition change"
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   359
771
0fc9c131d807 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   360
    ^ false
0fc9c131d807 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   361
0fc9c131d807 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   362
    "Created: / 7.2.1998 / 19:26:50 / cg"
0fc9c131d807 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   363
!
0fc9c131d807 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   364
798
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 787
diff changeset
   365
isClassInstVarDefinitionChange
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 787
diff changeset
   366
    ^ false
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 787
diff changeset
   367
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 787
diff changeset
   368
!
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 787
diff changeset
   369
1234
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   370
isClassRemoveChange
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   371
    ^ false
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   372
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   373
    "Created: / 7.2.1998 / 19:26:50 / cg"
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   374
!
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   375
2411
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   376
isClassRemoveChangeOrMethodRemoveChange
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   377
    ^self isClassRemoveChange or: [self isMethodRemoveChange]
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   378
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   379
    "Created: / 25-11-2009 / 08:16:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   380
!
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   381
1234
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   382
isClassRenameChange
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   383
    ^ false
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   384
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   385
    "Created: / 7.2.1998 / 19:26:50 / cg"
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   386
!
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   387
2378
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   388
isCompositeChange
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   389
    ^ false
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   390
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   391
    "Created: / 7.2.1998 / 19:26:50 / cg"
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   392
!
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   393
773
286439523352 added #isDoIt
Claus Gittinger <cg@exept.de>
parents: 771
diff changeset
   394
isDoIt
286439523352 added #isDoIt
Claus Gittinger <cg@exept.de>
parents: 771
diff changeset
   395
    ^ false
286439523352 added #isDoIt
Claus Gittinger <cg@exept.de>
parents: 771
diff changeset
   396
286439523352 added #isDoIt
Claus Gittinger <cg@exept.de>
parents: 771
diff changeset
   397
    "Created: / 7.2.1998 / 19:26:50 / cg"
286439523352 added #isDoIt
Claus Gittinger <cg@exept.de>
parents: 771
diff changeset
   398
!
286439523352 added #isDoIt
Claus Gittinger <cg@exept.de>
parents: 771
diff changeset
   399
964
64282b5e5c48 added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents: 932
diff changeset
   400
isMethodCategoryChange
64282b5e5c48 added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents: 932
diff changeset
   401
    ^ false
64282b5e5c48 added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents: 932
diff changeset
   402
!
64282b5e5c48 added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents: 932
diff changeset
   403
1234
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   404
isMethodCategoryRenameChange
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   405
    ^ false
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   406
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   407
    "Created: / 7.2.1998 / 19:26:50 / cg"
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   408
!
2edbb63a70b7 james' package changes
james
parents: 1225
diff changeset
   409
651
20f3013cf5c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 647
diff changeset
   410
isMethodChange
2135
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   411
    "true if this is a method related change"
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   412
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   413
    ^ false
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   414
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   415
    "Created: / 7.2.1998 / 19:26:50 / cg"
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   416
!
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   417
2185
d3a522511a17 added: #isMethodChangeForVersionMethod
fm
parents: 2167
diff changeset
   418
isMethodChangeForVersionMethod
d3a522511a17 added: #isMethodChangeForVersionMethod
fm
parents: 2167
diff changeset
   419
    "true if this is a method's code change (not package, category etc.)"
d3a522511a17 added: #isMethodChangeForVersionMethod
fm
parents: 2167
diff changeset
   420
d3a522511a17 added: #isMethodChangeForVersionMethod
fm
parents: 2167
diff changeset
   421
    ^ false
d3a522511a17 added: #isMethodChangeForVersionMethod
fm
parents: 2167
diff changeset
   422
d3a522511a17 added: #isMethodChangeForVersionMethod
fm
parents: 2167
diff changeset
   423
    "Created: / 7.2.1998 / 19:26:50 / cg"
d3a522511a17 added: #isMethodChangeForVersionMethod
fm
parents: 2167
diff changeset
   424
!
d3a522511a17 added: #isMethodChangeForVersionMethod
fm
parents: 2167
diff changeset
   425
2135
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   426
isMethodCodeChange
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   427
    "true if this is a method's code change (not package, category etc.)"
dddad5c46e91 added: #isMethodCodeChange
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   428
651
20f3013cf5c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 647
diff changeset
   429
    ^ false
20f3013cf5c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 647
diff changeset
   430
20f3013cf5c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 647
diff changeset
   431
    "Created: / 7.2.1998 / 19:26:50 / cg"
783
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   432
!
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   433
1225
6e912daf6b1b +isMethodDefinitionChange
Claus Gittinger <cg@exept.de>
parents: 1175
diff changeset
   434
isMethodDefinitionChange
6e912daf6b1b +isMethodDefinitionChange
Claus Gittinger <cg@exept.de>
parents: 1175
diff changeset
   435
    ^ false
6e912daf6b1b +isMethodDefinitionChange
Claus Gittinger <cg@exept.de>
parents: 1175
diff changeset
   436
!
6e912daf6b1b +isMethodDefinitionChange
Claus Gittinger <cg@exept.de>
parents: 1175
diff changeset
   437
2167
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   438
isMethodPackageChange
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   439
    ^ false
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   440
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   441
    "Created: / 08-04-2009 / 09:00:21 / Jan Vrany <vranyj1@fel.cvut.cz>"
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   442
!
Claus Gittinger <cg@exept.de>
parents: 2135
diff changeset
   443
1163
4886886a78b7 #isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents: 1147
diff changeset
   444
isMethodRemoveChange
4886886a78b7 #isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents: 1147
diff changeset
   445
    ^ false
4886886a78b7 #isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents: 1147
diff changeset
   446
!
4886886a78b7 #isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents: 1147
diff changeset
   447
783
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   448
isPrimitiveChange
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   449
    ^ false
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   450
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   451
!
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   452
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   453
isPrimitiveDefinitionsChange
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   454
    ^ false
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   455
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   456
!
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   457
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   458
isPrimitiveFunctionsChange
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   459
    ^ false
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   460
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   461
!
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   462
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   463
isPrimitiveVariablesChange
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   464
    ^ false
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 778
diff changeset
   465
1868
301a5aeb8176 +isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents: 1510
diff changeset
   466
!
301a5aeb8176 +isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents: 1510
diff changeset
   467
301a5aeb8176 +isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents: 1510
diff changeset
   468
isPrivateClassDefinitionChange
301a5aeb8176 +isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents: 1510
diff changeset
   469
    ^ false
301a5aeb8176 +isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents: 1510
diff changeset
   470
301a5aeb8176 +isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents: 1510
diff changeset
   471
    "Created: / 12-10-2006 / 22:59:04 / cg"
651
20f3013cf5c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 647
diff changeset
   472
! !
20f3013cf5c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 647
diff changeset
   473
633
bfd87dc78c08 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
   474
!Change class methodsFor:'documentation'!
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   475
2378
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   476
version_CVS
2411
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   477
    ^ '$Header: /cvs/stx/stx/libbasic3/Change.st,v 1.50 2011-07-06 11:50:11 vrany Exp $'
2185
d3a522511a17 added: #isMethodChangeForVersionMethod
fm
parents: 2167
diff changeset
   478
!
d3a522511a17 added: #isMethodChangeForVersionMethod
fm
parents: 2167
diff changeset
   479
2378
9d8435b2e196 Jan's changes
vrany
parents: 2287
diff changeset
   480
version_SVN
2411
37acd98eb083 Extension methods from libsvn
vrany
parents: 2378
diff changeset
   481
    ^ '§ Id: Change.st 1867 2011-06-08 21:57:08Z vranyj1  §'
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   482
! !