void () { for (int i = 0; i < 40; i++) { vcs.beginChangeSet(); add(vcs, createFile(root, "f" + i)); vcs.endChangeSet(String.valueOf(i)); vcs.beginChangeSet(); add(vcs, changeContent(root, "f" + i, null)); vcs.endChangeSet(i + "_"); } List<RecentChange> cc = vcs.getRecentChanges(root); assertEquals(20, cc.size()); for (int i = 0; i < 20; i++) { assertEquals(String.valueOf(39 - i), cc.get(i).getChangeName()); } }