@Test public void testGetRevision() throws HistoryException, IOException { HistoryGuru instance = HistoryGuru.getInstance(); for (File f : FILES) { if (f.isFile() && instance.hasHistory(f)) { for (HistoryEntry entry : instance.getHistory(f).getHistoryEntries()) { String revision = entry.getRevision(); try (InputStream in = instance.getRevision( f.getParent(), f.getName(), revision)) { assertNotNull("Failed to get revision " + revision + " of " + f.getAbsolutePath(), in); } } } } }
public boolean getRevision(File target, String parent, String basename, String rev) throws IOException { Repository repo = getRepository(new File(parent)); return repo != null && repo.getHistoryGet(target, parent, basename, rev); }
HistoryGuru { public boolean getRevision(File target, String parent, String basename, String rev) throws IOException { Repository repo = getRepository(new File(parent)); return repo != null && repo.getHistoryGet(target, parent, basename, rev); } }
HistoryGuru { public boolean getRevision(File target, String parent, String basename, String rev) throws IOException { Repository repo = getRepository(new File(parent)); return repo != null && repo.getHistoryGet(target, parent, basename, rev); } private  HistoryGuru(); }
HistoryGuru { public boolean getRevision(File target, String parent, String basename, String rev) throws IOException { Repository repo = getRepository(new File(parent)); return repo != null && repo.getHistoryGet(target, parent, basename, rev); } private  HistoryGuru(); static HistoryGuru getInstance(); String getCacheInfo(); Annotation annotate(File file, String rev); HistoryReader getHistoryReader(File file); History getHistory(File file); History getHistory(File file, boolean withFiles); History getHistoryUI(File file); History getHistory(File file, boolean withFiles, boolean ui); boolean getRevision(File target, String parent, String basename,
            String rev); InputStream getRevision(String parent, String basename, String rev); boolean hasHistory(File file); boolean hasCacheForFile(File file); boolean hasAnnotation(File file); Map<String, Date> getLastModifiedTimes(File directory); Collection<RepositoryInfo> addRepositories(File[] files); Collection<RepositoryInfo> addRepositories(Collection<String> repos); Collection<RepositoryInfo> getRepositories(); void createCache(Collection<String> repositories); List<String> clearCache(Collection<String> repositories); void clearCacheFile(String path); void removeCache(Collection<String> repositories); void createCache(); void ensureHistoryCacheExists(File file); void removeRepositories(Collection<String> repos); void invalidateRepositories(Collection<? extends RepositoryInfo> repos, List<String> dirs, CommandTimeoutType cmdType); void invalidateRepositories(Collection<? extends RepositoryInfo> repos, CommandTimeoutType cmdType); }
HistoryGuru { public boolean getRevision(File target, String parent, String basename, String rev) throws IOException { Repository repo = getRepository(new File(parent)); return repo != null && repo.getHistoryGet(target, parent, basename, rev); } private  HistoryGuru(); static HistoryGuru getInstance(); String getCacheInfo(); Annotation annotate(File file, String rev); HistoryReader getHistoryReader(File file); History getHistory(File file); History getHistory(File file, boolean withFiles); History getHistoryUI(File file); History getHistory(File file, boolean withFiles, boolean ui); boolean getRevision(File target, String parent, String basename,
            String rev); InputStream getRevision(String parent, String basename, String rev); boolean hasHistory(File file); boolean hasCacheForFile(File file); boolean hasAnnotation(File file); Map<String, Date> getLastModifiedTimes(File directory); Collection<RepositoryInfo> addRepositories(File[] files); Collection<RepositoryInfo> addRepositories(Collection<String> repos); Collection<RepositoryInfo> getRepositories(); void createCache(Collection<String> repositories); List<String> clearCache(Collection<String> repositories); void clearCacheFile(String path); void removeCache(Collection<String> repositories); void createCache(); void ensureHistoryCacheExists(File file); void removeRepositories(Collection<String> repos); void invalidateRepositories(Collection<? extends RepositoryInfo> repos, List<String> dirs, CommandTimeoutType cmdType); void invalidateRepositories(Collection<? extends RepositoryInfo> repos, CommandTimeoutType cmdType);  }