public class RevWalkCarryFlagsTest extends RevWalkTestCase
rw
db, trash
ASSUME_UNCHANGED, author, committer, CONTENT, CONTENT_ID, LENGTH, mockSystemReader, MOD_TIME, SMUDGE
Constructor and Description |
---|
RevWalkCarryFlagsTest() |
Modifier and Type | Method and Description |
---|---|
void |
testRevWalkCarryCustom_SlowClock()
Same as
testRevWalkCarryUninteresting_SlowClock() but this time
we focus on the carrying over a custom flag. |
void |
testRevWalkCarryUninteresting_fastClock()
Test that the uninteresting flag is carried over correctly.
|
void |
testRevWalkCarryUninteresting_SlowClock()
Similar to
testRevWalkCarryUninteresting_fastClock() but the
last merge commit is created so fast that he has the same creationdate as
the previous commit. |
void |
testRevWalkCarryUninteresting_WrongClock()
Similar to
testRevWalkCarryUninteresting_SlowClock() but the
last merge commit is created with a inconsistent creationdate. |
assertCommit, blob, commit, commit, commit, commit, commitBuilder, createRevWalk, file, get, getDate, markStart, markUninteresting, parseBody, setUp, tag, tick, tree
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFiles
addRepoToClose, createBareRepository, createRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, write
public void testRevWalkCarryUninteresting_fastClock() throws Exception
Exception
public void testRevWalkCarryUninteresting_SlowClock() throws Exception
testRevWalkCarryUninteresting_fastClock()
but the
last merge commit is created so fast that he has the same creationdate as
the previous commit. This will cause the underlying DateRevQueue
is not able to sort the commits in a way matching the topology. A parent
(one of the commits which are merged) is handled before the child (the
merge commit). This makes carrying over flags more complicatedException
public void testRevWalkCarryUninteresting_WrongClock() throws Exception
testRevWalkCarryUninteresting_SlowClock()
but the
last merge commit is created with a inconsistent creationdate. The merge
commit has a older creationdate then one of the commits he is merging.Exception
public void testRevWalkCarryCustom_SlowClock() throws Exception
testRevWalkCarryUninteresting_SlowClock()
but this time
we focus on the carrying over a custom flag.Exception
Copyright © 2018 Eclipse JGit Project. All rights reserved.