118 'Modify the selected per-package manager definition' |
118 'Modify the selected per-package manager definition' |
119 |
119 |
120 #flushSourceCache |
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' |
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 |
122 |
123 #hgAddPushURL |
123 #gitAddPushURL |
124 'Add a repository to the push-URL list. A repository-push operation will synchronize your changes with this repository as well' |
124 'Add a repository to the push-URL list. A repository-push operation will synchronize your changes with this repository as well' |
125 |
125 |
126 #hgCheckAccess |
126 #gitCheckAccess |
127 'Perform a "hg status" command in the default repository to see if the repository is accessable' |
127 'Perform a "git status" command in the default repository to see if the repository is accessable' |
128 |
128 |
129 #hgCheckAccessPerModuleRoot |
129 #gitCheckAccessPerModuleRoot |
130 'Perform a "hg status" command in this module''s repository to see if the repository is accessable' |
130 'Perform a "git status" command in this module''s repository to see if the repository is accessable' |
131 |
131 |
132 #hgCommand |
132 #gitCommand |
133 'The command to use for git operations\(the path to "hg"/"hg.exe"-command. Not needed, if already in the shell''s PATH value)' |
133 'The command to use for git operations\(the path to "git"/"git.exe"-command. Not needed, if already in the shell''s PATH value)' |
134 |
134 |
135 #hgCommandTimeout |
135 #gitCommandTimeout |
136 'The command timeout.\For slow connections (ssl-tunnel), it may make sense to increase this value.' |
136 'The command timeout.\For slow connections (ssl-tunnel), it may make sense to increase this value.' |
137 |
137 |
138 #hgInit |
138 #gitInit |
139 'Perform a "hg init" command to setup the repository for the very first time' |
139 'Perform a "git init" command to setup the repository for the very first time' |
140 |
140 |
141 #hgPushURLs |
141 #gitPushURLs |
142 'The push-URL list. A repository-push operation will send your changes to these repositories as well' |
142 'The push-URL list. A repository-push operation will send your changes to these repositories as well' |
143 |
143 |
144 #hgRemovePushURL |
144 #gitRemovePushURL |
145 'Remove the selected repository from the push-URL list. A repository-push operation will no longer synchronize your changes with this repository' |
145 'Remove the selected repository from the push-URL list. A repository-push operation will no longer synchronize your changes with this repository' |
146 |
146 |
147 #hgRootDefault |
147 #gitRootDefault |
148 'The default git repository.\This will be used for all modules which are not listed below.' |
148 'The default git repository.\This will be used for all modules which are not listed below.' |
149 |
149 |
150 #hgRootPerModule |
150 #gitRootPerModule |
151 'The git repository for which this specific module is defined' |
151 'The git repository for which this specific module is defined' |
152 |
152 |
153 #hgRootPerModuleModule |
153 #gitRootPerModuleModule |
154 'The module for which a specific git repository is defined' |
154 'The module for which a specific git repository is defined' |
155 |
155 |
156 #hgRootPerModuleRoot |
156 #gitRootPerModuleRoot |
157 'The git repository for which this specific module is defined' |
157 'The git repository for which this specific module is defined' |
158 |
158 |
159 #loginPerModuleRoot |
159 #loginPerModuleRoot |
160 'Execute a "cvs login" operation for this CVSROOT' |
160 'Execute a "cvs login" operation for this CVSROOT' |
161 |
161 |
186 #verboseSourceCodeAccess |
186 #verboseSourceCodeAccess |
187 'Output debugging messages on the Transcript\(mostly traces of the underlying scm mechanism, such as cvs commands)' |
187 'Output debugging messages on the Transcript\(mostly traces of the underlying scm mechanism, such as cvs commands)' |
188 |
188 |
189 ) |
189 ) |
190 |
190 |
191 "Modified (comment): / 02-03-2012 / 15:21:13 / cg" |
191 "Modified: / 02-03-2012 / 16:52:43 / cg" |
192 ! ! |
192 ! ! |
193 |
193 |
194 !GitSourceCodeManagementSettingsAppl class methodsFor:'image specs'! |
194 !GitSourceCodeManagementSettingsAppl class methodsFor:'image specs'! |
195 |
195 |
196 defaultIcon |
196 defaultIcon |
323 collection: ( |
323 collection: ( |
324 (LabelSpec |
324 (LabelSpec |
325 label: 'Git Command or Path:' |
325 label: 'Git Command or Path:' |
326 name: 'Label1' |
326 name: 'Label1' |
327 layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0) |
327 layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0) |
328 activeHelpKey: hgCommand |
328 activeHelpKey: gitCommand |
329 level: 0 |
329 level: 0 |
330 translateLabel: true |
330 translateLabel: true |
331 adjust: right |
331 adjust: right |
332 ) |
332 ) |
333 (InputFieldSpec |
333 (InputFieldSpec |
334 name: 'GitExecutableField' |
334 name: 'GitExecutableField' |
335 layout: (LayoutFrame 64 0.25 0 0 0 1 22 0) |
335 layout: (LayoutFrame 64 0.25 0 0 0 1 22 0) |
336 activeHelpKey: hgCommand |
336 activeHelpKey: gitCommand |
337 tabable: true |
337 tabable: true |
338 model: gitExecutableHolder |
338 model: gitExecutableHolder |
339 acceptChannel: acceptChannel |
339 acceptChannel: acceptChannel |
340 acceptOnPointerLeave: true |
340 acceptOnPointerLeave: true |
341 ) |
341 ) |
351 collection: ( |
351 collection: ( |
352 (LabelSpec |
352 (LabelSpec |
353 label: 'Git Command Timeout:' |
353 label: 'Git Command Timeout:' |
354 name: 'Label2' |
354 name: 'Label2' |
355 layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0) |
355 layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0) |
356 activeHelpKey: hgCommandTimeout |
356 activeHelpKey: gitCommandTimeout |
357 level: 0 |
357 level: 0 |
358 translateLabel: true |
358 translateLabel: true |
359 adjust: right |
359 adjust: right |
360 ) |
360 ) |
361 (InputFieldSpec |
361 (InputFieldSpec |
362 name: 'EntryField1' |
362 name: 'EntryField1' |
363 layout: (LayoutFrame 64 0.25 0 0 168 0.25 22 0) |
363 layout: (LayoutFrame 64 0.25 0 0 168 0.25 22 0) |
364 activeHelpKey: hgCommandTimeout |
364 activeHelpKey: gitCommandTimeout |
365 tabable: true |
365 tabable: true |
366 model: gitCommandTimeoutHolder |
366 model: gitCommandTimeoutHolder |
367 type: timeDuration |
367 type: timeDuration |
368 acceptChannel: acceptChannel |
368 acceptChannel: acceptChannel |
369 acceptOnPointerLeave: true |
369 acceptOnPointerLeave: true |
380 collection: ( |
380 collection: ( |
381 (LabelSpec |
381 (LabelSpec |
382 label: 'Default Repository:' |
382 label: 'Default Repository:' |
383 name: 'defaultCvsRootLabel' |
383 name: 'defaultCvsRootLabel' |
384 layout: (LayoutFrame 0 0.0 2 0 60 0.25 24 0) |
384 layout: (LayoutFrame 0 0.0 2 0 60 0.25 24 0) |
385 activeHelpKey: hgRootDefault |
385 activeHelpKey: gitRootDefault |
386 level: 0 |
386 level: 0 |
387 translateLabel: true |
387 translateLabel: true |
388 adjust: right |
388 adjust: right |
389 ) |
389 ) |
390 (ComboBoxSpec |
390 (ComboBoxSpec |
391 name: 'RepositoryComboBox' |
391 name: 'RepositoryComboBox' |
392 layout: (LayoutFrame 64 0.25 2 0 0 1 24 0) |
392 layout: (LayoutFrame 64 0.25 2 0 0 1 24 0) |
393 activeHelpKey: hgRootDefault |
393 activeHelpKey: gitRootDefault |
394 tabable: true |
394 tabable: true |
395 model: repositoryHolder |
395 model: repositoryHolder |
396 immediateAccept: true |
396 immediateAccept: true |
397 acceptOnLeave: true |
397 acceptOnLeave: true |
398 acceptOnReturn: true |
398 acceptOnReturn: true |
408 ) |
408 ) |
409 (ActionButtonSpec |
409 (ActionButtonSpec |
410 label: 'Init' |
410 label: 'Init' |
411 name: 'Button2' |
411 name: 'Button2' |
412 layout: (LayoutFrame -201 1 122 0 -101 1 144 0) |
412 layout: (LayoutFrame -201 1 122 0 -101 1 144 0) |
413 activeHelpKey: hgInit |
413 activeHelpKey: gitInit |
414 translateLabel: true |
414 translateLabel: true |
415 tabable: true |
415 tabable: true |
416 model: initializeRepository |
416 model: initializeRepository |
417 enableChannel: cvsLoginEnabled |
417 enableChannel: cvsLoginEnabled |
418 ) |
418 ) |
419 (ActionButtonSpec |
419 (ActionButtonSpec |
420 label: 'Check Access' |
420 label: 'Check Access' |
421 name: 'Button1' |
421 name: 'Button1' |
422 layout: (LayoutFrame -100 1 122 0 0 1 144 0) |
422 layout: (LayoutFrame -100 1 122 0 0 1 144 0) |
423 activeHelpKey: hgCheckAccess |
423 activeHelpKey: gitCheckAccess |
424 translateLabel: true |
424 translateLabel: true |
425 tabable: true |
425 tabable: true |
426 model: checkAccess |
426 model: checkAccess |
427 enableChannel: cvsLoginEnabled |
427 enableChannel: cvsLoginEnabled |
428 ) |
428 ) |
429 (LabelSpec |
429 (LabelSpec |
430 label: 'Repository per Module:' |
430 label: 'Repository per Module:' |
431 name: 'knownModulesLabel' |
431 name: 'knownModulesLabel' |
432 layout: (LayoutFrame 0 0.0 150 0 60 0.25 172 0) |
432 layout: (LayoutFrame 0 0.0 150 0 60 0.25 172 0) |
433 activeHelpKey: hgRootPerModule |
433 activeHelpKey: gitRootPerModule |
434 translateLabel: true |
434 translateLabel: true |
435 adjust: right |
435 adjust: right |
436 ) |
436 ) |
437 (SequenceViewSpec |
437 (SequenceViewSpec |
438 name: 'List1' |
438 name: 'List1' |
439 layout: (LayoutFrame 64 0.25 150 0 0 1 269 0) |
439 layout: (LayoutFrame 64 0.25 150 0 0 1 269 0) |
440 activeHelpKey: hgRootPerModule |
440 activeHelpKey: gitRootPerModule |
441 tabable: true |
441 tabable: true |
442 model: selectedPerModuleRepository |
442 model: selectedPerModuleRepository |
443 hasHorizontalScrollBar: true |
443 hasHorizontalScrollBar: true |
444 hasVerticalScrollBar: true |
444 hasVerticalScrollBar: true |
445 miniScrollerHorizontal: true |
445 miniScrollerHorizontal: true |
448 ) |
448 ) |
449 (LabelSpec |
449 (LabelSpec |
450 label: 'Module:' |
450 label: 'Module:' |
451 name: 'moduleLabel' |
451 name: 'moduleLabel' |
452 layout: (LayoutFrame 0 0.0 279 0 60 0.25 296 0) |
452 layout: (LayoutFrame 0 0.0 279 0 60 0.25 296 0) |
453 activeHelpKey: hgRootPerModuleModule |
453 activeHelpKey: gitRootPerModuleModule |
454 translateLabel: true |
454 translateLabel: true |
455 adjust: right |
455 adjust: right |
456 ) |
456 ) |
457 (InputFieldSpec |
457 (InputFieldSpec |
458 name: 'perModuleRepositoryModuleEntryField' |
458 name: 'perModuleRepositoryModuleEntryField' |
459 layout: (LayoutFrame 64 0.25 275 0 0 1 297 0) |
459 layout: (LayoutFrame 64 0.25 275 0 0 1 297 0) |
460 activeHelpKey: hgRootPerModuleModule |
460 activeHelpKey: gitRootPerModuleModule |
461 tabable: true |
461 tabable: true |
462 model: perModuleRepositoryModule |
462 model: perModuleRepositoryModule |
463 acceptChannel: acceptChannel |
463 acceptChannel: acceptChannel |
464 acceptOnPointerLeave: true |
464 acceptOnPointerLeave: true |
465 ) |
465 ) |
466 (LabelSpec |
466 (LabelSpec |
467 label: 'Git Repository:' |
467 label: 'Git Repository:' |
468 name: 'hgRepository' |
468 name: 'gitRepository' |
469 layout: (LayoutFrame 0 0.0 304 0 60 0.25 321 0) |
469 layout: (LayoutFrame 0 0.0 304 0 60 0.25 321 0) |
470 activeHelpKey: hgRootPerModuleRoot |
470 activeHelpKey: gitRootPerModuleRoot |
471 translateLabel: true |
471 translateLabel: true |
472 adjust: right |
472 adjust: right |
473 ) |
473 ) |
474 (ComboBoxSpec |
474 (ComboBoxSpec |
475 name: 'perModuleRepositoryComboBox' |
475 name: 'perModuleRepositoryComboBox' |
476 layout: (LayoutFrame 64 0.25 300 0 0 1.0 322 0) |
476 layout: (LayoutFrame 64 0.25 300 0 0 1.0 322 0) |
477 activeHelpKey: hgRootPerModuleRoot |
477 activeHelpKey: gitRootPerModuleRoot |
478 tabable: true |
478 tabable: true |
479 model: perModuleRepository |
479 model: perModuleRepository |
480 immediateAccept: true |
480 immediateAccept: true |
481 acceptOnLeave: true |
481 acceptOnLeave: true |
482 acceptOnReturn: true |
482 acceptOnReturn: true |
520 extent: (Point 100 10) |
520 extent: (Point 100 10) |
521 ) |
521 ) |
522 (ActionButtonSpec |
522 (ActionButtonSpec |
523 label: 'Init' |
523 label: 'Init' |
524 name: 'Button3' |
524 name: 'Button3' |
525 activeHelpKey: hgLoginPerModuleRoot |
525 activeHelpKey: gitLoginPerModuleRoot |
526 translateLabel: true |
526 translateLabel: true |
527 tabable: true |
527 tabable: true |
528 model: initializePerModuleRepository |
528 model: initializePerModuleRepository |
529 enableChannel: cvsLoginEnabled |
529 enableChannel: cvsLoginEnabled |
530 extent: (Point 100 22) |
530 extent: (Point 100 22) |
531 ) |
531 ) |
532 (ActionButtonSpec |
532 (ActionButtonSpec |
533 label: 'Check Access' |
533 label: 'Check Access' |
534 name: 'checkButton2' |
534 name: 'checkButton2' |
535 activeHelpKey: hgCheckAccessPerModuleRoot |
535 activeHelpKey: gitCheckAccessPerModuleRoot |
536 translateLabel: true |
536 translateLabel: true |
537 tabable: true |
537 tabable: true |
538 model: checkAccessPerModuleRepository |
538 model: checkAccessPerModuleRepository |
539 enableChannel: cvsLoginInModuleEnabled |
539 enableChannel: cvsLoginInModuleEnabled |
540 extent: (Point 100 22) |
540 extent: (Point 100 22) |
562 collection: ( |
562 collection: ( |
563 (LabelSpec |
563 (LabelSpec |
564 label: 'URL to Push To:' |
564 label: 'URL to Push To:' |
565 name: 'Label6' |
565 name: 'Label6' |
566 layout: (LayoutFrame 0 0.0 14 0 60 0.25 36 0) |
566 layout: (LayoutFrame 0 0.0 14 0 60 0.25 36 0) |
567 activeHelpKey: hgPushURLs |
567 activeHelpKey: gitPushURLs |
568 translateLabel: true |
568 translateLabel: true |
569 adjust: right |
569 adjust: right |
570 ) |
570 ) |
571 (SequenceViewSpec |
571 (SequenceViewSpec |
572 name: 'List2' |
572 name: 'List2' |
573 layout: (LayoutFrame 64 0.25 14 0 0 1 90 0) |
573 layout: (LayoutFrame 64 0.25 14 0 0 1 90 0) |
574 activeHelpKey: hgPushURLs |
574 activeHelpKey: gitPushURLs |
575 tabable: true |
575 tabable: true |
576 model: selectedPushURL |
576 model: selectedPushURL |
577 hasHorizontalScrollBar: true |
577 hasHorizontalScrollBar: true |
578 hasVerticalScrollBar: true |
578 hasVerticalScrollBar: true |
579 miniScrollerHorizontal: true |
579 miniScrollerHorizontal: true |
582 ) |
582 ) |
583 (LabelSpec |
583 (LabelSpec |
584 label: 'URL:' |
584 label: 'URL:' |
585 name: 'Label8' |
585 name: 'Label8' |
586 layout: (LayoutFrame 0 0.0 101 0 60 0.25 118 0) |
586 layout: (LayoutFrame 0 0.0 101 0 60 0.25 118 0) |
587 activeHelpKey: hgAddPushURL |
587 activeHelpKey: gitAddPushURL |
588 translateLabel: true |
588 translateLabel: true |
589 adjust: right |
589 adjust: right |
590 ) |
590 ) |
591 (ComboBoxSpec |
591 (ComboBoxSpec |
592 name: 'ComboBox2' |
592 name: 'ComboBox2' |
593 layout: (LayoutFrame 64 0.25 97 0 0 1.0 119 0) |
593 layout: (LayoutFrame 64 0.25 97 0 0 1.0 119 0) |
594 activeHelpKey: hgAddPushURL |
594 activeHelpKey: gitAddPushURL |
595 tabable: true |
595 tabable: true |
596 model: pushURL |
596 model: pushURL |
597 immediateAccept: true |
597 immediateAccept: true |
598 acceptOnLeave: true |
598 acceptOnLeave: true |
599 acceptOnReturn: true |
599 acceptOnReturn: true |
600 acceptOnTab: true |
600 acceptOnTab: true |
601 acceptOnLostFocus: true |
601 acceptOnLostFocus: true |
602 acceptChannel: acceptChannel |
602 acceptChannel: acceptChannel |
603 acceptOnPointerLeave: true |
603 acceptOnPointerLeave: true |
604 comboList: hgPushURLPrototypeList |
604 comboList: gitPushURLPrototypeList |
605 ) |
605 ) |
606 (HorizontalPanelViewSpec |
606 (HorizontalPanelViewSpec |
607 name: 'HorizontalPanel3' |
607 name: 'HorizontalPanel3' |
608 layout: (LayoutFrame 64 0.25 125 0 -1 1 150 0) |
608 layout: (LayoutFrame 64 0.25 125 0 -1 1 150 0) |
609 horizontalLayout: right |
609 horizontalLayout: right |
895 |
897 |
896 "Created: / 17-01-2012 / 17:34:53 / cg" |
898 "Created: / 17-01-2012 / 17:34:53 / cg" |
897 ! |
899 ! |
898 |
900 |
899 initializeRepository |
901 initializeRepository |
900 self halt:'unimplemented feature' |
902 |repository| |
|
903 |
|
904 repository := self repositoryHolder value. |
|
905 repository isEmptyOrNil ifTrue:[ |
|
906 Dialog warn:(resources string:'No default repository defined.'). |
|
907 ^ self. |
|
908 ]. |
|
909 GitSourceCodeManager initializeForRepository:repository |
901 |
910 |
902 "Created: / 17-01-2012 / 17:42:27 / cg" |
911 "Created: / 17-01-2012 / 17:42:27 / cg" |
903 ! ! |
912 ! ! |
904 |
913 |
905 !GitSourceCodeManagementSettingsAppl methodsFor:'aspects'! |
914 !GitSourceCodeManagementSettingsAppl methodsFor:'aspects'! |
1009 "/ cvsRoot := self cvsRootFromCVSRootFileOrNil. |
1018 "/ cvsRoot := self cvsRootFromCVSRootFileOrNil. |
1010 "/ cvsRoot notNil ifTrue:[ |
1019 "/ cvsRoot notNil ifTrue:[ |
1011 "/ prototypeList add:cvsRoot |
1020 "/ prototypeList add:cvsRoot |
1012 "/ ]. |
1021 "/ ]. |
1013 |
1022 |
1014 prototypeList add:('https://inst.kilnhg.com/Repo/Foo/Bar/Baz'). |
1023 prototypeList add:(OperatingSystem getHomeDirectory asFilename construct:'.smalltalk/gitRepository') pathName. |
|
1024 prototypeList add:(OperatingSystem getHomeDirectory asFilename construct:'gitRepository') pathName. |
|
1025 prototypeList add:('./gitRepository'). |
|
1026 prototypeList add:('https://github.com/smalltalkX/<project>/'). |
1015 "/ prototypeList add:('https://inst.kilnhg.com/Repo/Dino-VM/Group/Dino-VM'). |
1027 "/ prototypeList add:('https://inst.kilnhg.com/Repo/Dino-VM/Group/Dino-VM'). |
1016 repositoryPrototypeList := prototypeList asOrderedCollection. |
1028 repositoryPrototypeList := prototypeList asOrderedCollection. |
1017 ]. |
1029 ]. |
1018 ^ repositoryPrototypeList. |
1030 ^ repositoryPrototypeList. |
1019 |
1031 |