Mercurial > hg4j
diff test/org/tmatesoft/hg/test/TestRevert.java @ 529:95bdcf75e71e
Command to schedule addition/removal of repository files
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 21 Jan 2013 19:41:51 +0100 |
parents | 47b7bedf0569 |
children | 2813a26b8999 |
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/TestRevert.java Thu Jan 17 19:23:52 2013 +0100 +++ b/test/org/tmatesoft/hg/test/TestRevert.java Mon Jan 21 19:41:51 2013 +0100 @@ -76,12 +76,16 @@ errorCollector.assertEquals(targetFile.toString() + ".orig", statusParser.getUnknown().get(0).toString()); } - private static void modifyFileAppend(File f) throws Exception { + private static void modifyFileAppend(File f) throws IOException { assertTrue(f.isFile()); FileOutputStream fos = new FileOutputStream(f, true); fos.write("XXX".getBytes()); fos.close(); } + + static File cloneRepoToTempLocation(String configRepoName, String name, boolean noupdate) throws Exception, InterruptedException { + return cloneRepoToTempLocation(Configuration.get().find(configRepoName), name, noupdate); + } static File cloneRepoToTempLocation(HgRepository repo, String name, boolean noupdate) throws IOException, InterruptedException { File testRepoLoc = TestIncoming.createEmptyDir(name);