Login | Register
My pages Projects Community openCollabNet

Welcome to the new Tigris! There have been some changes to the administration of mail lists. Project and list owners should check out the Discussion Services release notes.

Package commitmessage :: Package controllers :: Module cvs :: Class CvsController
[show private | hide private]
[frames | no frames]

Class CvsController

Controller --+
             |
            CvsController


Translates CVS loginfo/commitinfo information into the model
Method Summary
  __init__(self, config, argv, stdin)
Initializes up the FILE_PREFIX, LAST_DIRECTORY_FILE, and other variables
  _doCommitInfo(self)
Saves the current directory name to LAST_DIRECTORY_FILE so that _doLogInfo will know when it is done (when it's on the same directory as the last one _doCommitInfo saved)
  _doLogInfo(self)
Starts building the model if this is the last _doLogInfo of the commit
  _executeViews(self)
Overrides the parent _executeViews to r-build the model with all of the temporary files
  _fillInValues(self)
Goes through each file in this execution's directory and fills in the missing rev/delta/diff information
  _isLastDirectoryOfCommit(self)
Return whether the current directory is the last directory of the commit
  _loadSavedDirectoriesIntoModel(self)
Reloads the pickled Directorys into the model
  _parseLoginfoStdinIntoFiles(self)
Reads in the loginfo text from stdin and parses the file information into Files
  _parseLogLinesIntoModel(self)
Saves the log lines found on stdin into the model
  _populateModel(self)
Performs _doCommitInfo (done first for each directory) or _doLogInfo (done last for each directory)
  _saveDirectory(self)
Pickles the current Directory off to the TMPDIR/FILE_PREFIX directory
  _stopProcessForNow(self)
Return True if we're in _doCommitInfo or not the last directory for which _doLogInfo will be invoked
    Inherited from Controller
  addRepoPrefix(self)
Return whether the name of the CVS module/SVN repo should prefix all of the directory paths
  matchWithRepoPrefix(self)
Return whether the name of the CVS module/SVN repo should be used in matching the greatest common directory to modules
  process(self)
Starts the SCM-agnostic process of building the model and executing the views

Class Variable Summary
str FILE_PREFIX = ''
str LAST_DIRECTORY_FILE = ''
    Inherited from Controller
str TMPDIR = 'C:\\DOCUME~1\\stephen\\LOCALS~1\\Temp'

Method Details

__init__(self, config, argv, stdin)
(Constructor)

Initializes up the FILE_PREFIX, LAST_DIRECTORY_FILE, and other variables
Overrides:
commitmessage.model.Controller.__init__

_doCommitInfo(self)

Saves the current directory name to LAST_DIRECTORY_FILE so that _doLogInfo will know when it is done (when it's on the same directory as the last one _doCommitInfo saved)

Executed for each directory in the commit before any _doLogInfos are called.

_doLogInfo(self)

Starts building the model if this is the last _doLogInfo of the commit

Executed for each directory in the commit after all of the _doCommitInfos are called.

_executeViews(self)

Overrides the parent _executeViews to r-build the model with all of the temporary files
Overrides:
commitmessage.model.Controller._executeViews

_fillInValues(self)

Goes through each file in this execution's directory and fills in the missing rev/delta/diff information

_isLastDirectoryOfCommit(self)

Returns:
whether the current directory is the last directory of the commit

_loadSavedDirectoriesIntoModel(self)

Reloads the pickled Directorys into the model

_parseLoginfoStdinIntoFiles(self)

Reads in the loginfo text from stdin and parses the file information into Files

_parseLogLinesIntoModel(self)

Saves the log lines found on stdin into the model

_populateModel(self)

Performs _doCommitInfo (done first for each directory) or _doLogInfo (done last for each directory)
Overrides:
commitmessage.model.Controller._populateModel

_saveDirectory(self)

Pickles the current Directory off to the TMPDIR/FILE_PREFIX directory

_stopProcessForNow(self)

Returns:
True if we're in _doCommitInfo or not the last directory for which _doLogInfo will be invoked
Overrides:
commitmessage.model.Controller._stopProcessForNow

Class Variable Details

FILE_PREFIX

Type:
str
Value:
''                                                                     

LAST_DIRECTORY_FILE

Type:
str
Value:
''                                                                     

Generated by Epydoc 2.1 on Thu Jan 06 10:30:34 2005 http://epydoc.sf.net