comparison test/org/tmatesoft/hg/test/TestRevert.java @ 559:6ca3d0c5b4bc

Commit: tests and fixes for defects discovered
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 25 Feb 2013 19:48:20 +0100
parents 2813a26b8999
children
comparison
equal deleted inserted replaced
558:154718ae23ed 559:6ca3d0c5b4bc
50 // get a copy of a repository 50 // get a copy of a repository
51 File testRepoLoc = RepoUtils.cloneRepoToTempLocation(Configuration.get().find("log-1"), "test-revert", false); 51 File testRepoLoc = RepoUtils.cloneRepoToTempLocation(Configuration.get().find("log-1"), "test-revert", false);
52 52
53 repo = new HgLookup().detect(testRepoLoc); 53 repo = new HgLookup().detect(testRepoLoc);
54 Path targetFile = Path.create("b"); 54 Path targetFile = Path.create("b");
55 RepoUtils.modifyFileAppend(new File(testRepoLoc, targetFile.toString())); 55 RepoUtils.modifyFileAppend(new File(testRepoLoc, targetFile.toString()), "XXX");
56 56
57 StatusOutputParser statusParser = new StatusOutputParser(); 57 StatusOutputParser statusParser = new StatusOutputParser();
58 eh = new ExecHelper(statusParser, testRepoLoc); 58 eh = new ExecHelper(statusParser, testRepoLoc);
59 eh.run("hg", "status", "-A"); 59 eh.run("hg", "status", "-A");
60 assertEquals("[sanity]", 1, statusParser.getModified().size()); 60 assertEquals("[sanity]", 1, statusParser.getModified().size());