@Test public void testGetHistoryPartial() throws Exception { setUpTestRepository(); File root = new File(repository.getSourceRoot(), "mercurial"); MercurialRepository mr = (MercurialRepository) RepositoryFactory.getRepository(root); History hist = mr.getHistory(root, REVISIONS[REVISIONS.length - 1]); List<HistoryEntry> entries = hist.getHistoryEntries(); assertEquals(REVISIONS.length - 1, entries.size()); for (int i = 0; i < entries.size(); i++) { HistoryEntry e = entries.get(i); assertEquals(REVISIONS[i], e.getRevision()); assertNotNull(e.getAuthor()); assertNotNull(e.getDate()); assertNotNull(e.getFiles()); assertNotNull(e.getMessage()); } }
@Override History getHistory(File file) throws HistoryException { return getHistory(file, null); }
MercurialRepository extends Repository { @Override History getHistory(File file) throws HistoryException { return getHistory(file, null); } }
MercurialRepository extends Repository { @Override History getHistory(File file) throws HistoryException { return getHistory(file, null); } MercurialRepository(); }
MercurialRepository extends Repository { @Override History getHistory(File file) throws HistoryException { return getHistory(file, null); } MercurialRepository(); @Override Annotation annotate(File file, String revision); @Override boolean fileHasAnnotation(File file); @Override boolean fileHasHistory(File file); @Override boolean isWorking(); @Override String determineCurrentVersion(CommandTimeoutType cmdType); }
MercurialRepository extends Repository { @Override History getHistory(File file) throws HistoryException { return getHistory(file, null); } MercurialRepository(); @Override Annotation annotate(File file, String revision); @Override boolean fileHasAnnotation(File file); @Override boolean fileHasHistory(File file); @Override boolean isWorking(); @Override String determineCurrentVersion(CommandTimeoutType cmdType); static final String CMD_PROPERTY_KEY; static final String CMD_FALLBACK; static final String NOFOREST_PROPERTY_KEY; }