eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SourceCodeManagerUtilities':

Home

everywhere
www.exept.de
for:
[back]

Class: SourceCodeManagerUtilities


Inheritance:

   Object
   |
   +--SourceCodeManagerUtilities

Package:
stx:libbasic3
Category:
System-SourceCodeManagement
Version:
rev: 1.201 date: 2010/03/21 01:50:27
user: cg
file: SourceCodeManagerUtilities.st directory: libbasic3
module: stx stc-classLibrary: libbasic3
Author:
Claus Gittinger (cg@exept)

Description:


utility code which is useful at more than one place
(extracted from the browser)



[instance variables:]

[class variables:]


Related information:



Class protocol:

Signal constants
o  yesToAllNotification

o  yesToAllQuery

accessing
o  lastModule
return the value of the static variable 'LastModule' (automatically generated)

o  lastModule: something
set the value of the static variable 'LastModule' (automatically generated)

o  lastPackage
return the value of the static variable 'LastPackage' (automatically generated)

o  lastPackage: something
set the value of the static variable 'LastPackage' (automatically generated)

resources
o  resourcePackage

utilities
o  classIsNotYetInRepository: aClass withManager: mgr

o  nameOfExtensionsContainer

o  setPackageOfAllMethodsIn: aClass to: aPackage
make all methods belong to the classes project

o  setPackageOfAllMethodsInChangeSet: aChangeSet to: aPackage
make all methods belong to the classes project

o  sourceCodeManagerFor: aClass

o  sourceCodeOfClass: aClass

utilities-cvs
o  changeSetForExtensionMethodsForPackage: packageToCheckOut askForRevision: askForRevision using: aSourceCodeManager
check-out an extension container from the source repository, and return the methods there as a change set.
If askForRevision is false, check-out the newest version.
Return a changeSet or nil (if any error occurred)

o  changeSetForExtensionMethodsForPackage: packageToCheckOut revision: revisionOrNil orAskForRevision: askForRevision using: aSourceCodeManager
check-out an extension container from the source repository, and return the methods there as a change set.
If askForRevision is false, check-out the newest version.
Return a changeSet or nil (if any error occurred)

o  checkForExistingModule: module directory: directory container: containerFileName using: mgr allowCreate: allowCreate

o  checkForExistingModule: module directory: directory using: mgr allowCreate: allowCreate

o  checkForExistingModule: module using: mgr allowCreate: allowCreate

o  checkinClass: aClass
check a class into the source repository.
Asks interactively for a log-message.

o  checkinClass: aClass withInfo: aLogInfoOrNil
check a class into the source repository.
If the argument, aLogInfoOrNil isNil, ask interactively for a log-message.

o  checkinClass: aClass withInfo: aLogInfoNil withCheck: doCheckClass
check a class into the source repository.
If the argument, aLogInfoNil isNil, ask interactively for log-message.
If doCheckClass is true, the class is checked for send of halts etc.

o  checkinClasses: aCollectionOfClass
check a collection of classes into the source repository.
Asks interactively for log-message.

o  checkinClasses: aCollectionOfClasses withInfo: aLogInfoOrNil
check a bunch of classes into the source repository.
If the argument, aLogInfoOrNil isNil, ask interactively for log-message.

o  checkinClasses: aCollectionOfClasses withInfo: aLogInfoOrStringNil withCheck: doCheckClasses
check a bunch of classes into the source repository.
If the argument, aLogInfoOrStringNil isNil, ask interactively for log-message.

o  checkinExtensionMethods: aCollectionOfMethods forPackage: aPackageID withInfo: aLogInfoOrStringOrNil
checkin a projects extensions into the source repository.
If the argument, aLogInfoOrStringOrNil isNil, ask interactively for log-message.

o  checkoutClass: aClass askForMerge: askForMerge
check-out a class from the source repository.

o  checkoutClass: aClass askForRevision: askForRevision askForMerge: askForMerge
check-out a class from the source repository.
If askForRevision is false, check-out the newest version.

o  checkoutClass: aClass askForRevision: askForRevision askForMerge: askForMerge askForConfirmation: askForConfirmation
check-out a class from the source repository.
If askForRevision is false, check-out the newest version.

o  checkoutExtensionMethodsForPackage: packageToCheckOut askForRevision: askForRevision askForMerge: askForMerge using: aSourceCodeManager
check-out a class from the source repository.
If askForRevision is false, check-out the newest version.

o  compareClassWithRepository: aClass
open a diff-textView comparing the current (in-image) version
against its orgiginal version found in the repository.

o  compareClassWithRepository: aClass askForRevision: askForRevision
open a diff-textView comparing the current (in-image) version
against its orgiginal version found in the repository.

o  compareProject: aProject withRepositoryVersionFrom: aDateOrNilForNewest

o  compareProjectWithRepository: aProject

o  createSourceContainerForClass: aClass
let user specify the source-repository values for aClass

o  defineSourceContainerForClass: aClass title: title text: boxText createDirectories: createDirs createContainer: createContainer
let user specify the source-repository values for aClass

o  diffSetOfProject: aProject againstRepositoryVersionFrom: aDateOrNilForNewest

o  removeSourceContainerForClass: aClass
show container & let user confirm twice.

o  removeSourceContainerForClass: aClass confirm: doConfirm warn: doWarn
show container & optionally let user confirm twice.

o  repositoryLogOf: aClass onto: aStream

o  repositoryLogOf: aClass short: shortOrNot onto: aStream

o  tagClass: aClass as: tag

o  tagClasses: aCollectionOfClasses as: tag

o  tagPath: aPath as: tag using: aManager

utilities-cvs-helpers
o  getMethodVersionsOfClass: aClass selector: selector numberOfRevisions: numberOfRevisionsOrNil
check-out all previous versions of aClass and retrieve the history of selector.
Return a dictionary associating revision with a changeList entries for that method.
Unfinished - need a GUI for that.

utilities-cvs-user interaction
o  askForContainer: boxText title: title note: notice initialModule: initialModule initialPackage: initialPackage initialFileName: initialFileName
open a dialog asking for a source container;
return a dictionary containing module, package and filename,
or nil if canceled.

o  askForContainer: boxText title: title note: notice initialModule: initialModule initialPackage: initialPackage initialFileName: initialFileName forNewContainer: forNewContainer
open a dialog asking for a source container;
return a dictionary containing module, package and filename,
or nil if canceled.

o  askForExistingRevision: boxText title: title class: aClass
open a dialog asking for a containers revision;
return a revision number, or nil if canceled.

o  askForExistingRevision: boxText title: title class: clsOrNil manager: aSourceCodeManager module: module package: directory fileName: fileName
open a dialog asking for a containers revision;
return a revision number, or nil if canceled.

o  checkAndWarnAboutBadMessagesInClass: aClass checkAgainHolder: checkAgainHolder
check if a class contains message-sends to:
#halt , #halt:
#error
#todo , #todo:
(and maybe more in the future)

Only checks in non-extension methods - as this is only called when checking

o  getCheckinInfoFor: aClassNameOrPackageNameString initialAnswer: initialAnswerOrNil
get a log message for checking in a class.
Return the message or nil if aborted.

o  getCheckinInfoFor: aClassNameOrPackageNameString initialAnswer: initialAnswerOrNil withQuickOption: withQuickOption
get a log message for checking in a class (plus checkinQuick state info).
Return the info-object (actually: the dialog) or nil if aborted.

o  goodInitialLogMessageForCheckinClassOfClass: aClass
figure out, if there were any non-comment changes.
Provide a reasonable initial log message (I am tired of typing in 'comment only')

utilities-encoding
o  guessEncodingOfBuffer: buffer
look for a string of the form
encoding #name
or:
encoding: name
within the given buffer
(which is usually the first few bytes of a textFile).

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  guessEncodingOfFile: aFilename
look for a string
encoding #name
or:
encoding: name
within the given buffer
(which is usually the first few bytes of a textFile).
If thats not found, use heuristics (in CharacterArray) to guess.

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  guessEncodingOfStream: aStream
look for a string of the form
encoding #name
or:
encoding: name
in the first few bytes of aStream.

** This is an obsolete interface - do not use it (it may vanish in future versions) **



ST/X 6.1.1; WebServer 1.620 at exept:8081; Tue, 22 May 2012 22:15:18 GMT