author | Claus Gittinger <cg@exept.de> |
Thu, 01 Dec 2011 20:51:31 +0100 | |
changeset 527 | 35e176be9ee9 |
parent 513 | 5172fd274198 |
child 530 | 1180940eea58 |
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 |
116 |
"superclass AbstractSourceCodeManager class says that I am responsible to implement this method" |
|
117 |
||
118 |
^ self shouldImplement |
|
119 |
! |
|
120 |
||
527
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
121 |
managerTypeName |
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
122 |
|
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
123 |
^'Monticello 1.x' |
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
124 |
|
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
125 |
"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
|
126 |
! |
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
127 |
|
344 | 128 |
settingsApplicationClass |
129 |
"link to my settings application (needed for the settings dialog" |
|
130 |
||
131 |
^ MCSettingsApp |
|
132 |
||
133 |
"Modified: / 20-07-2011 / 16:52:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
134 |
! ! |
|
135 |
||
136 |
!MCSourceCodeManager class methodsFor:'source code administration'! |
|
137 |
||
138 |
getExistingContainersInModule:aModule directory:aPackage |
|
139 |
"{ Pragma: +optSpace }" |
|
140 |
||
141 |
^ self shouldImplement |
|
142 |
! |
|
143 |
||
144 |
getExistingDirectoriesInModule:aModule |
|
145 |
"{ Pragma: +optSpace }" |
|
146 |
||
147 |
^ self shouldImplement |
|
148 |
! |
|
149 |
||
150 |
getExistingModules |
|
151 |
"{ Pragma: +optSpace }" |
|
152 |
||
153 |
^ self shouldImplement |
|
154 |
! |
|
155 |
||
156 |
revisionInfoFromString:aString |
|
157 |
"{ Pragma: +optSpace }" |
|
158 |
||
159 |
^ self shouldImplement |
|
160 |
! ! |
|
161 |
||
162 |
!MCSourceCodeManager class methodsFor:'subclass responsibility'! |
|
163 |
||
164 |
reportHistoryLogSince:timeGoal filterSTSources:filter filterUser:userFilter filterRepository:repositoryFilter filterModules:moduleFilter inTo:aBlock |
|
165 |
"superclass AbstractSourceCodeManager class says that I am responsible to implement this method" |
|
166 |
||
167 |
^ self shouldImplement |
|
168 |
! ! |
|
169 |
||
170 |
!MCSourceCodeManager class methodsFor:'documentation'! |
|
171 |
||
172 |
version |
|
527
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
173 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCSourceCodeManager.st,v 1.4 2011-12-01 19:51:31 cg Exp $' |
344 | 174 |
! |
175 |
||
176 |
version_CVS |
|
527
35e176be9ee9
category of: #managerTypeName
Claus Gittinger <cg@exept.de>
parents:
513
diff
changeset
|
177 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCSourceCodeManager.st,v 1.4 2011-12-01 19:51:31 cg Exp $' |
344 | 178 |
! |
179 |
||
180 |
version_SVN |
|
181 |
^ '§Id: MCSourceCodeManager.st 31 2011-07-20 15:52:38Z vranyj1 §' |
|
182 |
! ! |