/** * Create a new filter to select commits before a given date/time. * * @param ts * the point in time to cut on. * @return a new filter to select commits on or before <code>ts</code>. */ public static final RevFilter before(Date ts) { return before(ts.getTime()); }
/** * Create a new filter to select commits after a given date/time. * * @param ts * the point in time to cut on. * @return a new filter to select commits on or after <code>ts</code>. */ public static final RevFilter after(Date ts) { return after(ts.getTime()); }
/** * Create a new filter to select commits after or equal a given date/time <code>since</code> * and before or equal a given date/time <code>until</code>. * * @param since the point in time to cut on. * @param until the point in time to cut off. * @return a new filter to select commits between the given date/times. */ public static final RevFilter between(Date since, Date until) { return between(since.getTime(), until.getTime()); }
@SuppressWarnings("nls") @Override public String toString() { return super.toString() + "(" + new Date(when * 1000L) + ")"; } }
@SuppressWarnings("nls") @Override public String toString() { return super.toString() + "(" + new Date(when * 1000L) + ")"; } }
private boolean wantSatisfied(RevObject want) throws IOException { if (want.has(SATISFIED)) return true; walk.resetRetain(SAVE); walk.markStart((RevCommit) want); if (oldestTime != 0) walk.setRevFilter(CommitTimeRevFilter.after(oldestTime * 1000L)); for (;;) { final RevCommit c = walk.next(); if (c == null) break; if (c.has(PEER_HAS)) { addCommonBase(c); want.add(SATISFIED); return true; } } return false; }
@SuppressWarnings("nls") @Override public String toString() { return super.toString() + "(" + new Date(when * 1000L) + " - " + new Date(until * 1000L) + ")"; }
/** * Create a new filter to select commits before a given date/time. * * @param ts * the point in time to cut on. * @return a new filter to select commits on or before <code>ts</code>. */ public static final RevFilter before(Date ts) { return before(ts.getTime()); }
/** * Create a new filter to select commits after or equal a given date/time <code>since</code> * and before or equal a given date/time <code>until</code>. * * @param since the point in time to cut on. * @param until the point in time to cut off. * @return a new filter to select commits between the given date/times. */ public static final RevFilter between(Date since, Date until) { return between(since.getTime(), until.getTime()); }
/** * Create a new filter to select commits after a given date/time. * * @param ts * the point in time to cut on. * @return a new filter to select commits on or after <code>ts</code>. */ public static final RevFilter after(final Date ts) { return after(ts.getTime()); }
@SuppressWarnings("nls") @Override public String toString() { return super.toString() + "(" + new Date(when * 1000L) + ")"; } }
/** * Create a new filter to select commits before a given date/time. * * @param ts * the point in time to cut on. * @return a new filter to select commits on or before <code>ts</code>. */ public static final RevFilter before(final Date ts) { return before(ts.getTime()); }
/** * Create a new filter to select commits after or equal a given date/time <code>since</code> * and before or equal a given date/time <code>until</code>. * * @param since the point in time to cut on. * @param until the point in time to cut off. * @return a new filter to select commits between the given date/times. */ public static final RevFilter between(final Date since, final Date until) { return between(since.getTime(), until.getTime()); }
/** * Create a new filter to select commits after a given date/time. * * @param ts * the point in time to cut on. * @return a new filter to select commits on or after <code>ts</code>. */ public static final RevFilter after(Date ts) { return after(ts.getTime()); }
@SuppressWarnings("nls") @Override public String toString() { return super.toString() + "(" + new Date(when * 1000L) + ")"; } }
/** * Create a new filter to select commits before a given date/time. * * @param ts * the point in time to cut on. * @return a new filter to select commits on or before <code>ts</code>. */ public static final RevFilter before(Date ts) { return before(ts.getTime()); }
/** * Create a new filter to select commits after or equal a given date/time <code>since</code> * and before or equal a given date/time <code>until</code>. * * @param since the point in time to cut on. * @param until the point in time to cut off. * @return a new filter to select commits between the given date/times. */ public static final RevFilter between(Date since, Date until) { return between(since.getTime(), until.getTime()); }
/** * Create a new filter to select commits after a given date/time. * * @param ts * the point in time to cut on. * @return a new filter to select commits on or after <code>ts</code>. */ public static final RevFilter after(Date ts) { return after(ts.getTime()); }