@Test public void testGetHistorySubdir() throws Exception { setUpTestRepository(); File root = new File(repository.getSourceRoot(), "mercurial"); runHgCommand(root, "import", Paths.get(getClass().getResource("/history/hg-export-subdir.txt").toURI()).toString()); MercurialRepository mr = (MercurialRepository) RepositoryFactory.getRepository(root); History hist = mr.getHistory(new File(root, "subdir")); List<HistoryEntry> entries = hist.getHistoryEntries(); assertEquals(1, entries.size()); }
@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; }