assertSame(rw.lookupBlob(bId), objw.nextObject()); | assertSame(rw.lookupBlob(bId), objw.nextObject()); | ||||
assertNull(objw.nextObject()); | assertNull(objw.nextObject()); | ||||
} | } | ||||
@Test | |||||
public void testSkipTreeWhenStartFromBlob() throws Exception { | |||||
final RevBlob f1 = blob("1"); | |||||
objw.markStart(f1); | |||||
assertSame(f1, objw.nextObject()); | |||||
objw.skipTree(); | |||||
} | |||||
} | } |
* @since 5.4 | * @since 5.4 | ||||
*/ | */ | ||||
public void skipTree() { | public void skipTree() { | ||||
currVisit.ptr = currVisit.buf.length; | |||||
if (currVisit != null) { | |||||
currVisit.ptr = currVisit.buf.length; | |||||
} | |||||
} | } | ||||
/** | /** |