@Test public void testGetHistoryInvalid() throws Exception { assertNotNull("Couldn't read bitkeeper test repository.", bkRepo); final File file = new File(bkRepo.getDirectoryName(), "fakename.cpp"); boolean caughtFull = false; try { final History fullHistory = bkRepo.getHistory(file); } catch (final HistoryException e) { caughtFull = true; } assertTrue("No exception thrown by getHistory with fake file", caughtFull); boolean caughtPart = false; try { final History partHistory = bkRepo.getHistory(file, "1.2"); } catch (final HistoryException e) { caughtPart = true; } assertTrue("No exception thrown by getHistory with fake file", caughtPart); }
@Override History getHistory(File file) throws HistoryException { return getHistory(file, null); }
BitKeeperRepository extends Repository { @Override History getHistory(File file) throws HistoryException { return getHistory(file, null); } }
BitKeeperRepository extends Repository { @Override History getHistory(File file) throws HistoryException { return getHistory(file, null); } BitKeeperRepository(); }
BitKeeperRepository extends Repository { @Override History getHistory(File file) throws HistoryException { return getHistory(file, null); } BitKeeperRepository(); @Override boolean isWorking(); Version getVersion(); @Override boolean fileHasHistory(File file); @Override boolean fileHasAnnotation(File file); @Override Annotation annotate(File file, String revision); @Override void buildTagList(File directory, CommandTimeoutType cmdType); }
BitKeeperRepository extends Repository { @Override History getHistory(File file) throws HistoryException { return getHistory(file, null); } BitKeeperRepository(); @Override boolean isWorking(); Version getVersion(); @Override boolean fileHasHistory(File file); @Override boolean fileHasAnnotation(File file); @Override Annotation annotate(File file, String revision); @Override void buildTagList(File directory, CommandTimeoutType cmdType); static final String CMD_PROPERTY_KEY; static final String CMD_FALLBACK; }