eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'StoreSourceCodeManager':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: StoreSourceCodeManager


Inheritance:

   Object
   |
   +--AbstractSourceCodeManager
      |
      +--StoreSourceCodeManager

Package:
stx:libbasic3
Category:
System-SourceCodeManagement
Version:
rev: 1.26 date: 2017/02/24 10:40:10
user: cg
file: StoreSourceCodeManager.st directory: libbasic3
module: stx stc-classLibrary: libbasic3

Description:


WARNING:
    this class is incomplete and provided as a sceletton
    if CVS is not to be used as a SourceCodeManager.
    We highly recommend to use CVS.

SourceCodeManager which accesses sourcecode through a Store Database.
This class is part of ongoing development and not yet released for public use.


Class protocol:

accessing
o  dbName

o  dbName: aString

o  defaultDBInfo

o  hostAndDBName

o  hostAndDBName: aString

o  hostName

o  hostName: aString

o  newDBInfo

o  password

o  password: aString

o  repositoryInfoPerModule
(comment from inherited method)
return the dictionary, which associates CVSRoots to module names.
If no entry is contained in this dictionary for some module,
the default cvsRoot (CVSRoot) will be used.

o  repositoryInfoPerModule: aCollectionOfDBinfos
(comment from inherited method)
ignore here

o  repositoryNameForPackage: packageId
superclass AbstractSourceCodeManager class says that I am responsible to implement this method

o  userName

o  userName: aString

basic access
o  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.

o  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.

o  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.

basic administration
o  checkForExistingContainer: fileName inModule: moduleName directory: packageDirName
check for a container to exist. Return a boolean result.

o  checkForExistingModule: moduleName
check for a module directory to be present

o  createContainerFor: aClass inModule: moduleName directory: dirName container: fileName
create a new container & check into it an initial version of aClass

o  createModule: moduleName
create a new module directory

o  createModule: module directory: directory
create a new package directory

o  initialRevisionStringFor: aClass inModule: moduleDir directory: packageDir container: fileName
return a string usable as initial revision string

o  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

initialization
o  connectToDatabase

o  tryToConnectToDatabase: dbInfo

queries
o  isExperimental

o  isResponsibleForPackage: aStringOrSymbol
superclass AbstractSourceCodeManager class says that I am responsible to implement this method

o  managerTypeName
(comment from inherited method)
Answers version manager name suitable for UI,
i,e., CVS, SubVersion, Perforce

o  managerTypeNameShort
Answers short version manager name suitable for UI,
i,e., CVS, SVN, P4. Used in cases where sorter strings
are preferred. Defaults to #managerTypeName

o  nameOfVersionMethodForExtensions

o  nameOfVersionMethodInClasses

o  settingsApplicationClass
link to my settings application (needed for the settings dialog

o  versionMethodKeyword
Answers the keyword used by the version management system to
expand a current version in a file (_without_ dollars). For
CVS it is 'Header', for SVN 'Id', others may use different
keywords. If nil is returned, then the version management does
not use any keyword.

saving
o  savePreferencesOn: aStream

source code administration
o  getExistingContainersInModule: aModule directory: aPackage

o  getExistingDirectoriesInModule: aModule

o  getExistingModules

o  revisionInfoFromString: aString

subclass responsibility
o  reportHistoryLogSince: timeGoal filterSTSources: filter filterUser: userFilter filterRepository: repositoryFilter filterModules: moduleFilter inTo: aBlock
superclass AbstractSourceCodeManager class says that I am responsible to implement this method

testing
o  isStore


Private classes:

    DBInfo


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 20 Apr 2024 03:06:46 GMT