@Override RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException { return g.next(); }
@Override RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException { for (;;) { final RevCommit c = pending.next(); if (c == null) return null; if ((c.flags & RevWalk.UNINTERESTING) == 0) return c; } } }
/** * Pop the next most recent commit. * * @return next most recent commit; null if traversal is over. * @throws org.eclipse.jgit.errors.MissingObjectException * one or or more of the next commit's parents are not available * from the object database, but were thought to be candidates * for traversal. This usually indicates a broken link. * @throws org.eclipse.jgit.errors.IncorrectObjectTypeException * one or or more of the next commit's parents are not actually * commit objects. * @throws java.io.IOException * a pack file or loose object could not be read. */ public RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException { return pending.next(); }
DateRevQueue(Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException { for (;;) { final RevCommit c = s.next(); if (c == null) break; add(c); } }
@Override RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException { while (size < OVER_SCAN) { final RevCommit c = pending.next(); if (c == null) break; delay.add(c); size++; } final RevCommit c = delay.next(); if (c == null) return null; size--; return c; } }
@Override RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException { final RevCommit c = source.next(); if (c == null) { return null; } boolean rewrote = false; final RevCommit[] pList = c.parents; final int nParents = pList.length; for (int i = 0; i < nParents; i++) { final RevCommit oldp = pList[i]; final RevCommit newp = rewrite(oldp); if (oldp != newp) { pList[i] = newp; rewrote = true; } } if (rewrote) { c.parents = cleanup(pList); } return c; }
BlockRevQueue(Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException { free = new BlockFreeList(); outputType = s.outputType(); s.shareFreeList(this); for (;;) { final RevCommit c = s.next(); if (c == null) break; add(c); } }
/** * Create a new sorter and completely spin the generator. * <p> * When the constructor completes the supplied generator will have no * commits remaining, as all of the commits will be held inside of this * generator's internal buffer. * * @param s * generator to pull all commits out of, and into this buffer. * @throws MissingObjectException * @throws IncorrectObjectTypeException * @throws IOException */ TopoSortGenerator(Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException { pending = new FIFORevQueue(); outputType = s.outputType() | SORT_TOPO; s.shareFreeList(pending); for (;;) { final RevCommit c = s.next(); if (c == null) break; for (RevCommit p : c.parents) p.inDegree++; pending.add(c); } }
@Override RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException { return g.next(); }
@Override RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException { for (;;) { final RevCommit c = pending.next(); if (c == null) return null; if ((c.flags & RevWalk.UNINTERESTING) == 0) return c; } } }
@Override RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException { return g.next(); }
@Override RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException { for (;;) { final RevCommit c = pending.next(); if (c == null) return null; if ((c.flags & RevWalk.UNINTERESTING) == 0) return c; } } }
@Override RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException { RevCommit c = source.next(); if (c != null) { for (RevCommit p : c.parents) if ((p.flags & UNINTERESTING) != 0) held.add(p); return c; } final FIFORevQueue boundary = new FIFORevQueue(); boundary.shareFreeList(held); for (;;) { c = held.next(); if (c == null) break; if ((c.flags & DUPLICATE) != 0) continue; if ((c.flags & PARSED) == 0) c.parseHeaders(walk); c.flags |= DUPLICATE; boundary.add(c); } boundary.removeFlag(DUPLICATE); g = boundary; return boundary.next(); } }
DateRevQueue(Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException { for (;;) { final RevCommit c = s.next(); if (c == null) break; add(c); } }
DateRevQueue(final Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException { for (;;) { final RevCommit c = s.next(); if (c == null) break; add(c); } }
return g.next();
RevCommit c = s.next(); if (c == null) break;
BlockRevQueue(Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException { free = new BlockFreeList(); outputType = s.outputType(); s.shareFreeList(this); for (;;) { final RevCommit c = s.next(); if (c == null) break; add(c); } }
BlockRevQueue(Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException { free = new BlockFreeList(); outputType = s.outputType(); s.shareFreeList(this); for (;;) { final RevCommit c = s.next(); if (c == null) break; add(c); } }
BlockRevQueue(final Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException { free = new BlockFreeList(); outputType = s.outputType(); s.shareFreeList(this); for (;;) { final RevCommit c = s.next(); if (c == null) break; add(c); } }