* @throws Exception
*/
@Test
public void multiMatchChildrenNotIncluding() throws Exception {
final AtomicReference<RevCommit> visited1 = new AtomicReference<RevCommit>();
CommitFilter filter1 = new CommitFilter() {
public boolean include(RevWalk walker, RevCommit cmit)
throws StopWalkException, MissingObjectException,
IncorrectObjectTypeException, IOException {
visited1.set(cmit);
return false;
}
public RevFilter clone() {
return this;
}
};
final AtomicReference<RevCommit> visited2 = new AtomicReference<RevCommit>();
CommitFilter filter2 = new CommitFilter() {
public boolean include(RevWalk walker, RevCommit cmit)
throws StopWalkException, MissingObjectException,
IncorrectObjectTypeException, IOException {
visited2.set(cmit);