author | Jan Vrany <jan.vrany@labware.com> |
Tue, 11 Jul 2023 12:13:27 +0100 | |
branch | jv |
changeset 1173 | e3dd2050492e |
parent 1002 | 54b4906215ca |
permissions | -rw-r--r-- |
360 | 1 |
"{ Package: 'stx:goodies/monticello' }" |
2 |
||
974 | 3 |
"{ NameSpace: Smalltalk }" |
4 |
||
360 | 5 |
MCDialog subclass:#MCCommitDialog |
6 |
instanceVariableNames:'workingCopyHolder repositoryHolder versionNameHolder |
|
742 | 7 |
messageHolder messageView versionNameFinderProcess |
784 | 8 |
includeExtrasForSTX clearChangeSet' |
9 |
classVariableNames:'LastRepository DefaultForIncludeSTXExtras |
|
10 |
DefaultForClearChangeSet' |
|
360 | 11 |
poolDictionaries:'' |
580 | 12 |
category:'SCM-Monticello-St/X UI' |
360 | 13 |
! |
14 |
||
15 |
||
742 | 16 |
!MCCommitDialog class methodsFor:'help specs'! |
17 |
||
18 |
flyByHelpSpec |
|
19 |
"This resource specification was automatically generated |
|
20 |
by the UIHelpTool of ST/X." |
|
21 |
||
22 |
"Do not manually edit this!! If it is corrupted, |
|
23 |
the UIHelpTool may not be able to read the specification." |
|
24 |
||
25 |
" |
|
26 |
UIHelpTool openOnClass:MCCommitDialog |
|
27 |
" |
|
28 |
||
29 |
<resource: #help> |
|
30 |
||
31 |
^ super flyByHelpSpec addPairsFrom:#( |
|
32 |
||
33 |
#commitMessage |
|
34 |
'A log message describing this version (your changes)' |
|
35 |
||
36 |
#includeExtrasForSTX |
|
988
536fd853efeb
mcz writing: do not include version_XX methods when include St/X extras is not wanted
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
974
diff
changeset
|
37 |
'When checked, include extra support files (makefiles) needed to build a binary class library under ST/X. |
742 | 38 |
If this is not checked, only the plain code is saved which is needed to load the package as bytecode. |
39 |
Notice, that those files are not strictly required - they can easily be recreated by loading the package, |
|
40 |
and then recreating the support files from the system browser on the target system. |
|
41 |
Turn this off, if this package is meant to be transported to or shared with other Smalltalk dialects. |
|
988
536fd853efeb
mcz writing: do not include version_XX methods when include St/X extras is not wanted
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
974
diff
changeset
|
42 |
(however, this is transparent to other Smalltalk dialects - these will simply ignore these additional definitions) |
536fd853efeb
mcz writing: do not include version_XX methods when include St/X extras is not wanted
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
974
diff
changeset
|
43 |
|
536fd853efeb
mcz writing: do not include version_XX methods when include St/X extras is not wanted
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
974
diff
changeset
|
44 |
When unchecked, project definition class and version_XX methods are ommited (i.e., not present in .mcz). |
536fd853efeb
mcz writing: do not include version_XX methods when include St/X extras is not wanted
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
974
diff
changeset
|
45 |
This may be desirable when commiting Smalltalk/X changes back to Squeak / Pharo upstream repository |
536fd853efeb
mcz writing: do not include version_XX methods when include St/X extras is not wanted
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
974
diff
changeset
|
46 |
(and maintainer does not want these in the code even though it does not hurt)' |
742 | 47 |
|
784 | 48 |
#clearChangeSet |
49 |
'Clear the internal changeset after the Monticello commit' |
|
50 |
||
742 | 51 |
#repository |
52 |
'A repository or the name of a directory where the generated package file is to be stored' |
|
53 |
||
54 |
#versionName |
|
55 |
'The name of the version (will also be the name of the generated package file)' |
|
56 |
||
57 |
) |
|
988
536fd853efeb
mcz writing: do not include version_XX methods when include St/X extras is not wanted
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
974
diff
changeset
|
58 |
|
536fd853efeb
mcz writing: do not include version_XX methods when include St/X extras is not wanted
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
974
diff
changeset
|
59 |
"Modified: / 24-04-2015 / 08:39:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
742 | 60 |
! ! |
61 |
||
360 | 62 |
!MCCommitDialog class methodsFor:'interface specs'! |
63 |
||
64 |
contentSpec |
|
65 |
"This resource specification was automatically generated |
|
66 |
by the UIPainter of ST/X." |
|
67 |
||
68 |
"Do not manually edit this!! If it is corrupted, |
|
69 |
the UIPainter may not be able to read the specification." |
|
70 |
||
71 |
" |
|
72 |
UIPainter new openOnClass:MCCommitDialog andSelector:#contentSpec |
|
73 |
MCCommitDialog new openInterface:#contentSpec |
|
74 |
" |
|
75 |
||
76 |
<resource: #canvas> |
|
77 |
||
78 |
^ |
|
79 |
#(FullSpec |
|
80 |
name: contentSpec |
|
81 |
window: |
|
82 |
(WindowSpec |
|
83 |
label: 'Commit Dialog' |
|
84 |
name: 'Commit Dialog' |
|
85 |
min: (Point 10 10) |
|
742 | 86 |
bounds: (Rectangle 0 0 555 303) |
360 | 87 |
) |
88 |
component: |
|
89 |
(SpecCollection |
|
90 |
collection: ( |
|
537 | 91 |
(LabelSpec |
92 |
label: 'Repository:' |
|
93 |
name: 'Label1' |
|
94 |
layout: (LayoutFrame 3 0 4 0 94 0 26 0) |
|
742 | 95 |
activeHelpKey: repository |
537 | 96 |
translateLabel: true |
97 |
adjust: left |
|
98 |
) |
|
360 | 99 |
(ComboListSpec |
100 |
name: 'RepositoryList' |
|
537 | 101 |
layout: (LayoutFrame 101 0 0 0 0 1 25 0) |
742 | 102 |
activeHelpKey: repository |
360 | 103 |
model: repositoryHolder |
104 |
comboList: repositoryList |
|
105 |
useIndex: false |
|
106 |
) |
|
537 | 107 |
(LabelSpec |
108 |
label: 'Version:' |
|
109 |
name: 'Label2' |
|
110 |
layout: (LayoutFrame 3 0 30 0 94 0 52 0) |
|
742 | 111 |
activeHelpKey: versionName |
537 | 112 |
translateLabel: true |
113 |
adjust: left |
|
114 |
) |
|
360 | 115 |
(InputFieldSpec |
116 |
name: 'VersionName' |
|
537 | 117 |
layout: (LayoutFrame 101 0 30 0 0 1 55 0) |
742 | 118 |
activeHelpKey: versionName |
360 | 119 |
model: versionNameHolder |
120 |
immediateAccept: true |
|
121 |
acceptOnReturn: true |
|
122 |
acceptOnTab: true |
|
123 |
acceptOnPointerLeave: true |
|
124 |
) |
|
742 | 125 |
(CheckBoxSpec |
126 |
label: 'Include ST/X Support Files' |
|
127 |
name: 'CheckBox1' |
|
128 |
layout: (LayoutFrame 96 0 63 0 232 1 85 0) |
|
129 |
activeHelpKey: includeExtrasForSTX |
|
130 |
model: includeExtrasForSTX |
|
131 |
translateLabel: true |
|
132 |
) |
|
784 | 133 |
(CheckBoxSpec |
134 |
label: 'Clear Change Set' |
|
135 |
name: 'CheckBox2' |
|
136 |
layout: (LayoutFrame 96 0 90 0 232 1 112 0) |
|
137 |
activeHelpKey: clearChangeSet |
|
138 |
model: clearChangeSet |
|
139 |
translateLabel: true |
|
140 |
) |
|
141 |
(TextEditorSpec |
|
142 |
name: 'CommitMessage' |
|
143 |
layout: (LayoutFrame 0 0 120 0 0 1 0 1) |
|
144 |
activeHelpKey: commitMessage |
|
145 |
model: messageHolder |
|
146 |
hasHorizontalScrollBar: true |
|
147 |
hasVerticalScrollBar: true |
|
148 |
hasKeyboardFocusInitially: false |
|
149 |
postBuildCallback: postBuildMessageView: |
|
150 |
) |
|
360 | 151 |
) |
152 |
||
153 |
) |
|
154 |
) |
|
155 |
! ! |
|
156 |
||
157 |
!MCCommitDialog methodsFor:'accessing'! |
|
158 |
||
159 |
workingCopy: aMCWorkingCopy |
|
160 |
||
161 |
^self workingCopyHolder value: aMCWorkingCopy |
|
162 |
||
163 |
"Created: / 14-09-2010 / 23:43:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
164 |
! ! |
|
165 |
||
166 |
!MCCommitDialog methodsFor:'accessing - defaults'! |
|
167 |
||
168 |
defaultTitle |
|
169 |
"superclass MCDialog says that I am responsible to implement this method" |
|
170 |
||
537 | 171 |
^ 'Monticello Commit' |
360 | 172 |
|
173 |
"Modified: / 14-09-2010 / 23:00:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
537 | 174 |
"Modified: / 02-12-2011 / 15:44:08 / cg" |
360 | 175 |
! ! |
176 |
||
177 |
!MCCommitDialog methodsFor:'actions'! |
|
178 |
||
179 |
doAccept |
|
537 | 180 |
self acceptEnabled ifFalse:[^self]. |
360 | 181 |
|
537 | 182 |
self withWaitCursorDo:[ |
784 | 183 |
|workingCopy version repository clearChangeSet |
184 |
newVersionString stxPackageID defClass| |
|
537 | 185 |
|
186 |
workingCopy := self workingCopyHolder value. |
|
569 | 187 |
repository := self repositoryHolder value. |
188 |
LastRepository := repository. |
|
784 | 189 |
DefaultForIncludeSTXExtras := clearChangeSet := self clearChangeSet value. |
569 | 190 |
|
537 | 191 |
[ |
192 |
version := workingCopy newVersion |
|
193 |
] on: MCVersionNameAndMessageRequest do:[:n | |
|
194 |
n resume: (Array with: self versionNameHolder value |
|
195 |
with: messageView contents asText string) |
|
196 |
]. |
|
197 |
||
198 |
stxPackageID := version package name. |
|
199 |
defClass := ProjectDefinition definitionClassForPackage:stxPackageID. |
|
200 |
newVersionString := MCSourceCodeManager revisionStringForVersion:version. |
|
360 | 201 |
|
537 | 202 |
"/ update all project classes version_MC |
203 |
defClass allClasses do:[:cls | |
|
204 |
MCSourceCodeManager |
|
205 |
updateVersionMethod:(MCSourceCodeManager nameOfVersionMethodInClasses) |
|
206 |
of:cls |
|
207 |
for:newVersionString. |
|
208 |
]. |
|
209 |
||
210 |
"/ update the project definition classes version_MC |
|
211 |
MCSourceCodeManager |
|
212 |
updateVersionMethod:(MCSourceCodeManager nameOfVersionMethodInClasses) |
|
213 |
of:defClass |
|
214 |
for:newVersionString. |
|
215 |
MCSourceCodeManager |
|
216 |
updateVersionMethod:(MCSourceCodeManager nameOfVersionMethodForExtensions) |
|
217 |
of:defClass |
|
218 |
for:newVersionString. |
|
219 |
||
220 |
"/ sigh: make a new snapshot (now with updated version methods) |
|
221 |
version snapshot:version package snapshot. |
|
742 | 222 |
version cachable:false. "/ force new a write (otherwise, the mcz is not rewritten) |
1002
54b4906215ca
Introduced MCSnapshotOptions for more fine-graned control over contents of .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
988
diff
changeset
|
223 |
version snapshot options includeExtrasForSTX:(DefaultForIncludeSTXExtras := self includeExtrasForSTX value). |
537 | 224 |
repository storeVersion: version. |
758 | 225 |
|
784 | 226 |
clearChangeSet ifTrue:[ |
227 |
ChangeSet current condenseChangesForPackage:stxPackageID |
|
228 |
]. |
|
537 | 229 |
]. |
784 | 230 |
super doAccept. |
360 | 231 |
|
232 |
"Created: / 15-09-2010 / 14:07:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
569 | 233 |
"Modified: / 24-07-2012 / 16:33:56 / cg" |
1002
54b4906215ca
Introduced MCSnapshotOptions for more fine-graned control over contents of .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
988
diff
changeset
|
234 |
"Modified: / 07-09-2015 / 15:27:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
360 | 235 |
! ! |
236 |
||
237 |
!MCCommitDialog methodsFor:'aspects'! |
|
238 |
||
784 | 239 |
clearChangeSet |
240 |
clearChangeSet isNil ifTrue:[ |
|
241 |
clearChangeSet := (DefaultForClearChangeSet ? true) asValue. |
|
242 |
]. |
|
243 |
^ clearChangeSet |
|
244 |
! |
|
245 |
||
742 | 246 |
includeExtrasForSTX |
247 |
includeExtrasForSTX isNil ifTrue:[ |
|
758 | 248 |
includeExtrasForSTX := (DefaultForIncludeSTXExtras ? true) asValue. |
742 | 249 |
]. |
250 |
^ includeExtrasForSTX |
|
251 |
! |
|
252 |
||
360 | 253 |
messageHolder |
254 |
"return/create the 'messageHolder' value holder (automatically generated)" |
|
255 |
||
256 |
messageHolder isNil ifTrue:[ |
|
257 |
messageHolder := ValueHolder with: ('Commit message' asText colorizeAllWith: Color gray). |
|
258 |
messageHolder addDependent:self. |
|
259 |
]. |
|
260 |
^ messageHolder |
|
261 |
||
262 |
"Modified: / 15-09-2010 / 13:58:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
263 |
! |
|
264 |
||
265 |
messageHolder:something |
|
266 |
"set the 'messageHolder' value holder (automatically generated)" |
|
267 |
||
268 |
|oldValue newValue| |
|
269 |
||
270 |
messageHolder notNil ifTrue:[ |
|
271 |
oldValue := messageHolder value. |
|
272 |
messageHolder removeDependent:self. |
|
273 |
]. |
|
274 |
messageHolder := something. |
|
275 |
messageHolder notNil ifTrue:[ |
|
276 |
messageHolder addDependent:self. |
|
277 |
]. |
|
278 |
newValue := messageHolder value. |
|
279 |
oldValue ~~ newValue ifTrue:[ |
|
280 |
self update:#value with:newValue from:messageHolder. |
|
281 |
]. |
|
282 |
! |
|
283 |
||
785 | 284 |
repositoryActionList |
285 |
"to determine which action to take when the repository selection is |
|
286 |
changed (especially for the add xxx entries)" |
|
287 |
||
288 |
^ |
|
289 |
(Array new: MCRepositoryGroup default repositories size) |
|
290 |
, (Array |
|
291 |
with:nil |
|
292 |
with:#addRepository |
|
293 |
with:#addDirectoryRepository |
|
294 |
) |
|
295 |
! |
|
296 |
||
360 | 297 |
repositoryHolder |
298 |
"return/create the 'repositoryHolder' value holder (automatically generated)" |
|
299 |
||
569 | 300 |
|initial| |
301 |
||
360 | 302 |
repositoryHolder isNil ifTrue:[ |
303 |
repositoryHolder := ValueHolder new. |
|
569 | 304 |
initial := LastRepository. |
305 |
initial isNil ifTrue:[ |
|
306 |
initial := UserPreferences current at:#mcPrimaryRepository ifAbsent:nil. |
|
307 |
]. |
|
308 |
repositoryHolder value:initial. |
|
360 | 309 |
repositoryHolder addDependent:self. |
310 |
]. |
|
311 |
^ repositoryHolder |
|
529 | 312 |
|
569 | 313 |
"Modified: / 24-07-2012 / 16:32:01 / cg" |
360 | 314 |
! |
315 |
||
316 |
repositoryHolder:something |
|
317 |
"set the 'repositoryHolder' value holder (automatically generated)" |
|
318 |
||
319 |
|oldValue newValue| |
|
320 |
||
321 |
repositoryHolder notNil ifTrue:[ |
|
322 |
oldValue := repositoryHolder value. |
|
323 |
repositoryHolder removeDependent:self. |
|
324 |
]. |
|
325 |
repositoryHolder := something. |
|
326 |
repositoryHolder notNil ifTrue:[ |
|
327 |
repositoryHolder addDependent:self. |
|
328 |
]. |
|
329 |
newValue := repositoryHolder value. |
|
330 |
oldValue ~~ newValue ifTrue:[ |
|
331 |
self update:#value with:newValue from:repositoryHolder. |
|
332 |
]. |
|
333 |
! |
|
334 |
||
335 |
repositoryList |
|
336 |
||
785 | 337 |
^[ |
338 |
MCRepositoryGroup default repositories |
|
339 |
, (Array |
|
340 |
with:nil |
|
341 |
with:(resources string:'Open MC Repository Dialog...') |
|
342 |
with:(resources string:'Add Directory Repository...') |
|
343 |
) |
|
344 |
] |
|
360 | 345 |
|
346 |
"Created: / 14-09-2010 / 23:16:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
573 | 347 |
"Modified: / 31-08-2012 / 11:39:42 / cg" |
360 | 348 |
! |
349 |
||
350 |
versionNameHolder |
|
351 |
"return/create the 'versionNameHolder' value holder (automatically generated)" |
|
352 |
||
353 |
versionNameHolder isNil ifTrue:[ |
|
354 |
versionNameHolder := ValueHolder new. |
|
355 |
versionNameHolder addDependent:self. |
|
356 |
]. |
|
357 |
^ versionNameHolder |
|
358 |
! |
|
359 |
||
360 |
versionNameHolder:something |
|
361 |
"set the 'versionNameHolder' value holder (automatically generated)" |
|
362 |
||
363 |
|oldValue newValue| |
|
364 |
||
365 |
versionNameHolder notNil ifTrue:[ |
|
366 |
oldValue := versionNameHolder value. |
|
367 |
versionNameHolder removeDependent:self. |
|
368 |
]. |
|
369 |
versionNameHolder := something. |
|
370 |
versionNameHolder notNil ifTrue:[ |
|
371 |
versionNameHolder addDependent:self. |
|
372 |
]. |
|
373 |
newValue := versionNameHolder value. |
|
374 |
oldValue ~~ newValue ifTrue:[ |
|
375 |
self update:#value with:newValue from:versionNameHolder. |
|
376 |
]. |
|
377 |
! |
|
378 |
||
379 |
workingCopyHolder |
|
380 |
"return/create the 'workingCopyHolder' value holder (automatically generated)" |
|
381 |
||
382 |
workingCopyHolder isNil ifTrue:[ |
|
383 |
workingCopyHolder := ValueHolder new. |
|
384 |
workingCopyHolder addDependent:self. |
|
385 |
]. |
|
386 |
^ workingCopyHolder |
|
387 |
! |
|
388 |
||
389 |
workingCopyHolder:something |
|
390 |
"set the 'workingCopyHolder' value holder (automatically generated)" |
|
391 |
||
392 |
|oldValue newValue| |
|
393 |
||
394 |
workingCopyHolder notNil ifTrue:[ |
|
395 |
oldValue := workingCopyHolder value. |
|
396 |
workingCopyHolder removeDependent:self. |
|
397 |
]. |
|
398 |
workingCopyHolder := something. |
|
399 |
workingCopyHolder notNil ifTrue:[ |
|
400 |
workingCopyHolder addDependent:self. |
|
401 |
]. |
|
402 |
newValue := workingCopyHolder value. |
|
403 |
oldValue ~~ newValue ifTrue:[ |
|
404 |
self update:#value with:newValue from:workingCopyHolder. |
|
405 |
]. |
|
406 |
! ! |
|
407 |
||
408 |
!MCCommitDialog methodsFor:'change & update'! |
|
409 |
||
785 | 410 |
addDirectoryRepository |
411 |
|dir repo| |
|
412 |
||
413 |
dir := Dialog requestDirectoryName:'Choose a Repository Directory'. |
|
414 |
dir isEmptyOrNil ifTrue:[^ self]. |
|
415 |
repo := MCDirectoryRepository directory:dir. |
|
416 |
MCRepositoryGroup default addRepository:repo. |
|
417 |
||
418 |
self repositoryHolder |
|
419 |
value:repo |
|
420 |
withoutNotifying:self. |
|
421 |
! |
|
422 |
||
423 |
addRepository |
|
424 |
MCSettingsApp open. |
|
425 |
self repositoryHolder |
|
426 |
value:(self repositoryList value first) |
|
427 |
withoutNotifying:self. |
|
428 |
! |
|
429 |
||
573 | 430 |
findUniqueVersionNumber |
431 |
| wc versionName | |
|
432 |
||
433 |
self versionNameHolder value:('One Moment, please...' colorizeAllWith:Color grey). |
|
434 |
||
435 |
wc := self workingCopyHolder value. |
|
436 |
self assert:wc notNil. |
|
437 |
||
438 |
self subtitle: wc package name. |
|
439 |
versionName := wc uniqueVersionName. |
|
440 |
self |
|
441 |
enqueueMessage:#updateVersionNumberTo: |
|
442 |
for:self |
|
443 |
arguments: { versionName } |
|
444 |
||
445 |
"Created: / 31-08-2012 / 11:49:56 / cg" |
|
446 |
! |
|
447 |
||
360 | 448 |
messageChanged |
449 |
||
974 | 450 |
"/ self halt |
360 | 451 |
|
452 |
"Created: / 15-09-2010 / 10:04:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
453 |
! |
|
454 |
||
455 |
repositoryChanged |
|
785 | 456 |
|selIndex action| |
457 |
||
458 |
selIndex := self repositoryList value indexOf:self repositoryHolder value. |
|
459 |
action := self repositoryActionList at:selIndex. |
|
460 |
action notNil ifTrue:[ |
|
461 |
self perform:action. |
|
573 | 462 |
]. |
360 | 463 |
self updateAcceptEnabled |
464 |
||
465 |
"Created: / 15-09-2010 / 14:02:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
573 | 466 |
"Modified: / 31-08-2012 / 12:01:02 / cg" |
360 | 467 |
! |
468 |
||
469 |
update:something with:aParameter from:changedObject |
|
470 |
"Invoked when an object that I depend upon sends a change notification." |
|
471 |
||
472 |
"stub code automatically generated - please change as required" |
|
473 |
||
474 |
changedObject == workingCopyHolder ifTrue:[ |
|
475 |
self workingCopyChanged. |
|
476 |
^ self. |
|
477 |
]. |
|
478 |
||
479 |
changedObject == messageHolder ifTrue:[ |
|
480 |
self messageChanged. |
|
481 |
^ self. |
|
482 |
]. |
|
483 |
changedObject == repositoryHolder ifTrue:[ |
|
484 |
self repositoryChanged. |
|
485 |
^ self. |
|
486 |
]. |
|
487 |
||
488 |
super update:something with:aParameter from:changedObject |
|
489 |
||
490 |
"Modified: / 15-09-2010 / 14:02:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
491 |
! |
|
492 |
||
493 |
updateAcceptEnabled |
|
573 | 494 |
| enabled | |
360 | 495 |
|
496 |
enabled := true. |
|
497 |
enabled := enabled and:[self workingCopyHolder value notNil]. |
|
498 |
enabled := enabled and:[self repositoryHolder value notNil]. |
|
499 |
self acceptEnabledHolder value: enabled. |
|
500 |
||
501 |
"Created: / 15-09-2010 / 14:01:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
573 | 502 |
"Modified: / 31-08-2012 / 11:59:09 / cg" |
503 |
! |
|
504 |
||
505 |
updateVersionNumberTo:versionName |
|
506 |
self versionNameHolder value: versionName. |
|
507 |
self updateAcceptEnabled |
|
508 |
||
509 |
"Created: / 31-08-2012 / 11:54:15 / cg" |
|
360 | 510 |
! |
511 |
||
512 |
workingCopyChanged |
|
573 | 513 |
|p| |
360 | 514 |
|
573 | 515 |
self window isNil ifTrue:[ |
516 |
versionNameFinderProcess isNil ifTrue:[ |
|
517 |
versionNameFinderProcess := |
|
518 |
[ |
|
519 |
self findUniqueVersionNumber. |
|
520 |
] fork. |
|
521 |
]. |
|
522 |
^ self. |
|
523 |
]. |
|
524 |
||
525 |
(self workingCopyHolder value) notNil ifTrue:[ |
|
526 |
(p := versionNameFinderProcess) notNil ifTrue:[ |
|
527 |
versionNameFinderProcess := nil. |
|
528 |
p terminateAndWait. |
|
529 |
]. |
|
530 |
self findUniqueVersionNumber. |
|
531 |
]. |
|
360 | 532 |
|
533 |
"Created: / 15-09-2010 / 09:30:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
534 |
"Modified: / 15-09-2010 / 14:01:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
573 | 535 |
"Modified: / 31-08-2012 / 11:53:32 / cg" |
360 | 536 |
! ! |
537 |
||
538 |
!MCCommitDialog methodsFor:'hooks'! |
|
539 |
||
540 |
postBuildMessageView: aView |
|
541 |
||
542 |
messageView := aView scrolledView |
|
543 |
||
544 |
"Created: / 15-09-2010 / 13:56:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
545 |
! ! |
|
546 |
||
547 |
!MCCommitDialog class methodsFor:'documentation'! |
|
548 |
||
549 |
version |
|
974 | 550 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCCommitDialog.st,v 1.13 2015-02-25 00:12:38 cg Exp $' |
360 | 551 |
! |
552 |
||
553 |
version_CVS |
|
974 | 554 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCCommitDialog.st,v 1.13 2015-02-25 00:12:38 cg Exp $' |
573 | 555 |
! |
556 |
||
988
536fd853efeb
mcz writing: do not include version_XX methods when include St/X extras is not wanted
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
974
diff
changeset
|
557 |
version_HG |
536fd853efeb
mcz writing: do not include version_XX methods when include St/X extras is not wanted
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
974
diff
changeset
|
558 |
|
536fd853efeb
mcz writing: do not include version_XX methods when include St/X extras is not wanted
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
974
diff
changeset
|
559 |
^ '$Changeset: <not expanded> $' |
536fd853efeb
mcz writing: do not include version_XX methods when include St/X extras is not wanted
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
974
diff
changeset
|
560 |
! |
536fd853efeb
mcz writing: do not include version_XX methods when include St/X extras is not wanted
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
974
diff
changeset
|
561 |
|
573 | 562 |
version_MC |
974 | 563 |
^ '$stx:goodies/monticello-cg.3 4e70fe70-f030-11e1-ac62-001f3bda2d09 2012-08-27T12:16:46 cg$' |
360 | 564 |
! |
565 |
||
566 |
version_SVN |
|
974 | 567 |
^ '$Id: MCCommitDialog.st,v 1.13 2015-02-25 00:12:38 cg Exp $' |
360 | 568 |
! ! |
742 | 569 |