--- a/StoreSourceCodeManager.st Tue Oct 11 13:49:56 2011 +0200
+++ b/StoreSourceCodeManager.st Tue Oct 11 13:50:10 2011 +0200
@@ -147,6 +147,12 @@
"Created: / 16-08-2006 / 11:06:09 / cg"
!
+repositoryStringForPackage:packageId
+ "superclass AbstractSourceCodeManager class says that I am responsible to implement this method"
+
+ ^ self shouldImplement
+!
+
userName
^ self defaultDBInfo userName
!
@@ -155,6 +161,78 @@
self defaultDBInfo userName:aString.
! !
+!StoreSourceCodeManager class methodsFor:'basic access'!
+
+checkinClass:aClass fileName:classFileName directory:packageDir module:moduleDir source:sourceFile logMessage:logMessage force:force
+ "checkin of a class into the source repository.
+ Return true if ok, false if not."
+
+ ^ self shouldImplement
+!
+
+checkoutModule:aModule directory:aPackage andDo:aBlock
+ "check out everything from a package into a temporary directory.
+ Then evaluate aBlock, passing the name of that temp-directory.
+ Afterwards, the tempDir is removed.
+ Return true, if OK, false if any error occurred."
+
+ ^ self shouldImplement
+!
+
+streamForClass:aClass fileName:classFileName revision:revision directory:packageDir module:moduleDir cache:doCache
+ "extract a classes source code and return an open readStream on it.
+ A revision of nil selects the current (in image) revision.
+ The classes source code is extracted using the revision and the sourceCodeInfo,
+ which itself is extracted from the classes packageString."
+
+ ^ self shouldImplement
+! !
+
+!StoreSourceCodeManager class methodsFor:'basic administration'!
+
+checkForExistingContainer:fileName inModule:moduleName directory:dirName
+ "check for a container to be present"
+
+ ^ self shouldImplement
+!
+
+checkForExistingModule:moduleName
+ "check for a module directory to be present"
+
+ ^ self shouldImplement
+!
+
+createContainerFor:aClass inModule:moduleName directory:dirName container:fileName
+ "create a new container & check into it an initial version of aClass"
+
+ ^ self shouldImplement
+!
+
+createModule:moduleName
+ "create a new module directory"
+
+ ^ self shouldImplement
+!
+
+createModule:module directory:directory
+ "create a new package directory"
+
+ ^ self shouldImplement
+!
+
+initialRevisionStringFor:aClass inModule:moduleDir directory:packageDir container:fileName
+ "return a string usable as initial revision string"
+
+ ^ self shouldImplement
+!
+
+revisionLogOf:clsOrNil fromRevision:rev1OrNil toRevision:rev2OrNil numberOfRevisions:limitOrNil fileName:classFileName directory:packageDir module:moduleDir
+ "actually do return a revisionLog. The main worker method.
+ This must be implemented by a concrete source-code manager"
+
+ ^ self shouldImplement
+! !
+
!StoreSourceCodeManager class methodsFor:'queries'!
isExperimental
@@ -164,6 +242,12 @@
"Created: / 16-08-2006 / 11:23:09 / cg"
!
+isResponsibleForPackage:aStringOrSymbol
+ "superclass AbstractSourceCodeManager class says that I am responsible to implement this method"
+
+ ^ self shouldImplement
+!
+
managerTypeName
^ 'Store DB'
@@ -229,6 +313,40 @@
"Modified: / 18-04-2011 / 17:15:12 / cg"
! !
+!StoreSourceCodeManager class methodsFor:'source code administration'!
+
+getExistingContainersInModule:aModule directory:aPackage
+ "{ Pragma: +optSpace }"
+
+ ^ self shouldImplement
+!
+
+getExistingDirectoriesInModule:aModule
+ "{ Pragma: +optSpace }"
+
+ ^ self shouldImplement
+!
+
+getExistingModules
+ "{ Pragma: +optSpace }"
+
+ ^ self shouldImplement
+!
+
+revisionInfoFromString:aString
+ "{ Pragma: +optSpace }"
+
+ ^ self shouldImplement
+! !
+
+!StoreSourceCodeManager class methodsFor:'subclass responsibility'!
+
+reportHistoryLogSince:timeGoal filterSTSources:filter filterUser:userFilter filterRepository:repositoryFilter filterModules:moduleFilter inTo:aBlock
+ "superclass AbstractSourceCodeManager class says that I am responsible to implement this method"
+
+ ^ self shouldImplement
+! !
+
!StoreSourceCodeManager class methodsFor:'testing'!
isStore
@@ -328,5 +446,5 @@
!StoreSourceCodeManager class methodsFor:'documentation'!
version_CVS
- ^ '$Header: /cvs/stx/stx/libbasic3/StoreSourceCodeManager.st,v 1.17 2011-10-03 16:27:57 vrany Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic3/StoreSourceCodeManager.st,v 1.18 2011-10-11 11:50:10 vrany Exp $'
! !