Class CommitListBuilder
java.lang.Object
net.sf.statcvs.input.CommitListBuilder
Takes a set of revisions, and builds a
List of
Commits from it. The result list is sorted by date.
The implementation allows for a tolerance of several minutes
between individual file commits, but author and message must be identical.- Version:
- $Id: CommitListBuilder.java,v 1.5 2008/04/02 11:22:15 benoitx Exp $
- Author:
- Richard Cyganiak
-
Constructor Summary
ConstructorsConstructorDescriptionCommitListBuilder(Iterator revisions) CommitListBuilder(SortedSet revisions) Creates a new instance using the given set ofRevisions. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddNewCommit(Revision rev) protected voidaddRevToCommit(Commit commit, Revision rev) Creates aListofCommits from the source iterator.static booleanisInTimeFrame(Commit commit, Date date) Returnstrueif the date lies within the timespan of the commit, plus/minus a tolerance.static booleanisSameCommit(Commit commit, Revision rev) Returnstrueif change is part of the commit, that is if they have the same author, the same message, and are within the same timeframe.protected voidprocessRevision(Revision rev)
-
Constructor Details
-
CommitListBuilder
-
CommitListBuilder
-
-
Method Details
-
createCommitList
-
processRevision
-
addNewCommit
-
addRevToCommit
-
isSameCommit
Returnstrueif change is part of the commit, that is if they have the same author, the same message, and are within the same timeframe.- Parameters:
commit- the commitrev- the revision to check against this commit- Returns:
trueif change is part of this commit
-
isInTimeFrame
-