atLeastOne = true; boolean isBoundary = (c.getDepth() == walkDepth) || c.isBoundary(); shallowFunc.accept(c.copy()); unshallowFunc.accept(c.copy());
c.parseHeaders(walk); if (c.getCommitTime() < deepenSince) { continue; if (c.has(DEEPEN_NOT)) { continue; if(c.has(UNSHALLOW) || c.has(REINTERESTING)) { p.add(REINTERESTING); p.flags &= ~RevWalk.UNINTERESTING; if ((c.flags & RevWalk.UNINTERESTING) != 0 && !c.has(UNSHALLOW)) produce = false; if (c.getCommitTime() < deepenSince) { produce = false;
if (c == null) break; if (((DepthWalk.Commit) c).getDepth() == 0) pending.add(c);
c.parseHeaders(walk); if(c.has(UNSHALLOW) || c.has(REINTERESTING)) { p.add(REINTERESTING); p.flags &= ~RevWalk.UNINTERESTING; if ((c.flags & RevWalk.UNINTERESTING) != 0 && !c.has(UNSHALLOW)) produce = false;
c.parseHeaders(walk); if(c.has(UNSHALLOW) || c.has(REINTERESTING)) { p.add(REINTERESTING); p.flags &= ~RevWalk.UNINTERESTING; if ((c.flags & RevWalk.UNINTERESTING) != 0 && !c.has(UNSHALLOW)) produce = false;
return Optional.of(Integer.valueOf(dwc.getDepth())); } else { throw new IllegalStateException(String.format(
/** * @param w * @param s Parent generator * @throws MissingObjectException * @throws IncorrectObjectTypeException * @throws IOException */ DepthGenerator(DepthWalk w, Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException { pending = new FIFORevQueue(); walk = (RevWalk)w; this.depth = w.getDepth(); this.UNSHALLOW = w.getUnshallowFlag(); this.REINTERESTING = w.getReinterestingFlag(); s.shareFreeList(pending); // Begin by sucking out all of the source's commits, and // adding them to the pending queue for (;;) { RevCommit c = s.next(); if (c == null) break; if (((DepthWalk.Commit) c).getDepth() == 0) pending.add(c); } }
/** * @param w * @param s Parent generator * @throws MissingObjectException * @throws IncorrectObjectTypeException * @throws IOException */ DepthGenerator(DepthWalk w, Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException { pending = new FIFORevQueue(); walk = (RevWalk)w; this.depth = w.getDepth(); this.UNSHALLOW = w.getUnshallowFlag(); this.REINTERESTING = w.getReinterestingFlag(); s.shareFreeList(pending); // Begin by sucking out all of the source's commits, and // adding them to the pending queue for (;;) { RevCommit c = s.next(); if (c == null) break; if (((DepthWalk.Commit) c).getDepth() == 0) pending.add(c); } }
@Override protected RevCommit createCommit(AnyObjectId id) { return new Commit(id); }
@Override protected RevCommit createCommit(AnyObjectId id) { return new Commit(id); }
@Override protected RevCommit createCommit(AnyObjectId id) { return new Commit(id); }
@Override protected RevCommit createCommit(AnyObjectId id) { return new Commit(id); }
@Override protected RevCommit createCommit(AnyObjectId id) { return new Commit(id); }
@Override protected RevCommit createCommit(AnyObjectId id) { return new Commit(id); }
c.parseHeaders(walk); if (c.getCommitTime() < deepenSince) { continue; if (c.has(DEEPEN_NOT)) { continue; if(c.has(UNSHALLOW) || c.has(REINTERESTING)) { p.add(REINTERESTING); p.flags &= ~RevWalk.UNINTERESTING; if ((c.flags & RevWalk.UNINTERESTING) != 0 && !c.has(UNSHALLOW)) produce = false; if (c.getCommitTime() < deepenSince) { produce = false;
if (c == null) break; if (((DepthWalk.Commit) c).getDepth() == 0) pending.add(c);
atLeastOne = true; boolean isBoundary = (c.getDepth() == walkDepth) || c.isBoundary(); shallowFunc.accept(c.copy()); unshallowFunc.accept(c.copy());
@Override protected RevCommit createCommit(AnyObjectId id) { return new Commit(id); }
@Override protected RevCommit createCommit(AnyObjectId id) { return new Commit(id); }