11130
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2012 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
"{ Package: 'stx:libtool' }"
|
|
13 |
|
|
14 |
AbstractSourceCodeManagementSettingsAppl subclass:#MercurialSourceCodeManagementSettingsAppl
|
11332
|
15 |
instanceVariableNames:'repositoryHolder manager repository repositoryPrototypeList
|
|
16 |
addPerModuleRepository removePerModuleRepository
|
|
17 |
perModuleRepository defaultRepositoryHolder
|
|
18 |
selectedPerModuleRepository hgBinDirectoryHolder
|
|
19 |
hgExecutableHolder hgCommandTimeoutHolder repositoriesPerModule
|
11348
|
20 |
perModuleRepositoryModule selectedPushURL pushURL
|
|
21 |
pushURLPrototypeList'
|
11130
|
22 |
classVariableNames:'RecentlyUsedRepositoryURLS'
|
|
23 |
poolDictionaries:''
|
|
24 |
category:'System-SourceCodeManagement'
|
|
25 |
!
|
|
26 |
|
|
27 |
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
|
|
28 |
|
|
29 |
copyright
|
|
30 |
"
|
|
31 |
COPYRIGHT (c) 2012 by eXept Software AG
|
|
32 |
All Rights Reserved
|
|
33 |
|
|
34 |
This software is furnished under a license and may be used
|
|
35 |
only in accordance with the terms of that license and with the
|
|
36 |
inclusion of the above copyright notice. This software may not
|
|
37 |
be provided or otherwise made available to, or used by, any
|
|
38 |
other person. No title to or ownership of the software is
|
|
39 |
hereby transferred.
|
|
40 |
"
|
|
41 |
!
|
|
42 |
|
|
43 |
documentation
|
|
44 |
"
|
|
45 |
Mercurial part of the source code settings.
|
|
46 |
This settings app controls the parameters of the MercurialSourceCodeManager.
|
|
47 |
|
11334
|
48 |
Extracted for pluggability from SourceCodeManagerSettings in the AbstractSettingsApplication.
|
11130
|
49 |
"
|
|
50 |
! !
|
|
51 |
|
|
52 |
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'defaults'!
|
|
53 |
|
|
54 |
defaultRepositoryName
|
|
55 |
|
11133
|
56 |
^ ''
|
11130
|
57 |
|
|
58 |
"Created: / 19-04-2011 / 11:00:11 / cg"
|
|
59 |
! !
|
|
60 |
|
|
61 |
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'help specs'!
|
|
62 |
|
|
63 |
helpSpec
|
|
64 |
"This resource specification was automatically generated
|
|
65 |
by the UIHelpTool of ST/X."
|
|
66 |
|
|
67 |
"Do not manually edit this!! If it is corrupted,
|
|
68 |
the UIHelpTool may not be able to read the specification."
|
|
69 |
|
|
70 |
"
|
11146
|
71 |
UIHelpTool openOnClass:MercurialSourceCodeManagementSettingsAppl
|
11130
|
72 |
"
|
|
73 |
|
|
74 |
<resource: #help>
|
|
75 |
|
|
76 |
^ super helpSpec addPairsFrom:#(
|
|
77 |
|
|
78 |
#addPerModuleRoot
|
|
79 |
'Add this per-module entry'
|
|
80 |
|
|
81 |
#addPerPackageManager
|
|
82 |
'Add a new per-package manager definition'
|
|
83 |
|
|
84 |
#browseSourceCache
|
|
85 |
'Open a file browser on the source cache directory'
|
|
86 |
|
|
87 |
#checkPerPackageManager
|
|
88 |
'Open a window to show which scm-manager is responsible for which package.'
|
|
89 |
|
|
90 |
#condenseSourceCache
|
|
91 |
'Cleanup old cached versions from the source cache.\Will keep only the current (newest) version in the cache.\Access to older code versions will be slowed down (compare with old version browser function)'
|
|
92 |
|
|
93 |
#cvsCommand
|
|
94 |
'The command to use for cvs operations\(the path to "cvs"/"cvs.exe"-command. Not needed, if already in the shell''s PATH value)'
|
|
95 |
|
|
96 |
#cvsCommandTimeout
|
|
97 |
'The command timeout.\For slow connections (ssl-tunnel), it may make sense to increase this value.'
|
|
98 |
|
|
99 |
#cvsLogin
|
|
100 |
'Perform a "cvs login" operation for the default CVSROOT'
|
|
101 |
|
|
102 |
#cvsRootDefault
|
|
103 |
'The default CVSROOT.\This will be used for all modules which are not listed below.'
|
|
104 |
|
|
105 |
#cvsRootPerModule
|
|
106 |
'Specifies per-module CVSROOTs.\This allows for individual projects to be stored in different cvs repositories.'
|
|
107 |
|
|
108 |
#cvsRootPerModuleModule
|
|
109 |
'The module for which a specific CVSROOT is defined'
|
|
110 |
|
|
111 |
#cvsRootPerModuleRoot
|
|
112 |
'The CVSROOT for which this specific module is defined'
|
|
113 |
|
|
114 |
#defaultManagerType
|
|
115 |
'The default repository type.\This is used for packages for which no entry matches in the list below'
|
|
116 |
|
|
117 |
#editPerPackageManager
|
|
118 |
'Modify the selected per-package manager definition'
|
|
119 |
|
|
120 |
#flushSourceCache
|
|
121 |
'Remove all files from the source cache.\Access to source code will temporarily be slowed down,\until sources have been refetched from the repository'
|
|
122 |
|
11165
|
123 |
#hgAddPushURL
|
|
124 |
'Add a repository to the push-URL list. A repository-push operation will synchronize your changes with this repository as well'
|
|
125 |
|
11146
|
126 |
#hgCheckAccess
|
|
127 |
'Perform a "hg status" command in the default repository to see if the repository is accessable'
|
|
128 |
|
|
129 |
#hgCheckAccessPerModuleRoot
|
|
130 |
'Perform a "hg status" command in this module''s repository to see if the repository is accessable'
|
|
131 |
|
|
132 |
#hgCommand
|
|
133 |
'The command to use for mercurial operations\(the path to "hg"/"hg.exe"-command. Not needed, if already in the shell''s PATH value)'
|
|
134 |
|
|
135 |
#hgCommandTimeout
|
|
136 |
'The command timeout.\For slow connections (ssl-tunnel), it may make sense to increase this value.'
|
|
137 |
|
|
138 |
#hgInit
|
|
139 |
'Perform a "hg init" command to setup the repository for the very first time'
|
|
140 |
|
11165
|
141 |
#hgPushURLs
|
|
142 |
'The push-URL list. A repository-push operation will send your changes to these repositories as well'
|
|
143 |
|
|
144 |
#hgRemovePushURL
|
|
145 |
'Remove the selected repository from the push-URL list. A repository-push operation will no longer synchronize your changes with this repository'
|
|
146 |
|
11146
|
147 |
#hgRootDefault
|
|
148 |
'The default mercurial repository.\This will be used for all modules which are not listed below.'
|
|
149 |
|
|
150 |
#hgRootPerModule
|
|
151 |
'The mercurial repository for which this specific module is defined'
|
|
152 |
|
|
153 |
#hgRootPerModuleModule
|
|
154 |
'The module for which a specific mercurial repository is defined'
|
|
155 |
|
|
156 |
#hgRootPerModuleRoot
|
|
157 |
'The mercurial repository for which this specific module is defined'
|
|
158 |
|
11130
|
159 |
#loginPerModuleRoot
|
|
160 |
'Execute a "cvs login" operation for this CVSROOT'
|
|
161 |
|
|
162 |
#moveManagerDown
|
|
163 |
'Move the selected entry down in the list.\(The first matching definition is used to determine which repository type is used.)'
|
|
164 |
|
|
165 |
#moveManagerUp
|
|
166 |
'Move the selected entry up in the list.\(The first matching definition is used to determine which repository type is used.)'
|
|
167 |
|
|
168 |
#perPackageConfiguration
|
|
169 |
'Define per-package repository types here.\For any non-matching package-id, the default repository type is used.'
|
|
170 |
|
|
171 |
#removePerModuleRoot
|
|
172 |
'Remove this per-module entry'
|
|
173 |
|
|
174 |
#removePerPackageManager
|
|
175 |
'Remove the selected per-package manager definition'
|
|
176 |
|
|
177 |
#sourceCache
|
|
178 |
'After checkout, keep the sourcefile in a local file (to avoid repeated checkout of the same file)'
|
|
179 |
|
|
180 |
#useLocalSources
|
|
181 |
'If present, use the local source files (from the development system''s tree).\If checkout fails, these will always be tried as second chance.'
|
|
182 |
|
|
183 |
#useManager
|
|
184 |
'Enable source code management.\If off, all queries for sourcecode are resolved by local files (offline operation)'
|
|
185 |
|
|
186 |
#verboseSourceCodeAccess
|
|
187 |
'Output debugging messages on the Transcript\(mostly traces of the underlying scm mechanism, such as cvs commands)'
|
|
188 |
|
|
189 |
)
|
|
190 |
|
11165
|
191 |
"Modified: / 20-01-2012 / 13:50:42 / cg"
|
11130
|
192 |
! !
|
|
193 |
|
|
194 |
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'image specs'!
|
|
195 |
|
|
196 |
defaultIcon
|
11133
|
197 |
^ self defaultIcon3
|
11130
|
198 |
|
|
199 |
"Created: / 22-12-2011 / 13:47:11 / cg"
|
|
200 |
!
|
|
201 |
|
|
202 |
defaultIcon1
|
|
203 |
"This resource specification was automatically generated
|
|
204 |
by the ImageEditor of ST/X."
|
|
205 |
|
|
206 |
"Do not manually edit this!! If it is corrupted,
|
|
207 |
the ImageEditor may not be able to read the specification."
|
|
208 |
|
|
209 |
"
|
|
210 |
self defaultIcon1 inspect
|
|
211 |
ImageEditor openOnClass:self andSelector:#defaultIcon1
|
|
212 |
Icon flushCachedIcons
|
|
213 |
"
|
|
214 |
|
|
215 |
<resource: #image>
|
|
216 |
|
|
217 |
^Icon
|
11132
|
218 |
constantNamed:'MercurialSourceCodeManagementSettingsAppl class defaultIcon1'
|
11130
|
219 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
|
11132
|
220 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PHCA@PEA D@@@@@@@@@@@@@@@@@@@@GA@ HB@ HB@$C
|
|
221 |
B @@@@@@@@@@@@@@@@,IB@ HB@ HB@ LA@4@@@@@@@@@@@@@C LLB@ HB@ HB@ HB@<P@@@@@@@@@@@@BPPHB@ HB@ HB@ HBADR@@@@@@@@@@@@D0$HB@ H
|
|
222 |
B@ HB@ HB@ SA@@@@@@@@@@@@APLB@ HB@ HB@ HB@ IEP@@@@@VA@LW@Q OC@ HB@ HB@ HB@ LFPD@@@DLBP\Q@@@ZF0 LB@ HB@ HB@ IF@X@@A0HA!!4^
|
|
223 |
@@@SF!!<_@@$HB@ HB@0FH@L@@BDI@AHC@@@@HP@O@BHIB@ HB@LFH0H@@@@ABQ0@@@@@@@@!!A@@DB@ HCA0OI@8@@@@@@@@@@A\@@@@@@@XDB@ HBP8%I D@
|
|
224 |
@@@@@@@BA@$D@P@@@@8IB@ LC P''C0@@@@@@@@DIB@ HBQ0@@@8LA@XA@Q<Y@0@@@@@@@@PLB@ DA@@@@@PCB" JC2T[@@@@@@@@@@PLB@PPBP@@@@P)JB$I
|
|
225 |
J!!HA@@@@@@@@@B,LBQXCKB,@A XACQP-F0L@@@@@@@@@@@(RK"T,D0@@BA,/LCD@L @@@@@@@@@@@@@@@ $!!@@@@@QTTC@ 3@@@@@@@@@@@@@@@@@@@@@@@@
|
|
226 |
@CP\L0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[143 136 136 208 208 208 192 192 184 176 176 176 175 168 168 176 168 168 191 184 184 191 176 176 159 152 144 160 160 160 239 232 224 192 184 184 159 152 160 207 192 200 207 200 200 144 144 144 224 224 224 160 152 160 127 120 120 144 144 136 128 128 128 111 104 104 207 200 208 239 232 240 95 88 88 96 96 96 79 72 80 112 112 120 192 192 200 223 208 208 111 104 96 80 80 80 64 64 64 223 216 216 128 120 128 31 24 24 32 32 24 79 72 64 64 56 56 47 40 40 240 240 240 239 224 224 63 48 48 191 184 176 112 112 104 64 64 56 63 56 56 48 48 48 48 40 48 127 112 120 160 160 168 208 200 208 224 224 216]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@G>@@O? @_?0@??8@??8@??<@??<O??>__?>_O?>_G?>NA?>@P_>A<_<C>_<C>_8C>_8C>?0C<? @8?@@@\@@@@@') ; yourself); yourself]
|
11130
|
227 |
!
|
|
228 |
|
|
229 |
defaultIcon2
|
|
230 |
"This resource specification was automatically generated
|
|
231 |
by the ImageEditor of ST/X."
|
|
232 |
|
|
233 |
"Do not manually edit this!! If it is corrupted,
|
|
234 |
the ImageEditor may not be able to read the specification."
|
|
235 |
|
|
236 |
"
|
|
237 |
self defaultIcon2 inspect
|
|
238 |
ImageEditor openOnClass:self andSelector:#defaultIcon2
|
|
239 |
Icon flushCachedIcons
|
|
240 |
"
|
|
241 |
|
|
242 |
<resource: #image>
|
|
243 |
|
|
244 |
^Icon
|
11132
|
245 |
constantNamed:'MercurialSourceCodeManagementSettingsAppl class defaultIcon2'
|
11130
|
246 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
|
11132
|
247 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PHCA@PEA D@@@@@@@@@@@@@@@@@@@@GA@ HB@ HB@$C
|
|
248 |
B @@@@@@@@@@@@@@@@,IB@ HB@ HB@ LA@4@@@@@@@@@@@@@C LLB@ HB@ HB@ HB@<P@@@@@@@@@@@@BPPHB@ HB@ HB@ HBADR@@@@@@@@@@@@D0$HB@ H
|
|
249 |
B@ HB@ HB@ SA@@@@@@@@@@@@APLB@ HB@ HB@ HB@ IEP@@@@@VA@LW@Q OC@ HB@ HB@ HB@ LFPD@@@DLBP\Q@@@ZF0 LB@ HB@ HB@ IF@X@@A0HA!!4^
|
|
250 |
@@@SF!!<_@@$HB@ HB@0FH@L@@BDI@AH:N#\7HP@O@BHIB@ HB@LFH0H@@@@ABS\:N#(:M0@!!A@@DB@ HCA0OI@8@@@@@M#(:@A\@@C\@@@XDB@ HBP8%I D@
|
|
251 |
@@@@M3 7A@$D@P@@@@8IB@ LC P''C0@@@C\7N#$:N0 HHA0@@@8LA@XA@Q<Y@0@@@@@7NS(7B@ HB@@@@PCB" JC2T[@@@@@@@@M34LBB@<OAP @@P)JB$I
|
|
252 |
J!!HA@@@@@@@@@B,LHB@YHB@ A XACQP-F0L@@@@@@@@ @@(RK"T H@@@BA,/LCD@L @@@@@@@@@@HB@ HB@ MP@@@QTTC@ 3@@@@@@@@@@@@@A$ HB@5@@@@
|
|
253 |
@CP\L0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[143 136 136 208 208 208 192 192 184 176 176 176 175 168 168 176 168 168 191 184 184 191 176 176 159 152 144 160 160 160 239 232 224 192 184 184 159 152 160 207 192 200 207 200 200 144 144 144 224 224 224 160 152 160 127 120 120 144 144 136 128 128 128 111 104 104 207 200 208 239 232 240 95 88 88 96 96 96 79 72 80 112 112 120 192 192 200 223 208 208 111 104 96 80 80 80 64 64 64 223 216 216 128 120 128 31 24 24 32 32 24 79 72 64 64 56 56 47 40 40 240 240 240 239 224 224 63 48 48 191 184 176 112 112 104 64 64 56 63 56 56 48 48 48 48 40 48 127 112 120 160 160 168 208 200 208 224 224 216 0 0 0 0 64 0 32 96 32 96 192 128 32 128 64 32 160 64 32 128 32 32 32 32 32 64 32]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@G>@@O? @_?0@??8@??8@??<@??<O??>__?>_O?>_??>O=?>GR_>G<_<_>_<O>_8G?_8C??0K<? G<?@C8\@@@@@') ; yourself); yourself]
|
11133
|
254 |
!
|
|
255 |
|
|
256 |
defaultIcon3
|
|
257 |
"This resource specification was automatically generated
|
|
258 |
by the ImageEditor of ST/X."
|
|
259 |
|
|
260 |
"Do not manually edit this!! If it is corrupted,
|
|
261 |
the ImageEditor may not be able to read the specification."
|
|
262 |
|
|
263 |
"
|
|
264 |
self defaultIcon3 inspect
|
|
265 |
ImageEditor openOnClass:self andSelector:#defaultIcon3
|
|
266 |
Icon flushCachedIcons
|
|
267 |
"
|
|
268 |
|
|
269 |
<resource: #image>
|
|
270 |
|
|
271 |
^Icon
|
|
272 |
constantNamed:'MercurialSourceCodeManagementSettingsAppl class defaultIcon3'
|
|
273 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
|
|
274 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PHCA@PEA D@@@@@@@@@@@@@@@@@@@@GA@ HB@ HB@$C
|
|
275 |
B @@@@@@@@@@@@@@@@,IB@ HB@ HB@ LA@4@@@@@@@@@@@@@C LLB@ HB@ HB@ HB@<P@@@@@@@@@@@@BPPHB@ HB@ HB@ HBADR@@@@@@@@@@@@D0$HB@ H
|
|
276 |
B@ HB@ HB@ SA@@@@@@@@@@@@APLB@ HB@ HB@ HB@ IEP@@@@@VA@LW@Q OC@ HB@ HB@ HB@ LFPD@@@DLBP\Q@@@ZF0 LB@ HB@ HB@ IF@X@@A0HA!!4^
|
|
277 |
@@@SF!!<_@@$HB@ HB@0FH@L@@BDI@AH:N#\7HP@O@BHIB@ HB@LFH0H@@@@ABS\:N#(:M0@!!A@@DB@ HCA0OI@8@@@@@M#(:@A\@@C\@@@XDB@ HBP8%I D@
|
|
278 |
@@@@M3 7A@$D@P@@@@8IB@ LC P''C0@@@C\7N#$:N0 HOA0@@@8LA@XA@Q<Y@0@@@@@7NS(7B@ <OC0@@@PCB" JC2T[@@@@@@@@M4@LBC0?O38<@@P)JB$I
|
|
279 |
J!!HA@@@@@@@@@B,LOC0=OC0<A XACQP-F0L@@@@@@@@<@@(RK"T<O@@@BA,/LCD@L @@@@@@@@@@OC0<OC0<MP@@@QTTC@ 3@@@@@@@@@@@@@C4<OC05@@@@
|
|
280 |
@CP\L0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[174 169 169 255 255 255 233 233 230 216 216 216 213 209 209 214 209 209 232 229 229 229 223 223 191 187 181 197 197 197 255 255 255 233 230 230 194 189 194 247 244 245 251 250 250 177 177 177 255 255 255 194 189 194 155 149 149 175 175 169 157 157 157 136 128 128 251 251 251 255 255 255 117 108 108 118 118 118 97 89 98 139 139 147 240 240 242 255 255 255 137 128 118 98 98 98 79 79 79 255 255 255 156 149 156 38 30 30 39 39 30 97 89 79 79 69 69 58 49 49 255 255 255 255 255 255 77 59 59 229 226 223 137 137 128 79 79 69 77 69 69 59 59 59 59 49 59 154 140 147 199 199 204 251 251 251 255 255 255 0 0 0 0 64 0 32 96 32 96 192 128 32 128 64 32 160 64 32 128 32 64 64 64 96 96 96 128 128 128 32 32 32 32 64 32]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@G>@@O? @_?0@??8@??8@??<@??<O??>__?>_O?>_??>O=?>GR_>G<_<_>_<O>_8G?_8C??0K<? G<?@C8\@@@@@') ; yourself); yourself]
|
11130
|
281 |
! !
|
|
282 |
|
|
283 |
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'interface specs'!
|
|
284 |
|
|
285 |
windowSpec
|
|
286 |
"This resource specification was automatically generated
|
|
287 |
by the UIPainter of ST/X."
|
|
288 |
|
|
289 |
"Do not manually edit this!! If it is corrupted,
|
|
290 |
the UIPainter may not be able to read the specification."
|
|
291 |
|
|
292 |
"
|
|
293 |
UIPainter new openOnClass:MercurialSourceCodeManagementSettingsAppl andSelector:#windowSpec
|
|
294 |
MercurialSourceCodeManagementSettingsAppl new openInterface:#windowSpec
|
|
295 |
MercurialSourceCodeManagementSettingsAppl open
|
|
296 |
"
|
|
297 |
|
|
298 |
<resource: #canvas>
|
|
299 |
|
|
300 |
^
|
|
301 |
#(FullSpec
|
|
302 |
name: windowSpec
|
|
303 |
window:
|
|
304 |
(WindowSpec
|
|
305 |
label: 'Mercurial Settings'
|
|
306 |
name: 'Mercurial Settings'
|
|
307 |
min: (Point 10 10)
|
11165
|
308 |
bounds: (Rectangle 0 0 811 693)
|
11130
|
309 |
)
|
|
310 |
component:
|
|
311 |
(SpecCollection
|
|
312 |
collection: (
|
|
313 |
(VerticalPanelViewSpec
|
|
314 |
name: 'VerticalPanel3'
|
|
315 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
316 |
horizontalLayout: fit
|
|
317 |
verticalLayout: topSpace
|
|
318 |
horizontalSpace: 3
|
|
319 |
verticalSpace: 4
|
|
320 |
component:
|
|
321 |
(SpecCollection
|
|
322 |
collection: (
|
|
323 |
(ViewSpec
|
|
324 |
name: 'ManagerSetupBoxx'
|
|
325 |
component:
|
|
326 |
(SpecCollection
|
|
327 |
collection: (
|
|
328 |
(FramedBoxSpec
|
|
329 |
label: 'Mercurial Sourcecode Manager Settings'
|
|
330 |
name: 'HGSetupBox'
|
|
331 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
332 |
labelPosition: topLeft
|
|
333 |
translateLabel: true
|
|
334 |
component:
|
|
335 |
(SpecCollection
|
|
336 |
collection: (
|
|
337 |
(CheckBoxSpec
|
|
338 |
label: 'Show in Browser Menus'
|
|
339 |
name: 'CheckBox1'
|
|
340 |
layout: (LayoutFrame 0 0 5 0 0 1 27 0)
|
|
341 |
activeHelpKey: shownInBrowserMenus
|
|
342 |
model: shownInBrowserMenusHolder
|
|
343 |
translateLabel: true
|
|
344 |
)
|
|
345 |
(ViewSpec
|
|
346 |
name: 'Box1'
|
|
347 |
layout: (LayoutFrame 0 0 35 0 0 1 60 0)
|
|
348 |
component:
|
|
349 |
(SpecCollection
|
|
350 |
collection: (
|
|
351 |
(LabelSpec
|
|
352 |
label: 'HG Command or Path:'
|
|
353 |
name: 'Label1'
|
|
354 |
layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0)
|
11146
|
355 |
activeHelpKey: hgCommand
|
11130
|
356 |
level: 0
|
|
357 |
translateLabel: true
|
|
358 |
adjust: right
|
|
359 |
)
|
|
360 |
(InputFieldSpec
|
|
361 |
name: 'HGExecutableField'
|
|
362 |
layout: (LayoutFrame 64 0.25 0 0 0 1 22 0)
|
11146
|
363 |
activeHelpKey: hgCommand
|
11130
|
364 |
tabable: true
|
11133
|
365 |
model: hgExecutableHolder
|
11130
|
366 |
acceptChannel: acceptChannel
|
|
367 |
acceptOnPointerLeave: true
|
|
368 |
)
|
|
369 |
)
|
|
370 |
|
|
371 |
)
|
|
372 |
)
|
|
373 |
(ViewSpec
|
|
374 |
name: 'Box12'
|
|
375 |
layout: (LayoutFrame 0 0 61 0 0 1 86 0)
|
|
376 |
component:
|
|
377 |
(SpecCollection
|
|
378 |
collection: (
|
|
379 |
(LabelSpec
|
|
380 |
label: 'HG Command Timeout:'
|
|
381 |
name: 'Label2'
|
|
382 |
layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0)
|
11146
|
383 |
activeHelpKey: hgCommandTimeout
|
11130
|
384 |
level: 0
|
|
385 |
translateLabel: true
|
|
386 |
adjust: right
|
|
387 |
)
|
|
388 |
(InputFieldSpec
|
|
389 |
name: 'EntryField1'
|
11175
|
390 |
layout: (LayoutFrame 64 0.25 0 0 168 0.25 22 0)
|
11146
|
391 |
activeHelpKey: hgCommandTimeout
|
11130
|
392 |
tabable: true
|
|
393 |
model: hgCommandTimeoutHolder
|
11175
|
394 |
type: timeDuration
|
11130
|
395 |
acceptChannel: acceptChannel
|
|
396 |
acceptOnPointerLeave: true
|
|
397 |
)
|
|
398 |
)
|
|
399 |
|
|
400 |
)
|
|
401 |
)
|
|
402 |
(ViewSpec
|
|
403 |
name: 'Box7'
|
|
404 |
layout: (LayoutFrame 0 0.0 92 0 0 1 117 0)
|
|
405 |
component:
|
|
406 |
(SpecCollection
|
|
407 |
collection: (
|
|
408 |
(LabelSpec
|
|
409 |
label: 'Default Repository:'
|
|
410 |
name: 'defaultCvsRootLabel'
|
|
411 |
layout: (LayoutFrame 0 0.0 2 0 60 0.25 24 0)
|
11146
|
412 |
activeHelpKey: hgRootDefault
|
11130
|
413 |
level: 0
|
|
414 |
translateLabel: true
|
|
415 |
adjust: right
|
|
416 |
)
|
|
417 |
(ComboBoxSpec
|
11133
|
418 |
name: 'RepositoryComboBox'
|
11130
|
419 |
layout: (LayoutFrame 64 0.25 2 0 0 1 24 0)
|
11146
|
420 |
activeHelpKey: hgRootDefault
|
11130
|
421 |
tabable: true
|
11133
|
422 |
model: repositoryHolder
|
11130
|
423 |
immediateAccept: true
|
|
424 |
acceptOnLeave: true
|
|
425 |
acceptOnReturn: true
|
|
426 |
acceptOnTab: true
|
|
427 |
acceptOnLostFocus: true
|
|
428 |
acceptChannel: acceptChannel
|
|
429 |
acceptOnPointerLeave: true
|
11133
|
430 |
comboList: repositoryPrototypeList
|
11130
|
431 |
)
|
|
432 |
)
|
|
433 |
|
|
434 |
)
|
|
435 |
)
|
|
436 |
(ActionButtonSpec
|
11133
|
437 |
label: 'Init'
|
|
438 |
name: 'Button2'
|
|
439 |
layout: (LayoutFrame -201 1 122 0 -101 1 144 0)
|
11146
|
440 |
activeHelpKey: hgInit
|
11133
|
441 |
translateLabel: true
|
|
442 |
tabable: true
|
|
443 |
model: initializeRepository
|
|
444 |
enableChannel: cvsLoginEnabled
|
|
445 |
)
|
|
446 |
(ActionButtonSpec
|
11130
|
447 |
label: 'Check Access'
|
|
448 |
name: 'Button1'
|
11133
|
449 |
layout: (LayoutFrame -100 1 122 0 0 1 144 0)
|
11146
|
450 |
activeHelpKey: hgCheckAccess
|
11130
|
451 |
translateLabel: true
|
|
452 |
tabable: true
|
|
453 |
model: checkAccess
|
|
454 |
enableChannel: cvsLoginEnabled
|
|
455 |
)
|
|
456 |
(LabelSpec
|
|
457 |
label: 'Repository per Module:'
|
|
458 |
name: 'knownModulesLabel'
|
|
459 |
layout: (LayoutFrame 0 0.0 150 0 60 0.25 172 0)
|
11146
|
460 |
activeHelpKey: hgRootPerModule
|
11130
|
461 |
translateLabel: true
|
|
462 |
adjust: right
|
|
463 |
)
|
|
464 |
(SequenceViewSpec
|
|
465 |
name: 'List1'
|
|
466 |
layout: (LayoutFrame 64 0.25 150 0 0 1 269 0)
|
11146
|
467 |
activeHelpKey: hgRootPerModule
|
11130
|
468 |
tabable: true
|
|
469 |
model: selectedPerModuleRepository
|
|
470 |
hasHorizontalScrollBar: true
|
|
471 |
hasVerticalScrollBar: true
|
|
472 |
miniScrollerHorizontal: true
|
|
473 |
useIndex: false
|
|
474 |
sequenceList: listOfModules
|
|
475 |
)
|
|
476 |
(LabelSpec
|
|
477 |
label: 'Module:'
|
|
478 |
name: 'moduleLabel'
|
|
479 |
layout: (LayoutFrame 0 0.0 279 0 60 0.25 296 0)
|
11146
|
480 |
activeHelpKey: hgRootPerModuleModule
|
11130
|
481 |
translateLabel: true
|
|
482 |
adjust: right
|
|
483 |
)
|
|
484 |
(InputFieldSpec
|
|
485 |
name: 'perModuleRepositoryModuleEntryField'
|
|
486 |
layout: (LayoutFrame 64 0.25 275 0 0 1 297 0)
|
11146
|
487 |
activeHelpKey: hgRootPerModuleModule
|
11130
|
488 |
tabable: true
|
|
489 |
model: perModuleRepositoryModule
|
|
490 |
acceptChannel: acceptChannel
|
|
491 |
acceptOnPointerLeave: true
|
|
492 |
)
|
|
493 |
(LabelSpec
|
|
494 |
label: 'Mercurial Repository:'
|
|
495 |
name: 'hgRepository'
|
|
496 |
layout: (LayoutFrame 0 0.0 304 0 60 0.25 321 0)
|
11146
|
497 |
activeHelpKey: hgRootPerModuleRoot
|
11130
|
498 |
translateLabel: true
|
|
499 |
adjust: right
|
|
500 |
)
|
|
501 |
(ComboBoxSpec
|
|
502 |
name: 'perModuleRepositoryComboBox'
|
|
503 |
layout: (LayoutFrame 64 0.25 300 0 0 1.0 322 0)
|
11146
|
504 |
activeHelpKey: hgRootPerModuleRoot
|
11130
|
505 |
tabable: true
|
11199
|
506 |
model: perModuleRepository
|
11130
|
507 |
immediateAccept: true
|
|
508 |
acceptOnLeave: true
|
|
509 |
acceptOnReturn: true
|
|
510 |
acceptOnTab: true
|
|
511 |
acceptOnLostFocus: true
|
|
512 |
acceptChannel: acceptChannel
|
|
513 |
acceptOnPointerLeave: true
|
|
514 |
comboList: hgRepositoryPrototypeList
|
|
515 |
)
|
|
516 |
(HorizontalPanelViewSpec
|
|
517 |
name: 'HorizontalPanel2'
|
|
518 |
layout: (LayoutFrame 64 0.25 327 0 -1 1 352 0)
|
11133
|
519 |
horizontalLayout: right
|
11130
|
520 |
verticalLayout: center
|
|
521 |
horizontalSpace: 3
|
|
522 |
verticalSpace: 3
|
|
523 |
component:
|
|
524 |
(SpecCollection
|
|
525 |
collection: (
|
|
526 |
(ActionButtonSpec
|
|
527 |
label: 'Add/Apply'
|
|
528 |
name: 'addButton'
|
|
529 |
activeHelpKey: addPerModuleRoot
|
|
530 |
translateLabel: true
|
|
531 |
tabable: true
|
|
532 |
model: addPerModuleRoot
|
11133
|
533 |
extent: (Point 100 22)
|
11130
|
534 |
)
|
|
535 |
(ActionButtonSpec
|
|
536 |
label: 'Remove'
|
|
537 |
name: 'removeButton'
|
|
538 |
activeHelpKey: removePerModuleRoot
|
|
539 |
translateLabel: true
|
|
540 |
tabable: true
|
|
541 |
model: removePerModuleRoot
|
|
542 |
enableChannel: removeEnabled
|
11133
|
543 |
extent: (Point 100 22)
|
11130
|
544 |
)
|
|
545 |
(ViewSpec
|
|
546 |
name: 'Box11'
|
11133
|
547 |
extent: (Point 100 10)
|
|
548 |
)
|
|
549 |
(ActionButtonSpec
|
|
550 |
label: 'Init'
|
|
551 |
name: 'Button3'
|
11146
|
552 |
activeHelpKey: hgLoginPerModuleRoot
|
11133
|
553 |
translateLabel: true
|
|
554 |
tabable: true
|
|
555 |
model: initializePerModuleRepository
|
|
556 |
enableChannel: cvsLoginEnabled
|
|
557 |
extent: (Point 100 22)
|
11130
|
558 |
)
|
|
559 |
(ActionButtonSpec
|
|
560 |
label: 'Check Access'
|
|
561 |
name: 'checkButton2'
|
11146
|
562 |
activeHelpKey: hgCheckAccessPerModuleRoot
|
11130
|
563 |
translateLabel: true
|
|
564 |
tabable: true
|
|
565 |
model: checkAccessPerModuleRepository
|
|
566 |
enableChannel: cvsLoginInModuleEnabled
|
11133
|
567 |
extent: (Point 100 22)
|
11130
|
568 |
)
|
|
569 |
)
|
|
570 |
|
|
571 |
)
|
|
572 |
)
|
|
573 |
)
|
|
574 |
|
|
575 |
)
|
|
576 |
)
|
|
577 |
)
|
|
578 |
|
|
579 |
)
|
11165
|
580 |
extent: (Point 811 389)
|
|
581 |
)
|
|
582 |
(FramedBoxSpec
|
|
583 |
label: 'Push URLs'
|
|
584 |
name: 'FramedBox2'
|
|
585 |
labelPosition: topLeft
|
|
586 |
translateLabel: true
|
|
587 |
component:
|
|
588 |
(SpecCollection
|
|
589 |
collection: (
|
|
590 |
(LabelSpec
|
|
591 |
label: 'URL to Push To:'
|
|
592 |
name: 'Label6'
|
|
593 |
layout: (LayoutFrame 0 0.0 14 0 60 0.25 36 0)
|
|
594 |
activeHelpKey: hgPushURLs
|
|
595 |
translateLabel: true
|
|
596 |
adjust: right
|
|
597 |
)
|
|
598 |
(SequenceViewSpec
|
|
599 |
name: 'List2'
|
|
600 |
layout: (LayoutFrame 64 0.25 14 0 0 1 90 0)
|
|
601 |
activeHelpKey: hgPushURLs
|
|
602 |
tabable: true
|
|
603 |
model: selectedPushURL
|
|
604 |
hasHorizontalScrollBar: true
|
|
605 |
hasVerticalScrollBar: true
|
|
606 |
miniScrollerHorizontal: true
|
|
607 |
useIndex: false
|
|
608 |
sequenceList: listOfPushURLs
|
|
609 |
)
|
|
610 |
(LabelSpec
|
|
611 |
label: 'URL:'
|
|
612 |
name: 'Label8'
|
|
613 |
layout: (LayoutFrame 0 0.0 101 0 60 0.25 118 0)
|
|
614 |
activeHelpKey: hgAddPushURL
|
|
615 |
translateLabel: true
|
|
616 |
adjust: right
|
|
617 |
)
|
|
618 |
(ComboBoxSpec
|
|
619 |
name: 'ComboBox2'
|
|
620 |
layout: (LayoutFrame 64 0.25 97 0 0 1.0 119 0)
|
|
621 |
activeHelpKey: hgAddPushURL
|
|
622 |
tabable: true
|
|
623 |
model: pushURL
|
|
624 |
immediateAccept: true
|
|
625 |
acceptOnLeave: true
|
|
626 |
acceptOnReturn: true
|
|
627 |
acceptOnTab: true
|
|
628 |
acceptOnLostFocus: true
|
|
629 |
acceptChannel: acceptChannel
|
|
630 |
acceptOnPointerLeave: true
|
11348
|
631 |
comboList: pushURLPrototypeList
|
11165
|
632 |
)
|
|
633 |
(HorizontalPanelViewSpec
|
|
634 |
name: 'HorizontalPanel3'
|
|
635 |
layout: (LayoutFrame 64 0.25 125 0 -1 1 150 0)
|
|
636 |
horizontalLayout: right
|
|
637 |
verticalLayout: center
|
|
638 |
horizontalSpace: 3
|
|
639 |
verticalSpace: 3
|
|
640 |
component:
|
|
641 |
(SpecCollection
|
|
642 |
collection: (
|
|
643 |
(ActionButtonSpec
|
|
644 |
label: 'Add/Apply'
|
|
645 |
name: 'Button6'
|
|
646 |
activeHelpKey: hgAddPushURL
|
|
647 |
translateLabel: true
|
|
648 |
tabable: true
|
|
649 |
model: addPushURL
|
|
650 |
extent: (Point 100 22)
|
|
651 |
)
|
|
652 |
(ActionButtonSpec
|
|
653 |
label: 'Remove'
|
|
654 |
name: 'Button7'
|
|
655 |
activeHelpKey: hgRemovePushURL
|
|
656 |
translateLabel: true
|
|
657 |
tabable: true
|
|
658 |
model: removePushURL
|
11348
|
659 |
enableChannel: removePushURLEnabled
|
11165
|
660 |
extent: (Point 100 22)
|
|
661 |
)
|
|
662 |
(ViewSpec
|
|
663 |
name: 'Box17'
|
|
664 |
extent: (Point 100 10)
|
|
665 |
)
|
|
666 |
(ViewSpec
|
|
667 |
name: 'Box18'
|
|
668 |
extent: (Point 100 10)
|
|
669 |
)
|
|
670 |
(ViewSpec
|
|
671 |
name: 'Box19'
|
|
672 |
extent: (Point 99 9)
|
|
673 |
)
|
|
674 |
)
|
|
675 |
|
|
676 |
)
|
|
677 |
)
|
|
678 |
)
|
|
679 |
|
|
680 |
)
|
|
681 |
extent: (Point 811 187)
|
11130
|
682 |
)
|
|
683 |
(FramedBoxSpec
|
|
684 |
label: 'Source Cache'
|
|
685 |
name: 'FramedBox1'
|
|
686 |
visibilityChannel: false
|
|
687 |
labelPosition: topLeft
|
|
688 |
translateLabel: true
|
|
689 |
component:
|
|
690 |
(SpecCollection
|
|
691 |
collection: (
|
|
692 |
(ViewSpec
|
|
693 |
name: 'SourceCacheDirBox'
|
|
694 |
layout: (LayoutFrame 0 0 0 0 0 1 30 0)
|
|
695 |
component:
|
|
696 |
(SpecCollection
|
|
697 |
collection: (
|
|
698 |
(LabelSpec
|
|
699 |
label: 'Source Cache Dir:'
|
|
700 |
name: 'SourceCacheDirLabel'
|
|
701 |
layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0)
|
|
702 |
translateLabel: true
|
|
703 |
adjust: right
|
|
704 |
)
|
|
705 |
(InputFieldSpec
|
|
706 |
name: 'SourceCacheDirEntryField'
|
|
707 |
layout: (LayoutFrame 64 0.25 0 0 0 1 22 0)
|
|
708 |
model: sourceCacheDir
|
|
709 |
immediateAccept: false
|
|
710 |
acceptOnReturn: true
|
|
711 |
acceptOnTab: true
|
|
712 |
acceptOnLostFocus: true
|
|
713 |
acceptOnPointerLeave: true
|
|
714 |
)
|
|
715 |
)
|
|
716 |
|
|
717 |
)
|
|
718 |
)
|
|
719 |
(HorizontalPanelViewSpec
|
|
720 |
name: 'CacheActionsHorizontalPanel'
|
|
721 |
layout: (LayoutFrame 44 0.25 33 0 0 1 67 0)
|
|
722 |
horizontalLayout: fitSpace
|
|
723 |
verticalLayout: center
|
|
724 |
horizontalSpace: 3
|
|
725 |
verticalSpace: 3
|
|
726 |
component:
|
|
727 |
(SpecCollection
|
|
728 |
collection: (
|
|
729 |
(ActionButtonSpec
|
|
730 |
label: 'Flush Cache now'
|
|
731 |
name: 'FlushCacheNowButton'
|
|
732 |
translateLabel: true
|
|
733 |
tabable: true
|
|
734 |
model: flushSourceCache
|
11165
|
735 |
extent: (Point 265 22)
|
11130
|
736 |
)
|
|
737 |
(ActionButtonSpec
|
|
738 |
label: 'Condense Cache now'
|
|
739 |
name: 'CondenseCacheNowButton'
|
|
740 |
translateLabel: true
|
|
741 |
tabable: true
|
|
742 |
model: condenseSourceCache
|
11165
|
743 |
extent: (Point 265 22)
|
11130
|
744 |
)
|
|
745 |
)
|
|
746 |
|
|
747 |
)
|
|
748 |
)
|
|
749 |
)
|
|
750 |
|
|
751 |
)
|
11165
|
752 |
extent: (Point 811 95)
|
11130
|
753 |
)
|
|
754 |
)
|
|
755 |
|
|
756 |
)
|
|
757 |
)
|
|
758 |
)
|
|
759 |
|
|
760 |
)
|
|
761 |
)
|
11348
|
762 |
|
|
763 |
"Modified: / 02-03-2012 / 15:54:42 / cg"
|
11130
|
764 |
! !
|
|
765 |
|
|
766 |
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'queries'!
|
|
767 |
|
|
768 |
managerClass
|
|
769 |
"backlink to my manager class (needed by the settings app)"
|
|
770 |
|
|
771 |
^ MercurialSourceCodeManager
|
|
772 |
|
|
773 |
"Created: / 19-04-2011 / 12:46:52 / cg"
|
|
774 |
! !
|
|
775 |
|
|
776 |
!MercurialSourceCodeManagementSettingsAppl methodsFor:'actions'!
|
|
777 |
|
|
778 |
addModule:module withData:data
|
|
779 |
(self listOfModules includes:module) ifFalse:[
|
|
780 |
self listOfModules add:module; sort.
|
|
781 |
].
|
|
782 |
repositoriesPerModule at:module put:data.
|
|
783 |
|
|
784 |
self updateModifiedChannel.
|
|
785 |
|
|
786 |
"Created: / 08-11-2006 / 19:25:21 / cg"
|
|
787 |
!
|
|
788 |
|
|
789 |
basicReadSettings
|
|
790 |
|infoPerModule|
|
|
791 |
|
|
792 |
self initialize.
|
|
793 |
|
|
794 |
self sourceCacheDir value:(MercurialSourceCodeManager cacheDirectoryName).
|
|
795 |
|
|
796 |
repository := MercurialSourceCodeManager repositoryName.
|
11133
|
797 |
self repositoryHolder value:(repository ? '') asValue.
|
11130
|
798 |
|
|
799 |
infoPerModule := MercurialSourceCodeManager repositoryInfoPerModule.
|
|
800 |
infoPerModule keysAndValuesDo:[:module :info |
|
|
801 |
repositoriesPerModule at:module put:(Array with:MercurialSourceCodeManager with:info).
|
|
802 |
].
|
|
803 |
|
|
804 |
self repositoryHolder value:MercurialSourceCodeManager repositoryName ? self class defaultRepositoryName.
|
|
805 |
self hgExecutableHolder value:MercurialSourceCodeManager hgExecutable.
|
|
806 |
self hgCommandTimeoutHolder value:MercurialSourceCodeManager hgCommandTimeout.
|
|
807 |
self verboseSourceCodeAccess value:MercurialSourceCodeManager verboseSourceCodeAccess.
|
|
808 |
self shownInBrowserMenusHolder value:MercurialSourceCodeManager shownInBrowserMenus.
|
|
809 |
|
|
810 |
repositoriesPerModule notNil ifTrue:[
|
|
811 |
self listOfModules removeAll.
|
|
812 |
listOfModules addAll:repositoriesPerModule keys asList.
|
|
813 |
].
|
|
814 |
"/ self selectedPerModuleRootChanged.
|
|
815 |
|
11133
|
816 |
"Modified: / 14-01-2012 / 23:59:03 / cg"
|
11130
|
817 |
!
|
|
818 |
|
|
819 |
basicSaveSettings
|
|
820 |
|modules nm fn infoPerModule|
|
|
821 |
|
|
822 |
nm := self sourceCacheDir value.
|
|
823 |
nm notEmptyOrNil ifTrue:[
|
|
824 |
(fn := nm asFilename) exists ifFalse:[
|
|
825 |
(self confirm:('Mercurial cache directory ''' , nm , ''' does not exist\create ?' withCRs)) ifTrue:[
|
|
826 |
fn recursiveMakeDirectory;
|
|
827 |
makeReadableForAll;
|
|
828 |
makeWritableForAll;
|
|
829 |
makeExecutableForAll.
|
|
830 |
]
|
|
831 |
].
|
|
832 |
(fn isDirectory
|
|
833 |
and:[fn isReadable
|
|
834 |
and:[fn isWritable]]) ifTrue:[
|
|
835 |
MercurialSourceCodeManager cacheDirectoryName:nm.
|
|
836 |
] ifFalse:[
|
|
837 |
self warn:'Invalid sourceCache directory.'
|
|
838 |
]
|
|
839 |
].
|
|
840 |
|
|
841 |
MercurialSourceCodeManager hgCommandTimeout:(self hgCommandTimeoutHolder value).
|
|
842 |
|
|
843 |
modules := repositoriesPerModule select:[:entry | entry first == MercurialSourceCodeManager].
|
|
844 |
infoPerModule := Dictionary new.
|
|
845 |
modules keysAndValuesDo:[:module :entry |
|
|
846 |
entry first == MercurialSourceCodeManager ifTrue:[
|
|
847 |
infoPerModule at:module put:(entry second).
|
|
848 |
].
|
|
849 |
].
|
|
850 |
MercurialSourceCodeManager repositoryInfoPerModule:infoPerModule.
|
|
851 |
|
|
852 |
self basicSaveMercurialSettings.
|
|
853 |
|
|
854 |
self sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
|
|
855 |
|
|
856 |
DebugView newDebugger. "/ ???
|
|
857 |
|
|
858 |
self acceptChannel value.
|
|
859 |
|
|
860 |
"Modified: / 14-01-2012 / 19:58:46 / cg"
|
|
861 |
!
|
|
862 |
|
|
863 |
removePerModuleRoot
|
|
864 |
|module|
|
|
865 |
|
|
866 |
acceptChannel value:true.
|
11199
|
867 |
module := self perModuleRepositoryModule value.
|
11130
|
868 |
self listOfModules remove:module ifAbsent:nil.
|
|
869 |
repositoriesPerModule removeKey:module ifAbsent:nil.
|
11199
|
870 |
self perModuleRepositoryModule value:nil.
|
|
871 |
self perModuleRepository value:nil.
|
11130
|
872 |
self updateModifiedChannel.
|
|
873 |
|
11199
|
874 |
"Modified: / 26-01-2012 / 13:50:08 / cg"
|
11130
|
875 |
! !
|
|
876 |
|
|
877 |
!MercurialSourceCodeManagementSettingsAppl methodsFor:'actions - mercurial'!
|
|
878 |
|
|
879 |
addPerModuleRoot
|
11199
|
880 |
|module hgRepository|
|
11130
|
881 |
|
|
882 |
acceptChannel value:true.
|
|
883 |
|
11199
|
884 |
module := self perModuleRepositoryModule value.
|
|
885 |
hgRepository := self perModuleRepository value.
|
11130
|
886 |
|
11199
|
887 |
hgRepository size > 0 ifTrue:[
|
|
888 |
self addModule:module withData:(Array with:MercurialSourceCodeManager with:hgRepository).
|
11130
|
889 |
].
|
|
890 |
|
11199
|
891 |
"Modified: / 26-01-2012 / 12:29:36 / cg"
|
11130
|
892 |
!
|
|
893 |
|
|
894 |
basicSaveMercurialSettings
|
|
895 |
|hgRepository|
|
|
896 |
|
|
897 |
repositoryHolder notNil ifTrue:[
|
|
898 |
repositoryHolder value size > 0 ifTrue:[
|
|
899 |
manager notNil ifTrue:[
|
|
900 |
manager initializeForRepository:repositoryHolder value.
|
|
901 |
]
|
|
902 |
].
|
|
903 |
].
|
|
904 |
MercurialSourceCodeManager hgExecutable:((self hgExecutableHolder value ? '') withoutSeparators).
|
|
905 |
MercurialSourceCodeManager initializeForRepository:(hgRepository := self repositoryHolder value).
|
|
906 |
MercurialSourceCodeManager verboseSourceCodeAccess: verboseSourceCodeAccess value.
|
|
907 |
MercurialSourceCodeManager shownInBrowserMenus:self shownInBrowserMenusHolder value.
|
|
908 |
|
|
909 |
RecentlyUsedRepositoryURLS isNil ifTrue:[
|
|
910 |
RecentlyUsedRepositoryURLS := OrderedCollection new.
|
|
911 |
].
|
|
912 |
(RecentlyUsedRepositoryURLS includes:hgRepository) ifFalse:[
|
|
913 |
RecentlyUsedRepositoryURLS addFirst:hgRepository.
|
|
914 |
RecentlyUsedRepositoryURLS size > 20 ifTrue:[
|
|
915 |
RecentlyUsedRepositoryURLS removeLast.
|
|
916 |
].
|
|
917 |
].
|
|
918 |
|
|
919 |
"Modified: / 10-01-2012 / 00:18:15 / cg"
|
|
920 |
"Created: / 14-01-2012 / 20:01:47 / cg"
|
11146
|
921 |
!
|
|
922 |
|
|
923 |
checkAccess
|
|
924 |
self halt:'unimplemented feature'
|
|
925 |
|
|
926 |
"Created: / 17-01-2012 / 17:34:53 / cg"
|
|
927 |
!
|
|
928 |
|
|
929 |
initializeRepository
|
|
930 |
self halt:'unimplemented feature'
|
|
931 |
|
|
932 |
"Created: / 17-01-2012 / 17:42:27 / cg"
|
11130
|
933 |
! !
|
|
934 |
|
|
935 |
!MercurialSourceCodeManagementSettingsAppl methodsFor:'aspects'!
|
|
936 |
|
|
937 |
hgCommandTimeoutHolder
|
|
938 |
hgCommandTimeoutHolder isNil ifTrue:[
|
|
939 |
hgCommandTimeoutHolder := ValueHolder new.
|
|
940 |
hgCommandTimeoutHolder onChangeSend:#updateModifiedChannel to:self
|
|
941 |
].
|
|
942 |
^ hgCommandTimeoutHolder.
|
|
943 |
|
|
944 |
"Created: / 14-01-2012 / 20:02:13 / cg"
|
|
945 |
!
|
|
946 |
|
|
947 |
hgExecutableHolder
|
|
948 |
hgExecutableHolder isNil ifTrue:[
|
|
949 |
hgExecutableHolder := ValueHolder new.
|
|
950 |
hgExecutableHolder onChangeSend:#updateModifiedChannel to:self
|
|
951 |
].
|
|
952 |
^ hgExecutableHolder.
|
|
953 |
|
|
954 |
"Created: / 14-01-2012 / 20:02:22 / cg"
|
|
955 |
!
|
|
956 |
|
11332
|
957 |
initialListOfModules
|
|
958 |
^ repositoriesPerModule keys asList sort.
|
11130
|
959 |
|
11332
|
960 |
"Created: / 02-03-2012 / 14:41:07 / cg"
|
11130
|
961 |
!
|
|
962 |
|
|
963 |
perModuleRepository
|
|
964 |
perModuleRepository isNil ifTrue:[
|
|
965 |
perModuleRepository := ValueHolder new.
|
|
966 |
perModuleRepository addDependent:self.
|
|
967 |
].
|
|
968 |
^ perModuleRepository.
|
|
969 |
|
|
970 |
"Created: / 14-01-2012 / 20:18:59 / cg"
|
|
971 |
!
|
|
972 |
|
|
973 |
perModuleRepositoryModule
|
|
974 |
perModuleRepositoryModule isNil ifTrue:[
|
|
975 |
perModuleRepositoryModule := ValueHolder new.
|
|
976 |
].
|
|
977 |
^ perModuleRepositoryModule.
|
|
978 |
|
|
979 |
"Created: / 14-01-2012 / 20:19:51 / cg"
|
|
980 |
!
|
|
981 |
|
11348
|
982 |
pushURL
|
|
983 |
pushURL isNil ifTrue:[
|
|
984 |
pushURL := ValueHolder new.
|
|
985 |
pushURL addDependent:self.
|
|
986 |
].
|
|
987 |
^ pushURL.
|
|
988 |
|
|
989 |
"Created: / 02-03-2012 / 15:53:11 / cg"
|
|
990 |
!
|
|
991 |
|
|
992 |
pushURLPrototypeList
|
|
993 |
|prototypeList|
|
|
994 |
|
|
995 |
pushURLPrototypeList isNil ifTrue:[
|
|
996 |
prototypeList := OrderedSet new.
|
|
997 |
|
|
998 |
"/ cvsRoot := self cvsRootFromCVSRootFileOrNil.
|
|
999 |
"/ cvsRoot notNil ifTrue:[
|
|
1000 |
"/ prototypeList add:cvsRoot
|
|
1001 |
"/ ].
|
|
1002 |
|
|
1003 |
prototypeList add:('https://inst.kilnhg.com/Repo/Foo/Bar/Baz').
|
|
1004 |
"/ prototypeList add:('https://inst.kilnhg.com/Repo/Dino-VM/Group/Dino-VM').
|
|
1005 |
pushURLPrototypeList := prototypeList asOrderedCollection.
|
|
1006 |
].
|
|
1007 |
^ pushURLPrototypeList.
|
|
1008 |
|
|
1009 |
"Created: / 02-03-2012 / 15:53:58 / cg"
|
|
1010 |
!
|
|
1011 |
|
11130
|
1012 |
repositoryHolder
|
|
1013 |
|
|
1014 |
repositoryHolder isNil ifTrue:[
|
|
1015 |
repositoryHolder := '' asValue.
|
|
1016 |
repositoryHolder addDependent:self.
|
|
1017 |
].
|
|
1018 |
^ repositoryHolder.
|
|
1019 |
|
|
1020 |
"Created: / 14-01-2012 / 20:03:00 / cg"
|
|
1021 |
!
|
|
1022 |
|
|
1023 |
repositoryPrototypeList
|
|
1024 |
|prototypeList|
|
|
1025 |
|
|
1026 |
repositoryPrototypeList isNil ifTrue:[
|
|
1027 |
prototypeList := OrderedSet new.
|
|
1028 |
|
|
1029 |
"/ cvsRoot := self cvsRootFromCVSRootFileOrNil.
|
|
1030 |
"/ cvsRoot notNil ifTrue:[
|
|
1031 |
"/ prototypeList add:cvsRoot
|
|
1032 |
"/ ].
|
|
1033 |
|
|
1034 |
prototypeList add:('https://inst.kilnhg.com/Repo/Foo/Bar/Baz').
|
|
1035 |
"/ prototypeList add:('https://inst.kilnhg.com/Repo/Dino-VM/Group/Dino-VM').
|
|
1036 |
repositoryPrototypeList := prototypeList asOrderedCollection.
|
|
1037 |
].
|
|
1038 |
^ repositoryPrototypeList.
|
|
1039 |
|
|
1040 |
"Created: / 14-01-2012 / 20:13:43 / cg"
|
|
1041 |
!
|
|
1042 |
|
|
1043 |
selectedPerModuleRepository
|
|
1044 |
selectedPerModuleRepository isNil ifTrue:[
|
|
1045 |
selectedPerModuleRepository := ValueHolder new.
|
|
1046 |
selectedPerModuleRepository addDependent:self.
|
|
1047 |
].
|
|
1048 |
^ selectedPerModuleRepository.
|
|
1049 |
|
|
1050 |
"Created: / 14-01-2012 / 20:14:04 / cg"
|
11348
|
1051 |
!
|
|
1052 |
|
|
1053 |
selectedPushURL
|
|
1054 |
selectedPushURL isNil ifTrue:[
|
|
1055 |
selectedPushURL := ValueHolder new.
|
|
1056 |
selectedPushURL addDependent:self.
|
|
1057 |
].
|
|
1058 |
^ selectedPushURL.
|
|
1059 |
|
|
1060 |
"Created: / 02-03-2012 / 15:52:09 / cg"
|
11130
|
1061 |
! !
|
|
1062 |
|
|
1063 |
!MercurialSourceCodeManagementSettingsAppl methodsFor:'change & update'!
|
|
1064 |
|
|
1065 |
selectedPerModuleRepositoryChanged
|
11199
|
1066 |
|repository entry|
|
11130
|
1067 |
|
|
1068 |
self acceptChannel value:true.
|
11199
|
1069 |
repository := self selectedPerModuleRepository value.
|
|
1070 |
repository isNil ifTrue:[
|
11130
|
1071 |
self removeEnabled value:false.
|
|
1072 |
self perModuleRepositoryModule value:' '.
|
11199
|
1073 |
self perModuleRepository value:''.
|
11130
|
1074 |
^ self
|
|
1075 |
].
|
|
1076 |
|
11199
|
1077 |
entry := repositoriesPerModule at:repository ifAbsent:#().
|
11130
|
1078 |
(entry first = MercurialSourceCodeManager) ifTrue:[
|
|
1079 |
self removeEnabled value:true.
|
11199
|
1080 |
self perModuleRepositoryModule value:repository.
|
|
1081 |
self perModuleRepository value:(entry at:2).
|
11130
|
1082 |
] ifFalse:[
|
|
1083 |
self removeEnabled value:false.
|
11199
|
1084 |
self perModuleRepositoryModule value:repository , ' ',('<<use ',entry first managerTypeName,'>>') allBold.
|
|
1085 |
self perModuleRepository value:''.
|
11130
|
1086 |
].
|
|
1087 |
|
|
1088 |
"Created: / 14-01-2012 / 20:24:57 / cg"
|
|
1089 |
!
|
|
1090 |
|
|
1091 |
sourceDirChanged
|
|
1092 |
|nm fn previousDir|
|
|
1093 |
|
|
1094 |
manager isNil ifTrue:[^ self].
|
|
1095 |
|
|
1096 |
previousDir := AbstractSourceCodeManager cacheDirectoryName.
|
|
1097 |
|
|
1098 |
nm := self sourceCacheDir value.
|
|
1099 |
nm isEmptyOrNil ifTrue:[^ self].
|
|
1100 |
|
|
1101 |
(fn := nm asFilename) exists ifFalse:[
|
|
1102 |
(self confirm:(resources
|
|
1103 |
stringWithCRs:'SourceCache directory "%1" does not exist.\Create ?'
|
|
1104 |
with:nm)
|
|
1105 |
) ifFalse:[
|
|
1106 |
self sourceCacheDir value:previousDir.
|
|
1107 |
^ self.
|
|
1108 |
].
|
|
1109 |
fn
|
|
1110 |
recursiveMakeDirectory;
|
|
1111 |
makeReadableForAll;
|
|
1112 |
makeWritableForAll;
|
|
1113 |
makeExecutableForAll.
|
|
1114 |
^ self.
|
|
1115 |
].
|
|
1116 |
|
|
1117 |
(fn isDirectory) ifFalse:[
|
|
1118 |
self warn:(resources
|
|
1119 |
stringWithCRs:'Not a directory: "%1"'
|
|
1120 |
with:nm).
|
|
1121 |
self sourceCacheDir value:previousDir.
|
|
1122 |
^ self.
|
|
1123 |
].
|
|
1124 |
|
|
1125 |
(fn isReadable and:[fn isWritable]) ifFalse:[
|
|
1126 |
(self confirm:(resources
|
|
1127 |
stringWithCRs:'SourceCache directory "%1" is not both readable and writable.\Change ?'
|
|
1128 |
with:nm)
|
|
1129 |
) ifFalse:[
|
|
1130 |
self sourceCacheDir value:previousDir.
|
|
1131 |
^ self.
|
|
1132 |
].
|
|
1133 |
fn
|
|
1134 |
makeReadableForAll;
|
|
1135 |
makeWritableForAll;
|
|
1136 |
makeExecutableForAll.
|
|
1137 |
].
|
|
1138 |
"/ (fn isReadableForAll and:[fn isWritableForAll]) ifFalse:[
|
|
1139 |
"/ (self confirm:(resources
|
|
1140 |
"/ stringWithCRs:'SourceCache directory "%1" is not both readable and writable for other users.\Change ?'
|
|
1141 |
"/ with:nm)
|
|
1142 |
"/ ) ifTrue:[
|
|
1143 |
"/ fn
|
|
1144 |
"/ makeReadableForAll;
|
|
1145 |
"/ makeWritableForAll;
|
|
1146 |
"/ makeExecutableForAll.
|
|
1147 |
"/ ]
|
|
1148 |
"/ ].
|
|
1149 |
!
|
|
1150 |
|
|
1151 |
update:something with:aParameter from:changedObject
|
|
1152 |
"/ common
|
|
1153 |
changedObject == sourceCacheDir ifTrue:[
|
|
1154 |
self sourceDirChanged.
|
|
1155 |
self updateModifiedChannel.
|
|
1156 |
^ self
|
|
1157 |
].
|
|
1158 |
|
|
1159 |
"/ cvs
|
|
1160 |
changedObject == repositoryHolder ifTrue:[
|
|
1161 |
self updateModifiedChannel.
|
|
1162 |
"/ self updateLoginEnableHolders.
|
|
1163 |
^ self
|
|
1164 |
].
|
|
1165 |
"/ changedObject == perModuleRepository ifTrue:[
|
|
1166 |
"/ self updateLoginEnableHolders.
|
|
1167 |
"/ ^ self
|
|
1168 |
"/ ].
|
|
1169 |
changedObject == selectedPerModuleRepository ifTrue:[
|
|
1170 |
self selectedPerModuleRepositoryChanged.
|
|
1171 |
^ self
|
|
1172 |
].
|
|
1173 |
|
|
1174 |
super update:something with:aParameter from:changedObject
|
|
1175 |
|
|
1176 |
"Modified: / 14-01-2012 / 20:26:51 / cg"
|
|
1177 |
! !
|
|
1178 |
|
|
1179 |
!MercurialSourceCodeManagementSettingsAppl methodsFor:'help'!
|
|
1180 |
|
|
1181 |
helpFilename
|
|
1182 |
^ 'Launcher/mercurialSetup.html'
|
|
1183 |
|
|
1184 |
"Modified: / 14-01-2012 / 20:27:00 / cg"
|
|
1185 |
! !
|
|
1186 |
|
|
1187 |
!MercurialSourceCodeManagementSettingsAppl methodsFor:'initialization & release'!
|
|
1188 |
|
|
1189 |
initialize
|
|
1190 |
(AbstractSourceCodeManager notNil) ifTrue:[ AbstractSourceCodeManager autoload ].
|
|
1191 |
|
|
1192 |
sourceCacheDir := nil asValue.
|
|
1193 |
sourceCacheDir addDependent:self.
|
|
1194 |
|
|
1195 |
repositoriesPerModule := Dictionary new.
|
|
1196 |
|
|
1197 |
MercurialSourceCodeManager repositoryInfoPerModule
|
|
1198 |
keysAndValuesDo:[:module :info |
|
|
1199 |
module withoutSeparators ~= module ifTrue:[
|
|
1200 |
self halt:'should not happen any longer'
|
|
1201 |
].
|
|
1202 |
repositoriesPerModule at:module put:(Array with:MercurialSourceCodeManager with:info)
|
|
1203 |
].
|
|
1204 |
|
|
1205 |
super initialize.
|
|
1206 |
|
11146
|
1207 |
"Modified: / 17-01-2012 / 17:39:13 / cg"
|
11130
|
1208 |
! !
|
|
1209 |
|
|
1210 |
!MercurialSourceCodeManagementSettingsAppl methodsFor:'queries'!
|
|
1211 |
|
|
1212 |
hasUnsavedChanges
|
|
1213 |
|modules|
|
|
1214 |
|
|
1215 |
((MercurialSourceCodeManager cacheDirectoryName ? '') ~= (self sourceCacheDir value ? '')) ifTrue:[^ true].
|
|
1216 |
|
|
1217 |
modules := repositoriesPerModule select:[:entry | entry first == MercurialSourceCodeManager].
|
|
1218 |
|
11133
|
1219 |
MercurialSourceCodeManager repositoryInfoPerModule keysAndValuesDo:[:module :info |
|
11130
|
1220 |
((modules includesKey:module) and:[info = (modules at:module) second])
|
|
1221 |
ifFalse:[^ true].
|
11133
|
1222 |
].
|
11130
|
1223 |
modules keysAndValuesDo:[:module :info|
|
|
1224 |
((MercurialSourceCodeManager repositoryInfoPerModule includesKey:module)
|
|
1225 |
and:[(MercurialSourceCodeManager repositoryInfoPerModule at:module) = info second])
|
|
1226 |
ifFalse:[^ true].
|
|
1227 |
].
|
|
1228 |
(MercurialSourceCodeManager hgCommandTimeout ~= hgCommandTimeoutHolder value)
|
|
1229 |
ifTrue:[^ true].
|
|
1230 |
|
|
1231 |
((MercurialSourceCodeManager hgExecutable ? '') ~= (self hgExecutableHolder value ? '') withoutSeparators)
|
|
1232 |
ifTrue:[^ true].
|
|
1233 |
|
|
1234 |
(MercurialSourceCodeManager repositoryName ? self class defaultRepositoryName ~= self repositoryHolder value)
|
|
1235 |
ifTrue:[^ true].
|
|
1236 |
|
|
1237 |
(MercurialSourceCodeManager verboseSourceCodeAccess ~= self verboseSourceCodeAccess value)
|
|
1238 |
ifTrue:[^ true].
|
|
1239 |
|
|
1240 |
(MercurialSourceCodeManager shownInBrowserMenus ~= self shownInBrowserMenusHolder value)
|
|
1241 |
ifTrue:[^ true].
|
|
1242 |
|
|
1243 |
^ false
|
|
1244 |
|
11133
|
1245 |
"Modified: / 14-01-2012 / 23:41:33 / cg"
|
11130
|
1246 |
! !
|
|
1247 |
|
|
1248 |
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
|
|
1249 |
|
|
1250 |
version
|
11348
|
1251 |
^ '$Header: /cvs/stx/stx/libtool/MercurialSourceCodeManagementSettingsAppl.st,v 1.11 2012-03-02 15:19:21 cg Exp $'
|
11130
|
1252 |
!
|
|
1253 |
|
|
1254 |
version_CVS
|
11348
|
1255 |
^ '$Header: /cvs/stx/stx/libtool/MercurialSourceCodeManagementSettingsAppl.st,v 1.11 2012-03-02 15:19:21 cg Exp $'
|
11130
|
1256 |
! !
|