public class DateRevQueue extends AbstractRevQueue
Modifier and Type | Class and Description |
---|---|
(package private) static class |
DateRevQueue.Entry |
Modifier and Type | Field and Description |
---|---|
private int |
first |
private DateRevQueue.Entry |
free |
private DateRevQueue.Entry |
head |
private DateRevQueue.Entry[] |
index |
private int |
inQueue |
private int |
last |
private static int |
REBUILD_INDEX_COUNT |
private int |
sinceLastIndex |
EMPTY_QUEUE, outputType
firstParent, HAS_REWRITE, HAS_UNINTERESTING, NEEDS_REWRITE, SORT_COMMIT_TIME_DESC, SORT_TOPO
Constructor and Description |
---|
DateRevQueue()
Create an empty date queue.
|
DateRevQueue(boolean firstParent) |
DateRevQueue(Generator s) |
Modifier and Type | Method and Description |
---|---|
void |
add(RevCommit c)
Add a commit to the queue.
|
(package private) boolean |
anybodyHasFlag(int f) |
private void |
buildIndex() |
void |
clear()
Remove all entries from this queue.
|
(package private) boolean |
everbodyHasFlag(int f) |
private void |
freeEntry(DateRevQueue.Entry e) |
private DateRevQueue.Entry |
newEntry(RevCommit c) |
RevCommit |
next()
Return the next commit to the application, or the next generator.
|
(package private) int |
outputType()
Obtain flags describing the output behavior of this generator.
|
RevCommit |
peek()
Peek at the next commit, without removing it.
|
java.lang.String |
toString() |
add, addParents, describe
shareFreeList
private static final int REBUILD_INDEX_COUNT
private DateRevQueue.Entry head
private DateRevQueue.Entry free
private int inQueue
private int sinceLastIndex
private DateRevQueue.Entry[] index
private int first
private int last
public DateRevQueue()
DateRevQueue(boolean firstParent)
DateRevQueue(Generator s) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
MissingObjectException
IncorrectObjectTypeException
java.io.IOException
public void add(RevCommit c)
This method always adds the commit, even if it is already in the queue or
previously was in the queue but has already been removed. To control
queue admission use AbstractRevQueue.add(RevCommit, RevFlag)
.
add
in class AbstractRevQueue
c
- commit to add.public RevCommit next()
Remove the first commit from the queue.
next
in class AbstractRevQueue
private void buildIndex()
public RevCommit peek()
public void clear()
clear
in class AbstractRevQueue
boolean everbodyHasFlag(int f)
everbodyHasFlag
in class AbstractRevQueue
boolean anybodyHasFlag(int f)
anybodyHasFlag
in class AbstractRevQueue
int outputType()
Generator
outputType
in class AbstractRevQueue
public java.lang.String toString()
toString
in class java.lang.Object
private DateRevQueue.Entry newEntry(RevCommit c)
private void freeEntry(DateRevQueue.Entry e)