|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SvnLogBuilder
Interface for defining a Builder that constructs a data structure from a SVM
logfile. SvnLogfileParser
takes an instance of this interface and
will call methods on the interface for every piece of data it encounters in
the log.
First, buildModule(java.lang.String)
will be called with the name of the module. Then,
buildFile(java.lang.String, boolean, boolean, java.util.Map, java.util.Map)
will be called with the filename and other pieces of
information of the first file in the log. Then, for every revision of this
file, buildRevision(net.sf.statsvn.input.RevisionData)
is called. The calls to buildFile and
buildRevision are repeated for every file in the log.
The files are in no particular order. The revisions of one file are ordered by time, beginning with the most recent.
Method Summary | |
---|---|
void |
addToAttic(java.lang.String filename)
Adds a file to the attic. |
void |
buildFile(java.lang.String filename,
boolean isBinary,
boolean isInAttic,
java.util.Map revBySymnames,
java.util.Map dateBySymnames)
Starts building a new file. |
void |
buildModule(java.lang.String moduleName)
Starts building a module. |
void |
buildRevision(RevisionData data)
Adds a revision to the last file that was built.. |
java.util.Map |
getFileBuilders()
New in StatSVN: We need to have access to FileBuilders after they have been created to populate them with version numbers later on. |
boolean |
matchesPatterns(java.lang.String filename)
Matches a filename against the include and exclude patterns. |
boolean |
matchesTagPatterns(java.lang.String tag)
Matches a tag against the tag patterns. |
void |
updateRevision(java.lang.String filename,
java.lang.String revisionNumber,
int linesAdded,
int linesRemoved)
New in StatSVN: Updates a particular revision for a file with new line count information. |
Method Detail |
---|
void buildModule(java.lang.String moduleName)
moduleName
- the name of the modulevoid buildFile(java.lang.String filename, boolean isBinary, boolean isInAttic, java.util.Map revBySymnames, java.util.Map dateBySymnames)
filename
- the file's name with path relative to the module, for example
"path/file.txt"isBinary
- true if it's a binary fileisInAttic
- true if the file is dead on the main branchrevBySymnames
- maps revision (string) by symbolic name (string)dateBySymnames
- maps date (date) by symbolic name (string)void buildRevision(RevisionData data)
data
- the revisionvoid addToAttic(java.lang.String filename)
filename
- the filename to add to the attic.java.util.Map getFileBuilders()
void updateRevision(java.lang.String filename, java.lang.String revisionNumber, int linesAdded, int linesRemoved)
filename
- the file to be updatedrevisionNumber
- the revision number to be updatedlinesAdded
- the lines that were addedlinesRemoved
- the lines that were removedboolean matchesPatterns(java.lang.String filename)
filename
- a filename
boolean matchesTagPatterns(java.lang.String tag)
tag
- a tag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |