/** * Get the set of revisions LensKit is built from. This is in the order returned by {@code git log}, * so the head revision is first. * @return The set of revisions included in this build of LensKit. */ @Nonnull public static synchronized Set<String> getRevisions() { Set<String> revisions = revisionSet == null ? null : revisionSet.get(); if (revisions == null) { revisions = loadRevisionSet(); revisionSet = new SoftReference<>(revisions); } return revisions; }
/** * Get the set of revisions LensKit is built from. This is in the order returned by {@code git log}, * so the head revision is first. * @return The set of revisions included in this build of LensKit. */ @Nonnull public static synchronized Set<String> getRevisions() { Set<String> revisions = revisionSet == null ? null : revisionSet.get(); if (revisions == null) { revisions = loadRevisionSet(); revisionSet = new SoftReference<>(revisions); } return revisions; }