public class RevWalkCarryFlagsTest extends RevWalkTestCase
rwdb, trashASSUME_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, treeassertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFilesaddRepoToClose, createBareRepository, createRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, writepublic void testRevWalkCarryUninteresting_fastClock()
throws Exception
Exceptionpublic 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 complicatedExceptionpublic 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.Exceptionpublic void testRevWalkCarryCustom_SlowClock()
throws Exception
testRevWalkCarryUninteresting_SlowClock() but this time
we focus on the carrying over a custom flag.ExceptionCopyright © 2018 Eclipse JGit Project. All rights reserved.