author | Claus Gittinger <cg@exept.de> |
Thu, 01 Dec 2011 21:02:37 +0100 | |
changeset 530 | 1180940eea58 |
parent 527 | 35e176be9ee9 |
child 533 | f6fa897b7755 |
permissions | -rw-r--r-- |
344 | 1 |
"{ Package: 'stx:goodies/monticello' }" |
2 |
||
3 |
AbstractSourceCodeManager subclass:#MCSourceCodeManager |
|
4 |
instanceVariableNames:'' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
7 |
category:'Monticello-St/X support' |
|
8 |
! |
|
9 |
||
10 |
||
11 |
!MCSourceCodeManager class methodsFor:'* As yet uncategorized *'! |
|
12 |
||
13 |
forgetDisabledModules |
|
14 |
||
15 |
"Nothing to do" |
|
16 |
||
17 |
"Created: / 10-06-2011 / 14:11:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
18 |
! |
|
19 |
||
20 |
savePreferencesOn:aFileStream |
|
21 |
||
22 |
"Nothing to do now..." |
|
23 |
||
24 |
"Created: / 10-06-2011 / 14:16:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
25 |
! ! |
|
26 |
||
512 | 27 |
!MCSourceCodeManager class methodsFor:'accessing'! |
28 |
||
513
5172fd274198
added: #repositoryNameForPackage:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
512
diff
changeset
|
29 |
repositoryNameForPackage:packageId |
512 | 30 |
"superclass AbstractSourceCodeManager class says that I am responsible to implement this method" |
513
5172fd274198
added: #repositoryNameForPackage:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
512
diff
changeset
|
31 |
|
512 | 32 |
^ self shouldImplement |
33 |
! ! |
|
34 |
||
344 | 35 |
!MCSourceCodeManager class methodsFor:'basic access'! |
36 |
||
37 |
checkinClass:aClass fileName:classFileName directory:packageDir module:moduleDir source:sourceFile logMessage:logMessage force:force |
|
38 |
"checkin of a class into the source repository. |
|
39 |
Return true if ok, false if not." |
|
40 |
||
41 |
^ self shouldImplement |
|
42 |
! |
|
43 |
||
44 |
checkoutModule:aModule directory:aPackage andDo:aBlock |
|
45 |
"check out everything from a package into a temporary directory. |
|
46 |
Then evaluate aBlock, passing the name of that temp-directory. |
|
47 |
Afterwards, the tempDir is removed. |
|
48 |
Return true, if OK, false if any error occurred." |
|
49 |
||
50 |
^ self shouldImplement |
|
51 |
! |
|
52 |
||
53 |
streamForClass:aClass fileName:classFileName revision:revision directory:packageDir module:moduleDir cache:doCache |
|
54 |
"extract a classes source code and return an open readStream on it. |
|
55 |
A revision of nil selects the current (in image) revision. |
|
56 |
The classes source code is extracted using the revision and the sourceCodeInfo, |
|
57 |
which itself is extracted from the classes packageString." |
|
58 |
||
59 |
^ self shouldImplement |
|
60 |
! ! |
|
61 |
||
62 |
!MCSourceCodeManager class methodsFor:'basic administration'! |
|
63 |
||
64 |
checkForExistingContainer:fileName inModule:moduleName directory:dirName |
|
65 |
"check for a container to be present" |
|
66 |
||
67 |
^ self shouldImplement |
|
68 |
! |
|
69 |
||
70 |
checkForExistingModule:moduleName |
|
71 |
"check for a module directory to be present" |
|
72 |
||
73 |
^ self shouldImplement |
|
74 |
! |
|
75 |
||
76 |
checkForExistingModule:moduleDir directory:packageDir |
|
77 |
"check for a package directory to be present" |
|
78 |
||
79 |
^ self shouldImplement |
|
80 |
! |
|
81 |
||
82 |
createContainerFor:aClass inModule:moduleName directory:dirName container:fileName |
|
83 |
"create a new container & check into it an initial version of aClass" |
|
84 |
||
85 |
^ self shouldImplement |
|
86 |
! |
|
87 |
||
88 |
createModule:moduleName |
|
89 |
"create a new module directory" |
|
90 |
||
91 |
^ self shouldImplement |
|
92 |
! |
|
93 |
||
94 |
createModule:module directory:directory |
|
95 |
"create a new package directory" |
|
96 |
||
97 |
^ self shouldImplement |
|
98 |
! |
|
99 |
||
100 |
initialRevisionStringFor:aClass inModule:moduleDir directory:packageDir container:fileName |
|
101 |
"return a string usable as initial revision string" |
|
102 |
||
103 |
^ self shouldImplement |
|
104 |
! |
|
105 |
||
106 |
revisionLogOf:clsOrNil fromRevision:rev1OrNil toRevision:rev2OrNil numberOfRevisions:limitOrNil fileName:classFileName directory:packageDir module:moduleDir |
|
107 |
"actually do return a revisionLog. The main worker method. |
|
108 |
This must be implemented by a concrete source-code manager" |
|
109 |
||
110 |
^ self shouldImplement |
|
111 |
! ! |
|
112 |
||
113 |
!MCSourceCodeManager class methodsFor:'queries'! |
|
114 |
||
512 | 115 |
isResponsibleForPackage:aStringOrSymbol |
530
1180940eea58
changed: #isResponsibleForPackage:
Claus Gittinger <cg@exept.de>
parents:
527
diff
changeset
|
116 |
"Answering true does not imply that receiver is configured default |
1180940eea58
changed: #isResponsibleForPackage:
Claus Gittinger <cg@exept.de>
parents:
527
diff
changeset
|
117 |
manager for that package, it only means that it has a repository |
1180940eea58
changed: #isResponsibleForPackage:
Claus Gittinger <cg@exept.de>
parents:
527
diff
changeset
|
118 |
configured for given package." |
512 | 119 |
|
530
1180940eea58
changed: #isResponsibleForPackage:
Claus Gittinger <cg@exept.de>
parents:
527
diff
changeset
|
120 |
"The real check is too slow. Cache needed here" |
1180940eea58
changed: #isResponsibleForPackage:
Claus Gittinger <cg@exept.de>
parents:
527
diff
changeset
|
121 |
^ true. |
1180940eea58
changed: #isResponsibleForPackage:
Claus Gittinger <cg@exept.de>
parents:
527
diff
changeset
|
122 |
|
1180940eea58
changed: #isResponsibleForPackage:
Claus Gittinger <cg@exept.de>
parents:
527
diff
changeset
|
123 |
"Modified (format): / 01-12-2011 / 20:57:20 / cg" |
512 | 124 |
! |
125 |
||
527
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
126 |
managerTypeName |
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
127 |
|
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
128 |
^'Monticello 1.x' |
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
129 |
|
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
130 |
"Created: / 26-10-2010 / 21:52:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
131 |
! |
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
132 |
|
344 | 133 |
settingsApplicationClass |
134 |
"link to my settings application (needed for the settings dialog" |
|
135 |
||
136 |
^ MCSettingsApp |
|
137 |
||
138 |
"Modified: / 20-07-2011 / 16:52:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
139 |
! ! |
|
140 |
||
141 |
!MCSourceCodeManager class methodsFor:'source code administration'! |
|
142 |
||
143 |
getExistingContainersInModule:aModule directory:aPackage |
|
144 |
"{ Pragma: +optSpace }" |
|
145 |
||
146 |
^ self shouldImplement |
|
147 |
! |
|
148 |
||
149 |
getExistingDirectoriesInModule:aModule |
|
150 |
"{ Pragma: +optSpace }" |
|
151 |
||
152 |
^ self shouldImplement |
|
153 |
! |
|
154 |
||
155 |
getExistingModules |
|
156 |
"{ Pragma: +optSpace }" |
|
157 |
||
158 |
^ self shouldImplement |
|
159 |
! |
|
160 |
||
161 |
revisionInfoFromString:aString |
|
162 |
"{ Pragma: +optSpace }" |
|
163 |
||
164 |
^ self shouldImplement |
|
165 |
! ! |
|
166 |
||
167 |
!MCSourceCodeManager class methodsFor:'subclass responsibility'! |
|
168 |
||
169 |
reportHistoryLogSince:timeGoal filterSTSources:filter filterUser:userFilter filterRepository:repositoryFilter filterModules:moduleFilter inTo:aBlock |
|
170 |
"superclass AbstractSourceCodeManager class says that I am responsible to implement this method" |
|
171 |
||
172 |
^ self shouldImplement |
|
173 |
! ! |
|
174 |
||
175 |
!MCSourceCodeManager class methodsFor:'documentation'! |
|
176 |
||
177 |
version |
|
530
1180940eea58
changed: #isResponsibleForPackage:
Claus Gittinger <cg@exept.de>
parents:
527
diff
changeset
|
178 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCSourceCodeManager.st,v 1.5 2011-12-01 20:02:37 cg Exp $' |
344 | 179 |
! |
180 |
||
181 |
version_CVS |
|
530
1180940eea58
changed: #isResponsibleForPackage:
Claus Gittinger <cg@exept.de>
parents:
527
diff
changeset
|
182 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCSourceCodeManager.st,v 1.5 2011-12-01 20:02:37 cg Exp $' |
344 | 183 |
! |
184 |
||
185 |
version_SVN |
|
186 |
^ '§Id: MCSourceCodeManager.st 31 2011-07-20 15:52:38Z vranyj1 §' |
|
187 |
! ! |