Before a RevCommit is returned to the caller its parents are updated to create a dense DAG. Instead of reporting the actual parents as recorded when the commit was created the returned commit will reflect the next closest commit that matched the revision walker's filters.
This generator is the second phase of a path limited revision walk and
assumes it is receiving RevCommits from TreeRevFilter.
TreeRevFilter
| Modifier and Type | Field and Description |
|---|---|
| private static final int | DUPLICATE
For |
| private final FIFORevQueue | |
| private static final int | |
| private final Generator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | applyFilterToParents(RevCommit
given commit c)Makes sure that the |
| private RevCommit[] | |
| pack-priv RevCommit | next()
Implements abstract org. Return the next commit to the application, or the next generator. |
| pack-priv int | outputType()
Implements abstract org. Obtain flags describing the output behavior of this generator. |
| private RevCommit | |
| pack-priv void | shareFreeList(BlockRevQueue
another FIFO queue that wants to share our queue's free list. q)Overrides org. Connect the supplied queue to this generator's own free list (if any). |
| DUPLICATE | back to summary |
|---|---|
| private static final int DUPLICATE For | |
| pending | back to summary |
|---|---|
| private final FIFORevQueue pending | |
| REWRITE | back to summary |
|---|---|
| private static final int REWRITE | |
| source | back to summary |
|---|---|
| private final Generator source | |
| RewriteGenerator | back to summary |
|---|---|
| pack-priv RewriteGenerator(Generator s) | |
| applyFilterToParents | back to summary |
|---|---|
| private void applyFilterToParents(RevCommit c) throws MissingObjectException, IncorrectObjectTypeException, IOException Makes sure that the
| |
| cleanup | back to summary |
|---|---|
| private RevCommit[] cleanup(RevCommit[] oldList) | |
| next | back to summary |
|---|---|
| pack-priv RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException Implements abstract org. Doc from org. Return the next commit to the application, or the next generator.
| |
| outputType | back to summary |
|---|---|
| pack-priv int outputType() Implements abstract org. Doc from org. Obtain flags describing the output behavior of this generator.
| |
| rewrite | back to summary |
|---|---|
| private RevCommit rewrite(RevCommit p) throws MissingObjectException, IncorrectObjectTypeException, IOException | |
| shareFreeList | back to summary |
|---|---|
| pack-priv void shareFreeList(BlockRevQueue q) Overrides org. Doc from org. Connect the supplied queue to this generator's own free list (if any).
| |