/** * Insert the commit pointer at the front of the queue. * * @param c * the commit to insert into the queue. */ public void unpop(RevCommit c) { Block b = head; if (b == null) { b = free.newBlock(); b.resetToMiddle(); b.add(c); head = b; tail = b; return; } else if (b.canUnpop()) { b.unpop(c); return; } b = free.newBlock(); b.resetToEnd(); b.unpop(c); b.next = head; head = b; }
/** * Insert the commit pointer at the front of the queue. * * @param c * the commit to insert into the queue. */ public void unpop(RevCommit c) { Block b = head; if (b == null) { b = free.newBlock(); b.resetToMiddle(); b.add(c); head = b; tail = b; return; } else if (b.canUnpop()) { b.unpop(c); return; } b = free.newBlock(); b.resetToEnd(); b.unpop(c); b.next = head; head = b; }
/** * Insert the commit pointer at the front of the queue. * * @param c * the commit to insert into the queue. */ public void unpop(final RevCommit c) { Block b = head; if (b == null) { b = free.newBlock(); b.resetToMiddle(); b.add(c); head = b; tail = b; return; } else if (b.canUnpop()) { b.unpop(c); return; } b = free.newBlock(); b.resetToEnd(); b.unpop(c); b.next = head; head = b; }
/** {@inheritDoc} */ @Override public void add(RevCommit c) { Block b = head; if (b == null || !b.canUnpop()) { b = free.newBlock(); b.resetToEnd(); b.next = head; head = b; } b.unpop(c); }
public void add(final RevCommit c) { Block b = head; if (b == null || !b.canUnpop()) { b = free.newBlock(); b.resetToEnd(); b.next = head; head = b; } b.unpop(c); }
/** {@inheritDoc} */ @Override public void add(RevCommit c) { Block b = head; if (b == null || !b.canUnpop()) { b = free.newBlock(); b.resetToEnd(); b.next = head; head = b; } b.unpop(c); }
/** * Insert the commit pointer at the front of the queue. * * @param c * the commit to insert into the queue. */ public void unpop(RevCommit c) { Block b = head; if (b == null) { b = free.newBlock(); b.resetToMiddle(); b.add(c); head = b; tail = b; return; } else if (b.canUnpop()) { b.unpop(c); return; } b = free.newBlock(); b.resetToEnd(); b.unpop(c); b.next = head; head = b; }
/** {@inheritDoc} */ @Override public void add(RevCommit c) { Block b = head; if (b == null || !b.canUnpop()) { b = free.newBlock(); b.resetToEnd(); b.next = head; head = b; } b.unpop(c); }