|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.input.CommitListBuilder
Takes a set of revisions, and builds a List
of
Commit
s 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.
Constructor Summary | |
CommitListBuilder(SortedSet revisions)
Creates a new instance using the given set of CvsRevision s. |
Method Summary | |
protected void |
addNewCommit(CvsRevision rev)
|
protected void |
addRevToCommit(Commit commit,
CvsRevision rev)
|
List |
createCommitList()
Creates a List of Commit s from the source iterator. |
static boolean |
isInTimeFrame(Commit commit,
Date date)
Returns true if the date lies within the timespan of
the commit, plus/minus a tolerance. |
static boolean |
isSameCommit(Commit commit,
CvsRevision rev)
Returns true if change is part of the commit, that is if
they have the same author, the same message, and are within the same
timeframe. |
protected void |
processRevision(CvsRevision rev)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CommitListBuilder(SortedSet revisions)
CvsRevision
s.
The set must be sorted by date, oldest first.
revisions
- a set of CvsRevision
sMethod Detail |
public List createCommitList()
List
of Commit
s from the source iterator.
The result list will be sorted by date.
Commit
objectsprotected void processRevision(CvsRevision rev)
protected void addNewCommit(CvsRevision rev)
protected void addRevToCommit(Commit commit, CvsRevision rev)
public static boolean isSameCommit(Commit commit, CvsRevision rev)
true
if change is part of the commit, that is if
they have the same author, the same message, and are within the same
timeframe.
commit
- the commitrev
- the revision to check against this commit
true
if change is part of this commitpublic static boolean isInTimeFrame(Commit commit, Date date)
true
if the date lies within the timespan of
the commit, plus/minus a tolerance.
date
- the date to check against this commit
true
if the date lies within the timespan of the commit
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |