eh.run("hg", "status", "-A");
assertEquals("[sanity]", 1, statusParser.getModified().size());
assertEquals("[sanity]", 2, statusParser.getClean().size());
assertEquals("[sanity]", targetFile, statusParser.getModified().get(0));
HgRevertCommand cmd = new HgRevertCommand(repo);
cmd.file(targetFile).execute();
statusParser.reset();
eh.run("hg", "status", "-A");
errorCollector.assertEquals(3, statusParser.getClean().size());
errorCollector.assertTrue(statusParser.getClean().contains(targetFile));