void () { addChangeSet(facade, "1", createFile(r, "file1")); addChangeSet(facade, "2", createFile(r, "file2")); RootEntry copy = r.copy(); facade.revertUpTo(copy, "", facade.getChangeListInTests().getChangesInTests().get(0), null, true, true); assertTrue(copy.hasEntry("file1")); assertFalse(copy.hasEntry("file2")); copy = r.copy(); facade.revertUpTo(copy, "", facade.getChangeListInTests().getChangesInTests().get(1), null, true, true); assertFalse(copy.hasEntry("file1")); assertFalse(copy.hasEntry("file2")); }