720
|
1 |
"
|
|
2 |
Copyright (c) 2007-2010 Jan Vrany
|
|
3 |
Copyright (c) 2009-2010 eXept Software AG
|
|
4 |
|
|
5 |
Permission is hereby granted, free of charge, to any person
|
|
6 |
obtaining a copy of this software and associated documentation
|
|
7 |
files (the 'Software'), to deal in the Software without
|
|
8 |
restriction, including without limitation the rights to use,
|
|
9 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10 |
copies of the Software, and to permit persons to whom the
|
|
11 |
Software is furnished to do so, subject to the following
|
|
12 |
conditions:
|
|
13 |
|
|
14 |
The above copyright notice and this permission notice shall be
|
|
15 |
included in all copies or substantial portions of the Software.
|
|
16 |
|
|
17 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
18 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
19 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
20 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
21 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
22 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
23 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
24 |
OTHER DEALINGS IN THE SOFTWARE.
|
|
25 |
"
|
412
|
26 |
"{ Package: 'stx:libsvn' }"
|
77
|
27 |
|
|
28 |
"{ NameSpace: SVN }"
|
|
29 |
|
720
|
30 |
UpdateLikeTask subclass:#UpdateTask
|
|
31 |
instanceVariableNames:'revision loadChangeSet mergeDiffSet updateChangeSet'
|
77
|
32 |
classVariableNames:''
|
|
33 |
poolDictionaries:''
|
|
34 |
category:'SVN-Tasks'
|
|
35 |
!
|
|
36 |
|
720
|
37 |
!UpdateTask class methodsFor:'documentation'!
|
|
38 |
|
|
39 |
copyright
|
|
40 |
"
|
|
41 |
Copyright (c) 2007-2010 Jan Vrany
|
|
42 |
Copyright (c) 2009-2010 eXept Software AG
|
|
43 |
|
|
44 |
Permission is hereby granted, free of charge, to any person
|
|
45 |
obtaining a copy of this software and associated documentation
|
|
46 |
files (the 'Software'), to deal in the Software without
|
|
47 |
restriction, including without limitation the rights to use,
|
|
48 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
49 |
copies of the Software, and to permit persons to whom the
|
|
50 |
Software is furnished to do so, subject to the following
|
|
51 |
conditions:
|
|
52 |
|
|
53 |
The above copyright notice and this permission notice shall be
|
|
54 |
included in all copies or substantial portions of the Software.
|
|
55 |
|
|
56 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
57 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
58 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
59 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
60 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
61 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
62 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
63 |
OTHER DEALINGS IN THE SOFTWARE.
|
|
64 |
|
|
65 |
"
|
|
66 |
! !
|
|
67 |
|
|
68 |
!UpdateTask class methodsFor:'others'!
|
|
69 |
|
|
70 |
version_CVS
|
|
71 |
^ '$ÂHeader: /cvs/stx/stx/libsvn/SVN__UpdateTask.st,v 1.5 2009/10/19 12:22:32 fm Exp Â$'
|
|
72 |
! !
|
77
|
73 |
|
|
74 |
!UpdateTask methodsFor:'accessing'!
|
|
75 |
|
|
76 |
revision
|
|
77 |
^ revision
|
|
78 |
|
|
79 |
"Modified: / 09-04-2009 / 09:39:42 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
80 |
!
|
|
81 |
|
|
82 |
revision:aRevision
|
|
83 |
revision := aRevision.
|
|
84 |
loadChangeSet := mergeDiffSet := updateChangeSet := nil.
|
|
85 |
|
|
86 |
"Modified: / 23-03-2009 / 18:40:00 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
87 |
! !
|
|
88 |
|
|
89 |
!UpdateTask methodsFor:'executing'!
|
|
90 |
|
720
|
91 |
doApplyUpdates
|
77
|
92 |
|
720
|
93 |
super doApplyUpdates.
|
|
94 |
self doCompileSvnRevisionNrMethod:true;
|
|
95 |
doCompileSvnRepositoryUrlStringMethod.
|
77
|
96 |
|
720
|
97 |
"Created: / 26-11-2009 / 14:50:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
98 |
"Modified: / 08-04-2011 / 15:59:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
77
|
99 |
! !
|
|
100 |
|
|
101 |
!UpdateTask methodsFor:'executing - private'!
|
|
102 |
|
720
|
103 |
doUpdate
|
77
|
104 |
|
720
|
105 |
| containers |
|
77
|
106 |
|
720
|
107 |
ActivityNotification notify:'Updating working copy'.
|
|
108 |
containers := self isSelectiveFileoutTask
|
|
109 |
ifTrue:[self containersToFileOut]
|
|
110 |
ifFalse:[ #() ].
|
77
|
111 |
|
|
112 |
notifications := (UpdateCommand new)
|
720
|
113 |
workingCopy:self workingCopy;
|
|
114 |
revision:self revision;
|
|
115 |
paths:containers;
|
|
116 |
execute
|
77
|
117 |
|
|
118 |
"Modified: / 19-08-2009 / 12:22:49 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
720
|
119 |
"Modified: / 10-12-2009 / 12:31:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
77
|
120 |
! !
|
|
121 |
|
|
122 |
!UpdateTask methodsFor:'private'!
|
|
123 |
|
|
124 |
filterChangeSet: aChangeSet
|
|
125 |
"
|
|
126 |
Removes changes for methods that are not interesting
|
|
127 |
(such as version methods & autogenerated package description
|
|
128 |
methods)"
|
|
129 |
|
|
130 |
| changesToRemove |
|
|
131 |
|
|
132 |
changesToRemove := aChangeSet
|
|
133 |
select: [:change | change isForGeneratedSubject ].
|
|
134 |
aChangeSet removeAll: changesToRemove.
|
|
135 |
^ aChangeSet
|
|
136 |
|
|
137 |
"Created: / 08-04-2009 / 09:53:49 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
138 |
! !
|
|
139 |
|
720
|
140 |
!UpdateTask methodsFor:'testing'!
|
77
|
141 |
|
720
|
142 |
isUpdateTask
|
|
143 |
^ true
|
77
|
144 |
! !
|
|
145 |
|
|
146 |
!UpdateTask class methodsFor:'documentation'!
|
|
147 |
|
|
148 |
version
|
720
|
149 |
^ '$Id$'
|
207
|
150 |
!
|
|
151 |
|
|
152 |
version_SVN
|
720
|
153 |
^ '§Id: SVN__UpdateTask.st 350 2011-07-07 18:42:56Z vranyj1 §'
|
77
|
154 |
! !
|