void () { VirtualFile f = createChildData(myRoot, "f.txt"); setContent(f, "1"); setDocumentTextFor(f, "2"); LocalHistory.getInstance().putSystemLabel(myProject, "label"); LocalHistory.getInstance().putUserLabel(myProject, "label"); List<Revision> rr = getRevisionsFor(f); assertEquals(6, rr.size()); // 3 changes + 2 labels assertEquals("2", new String(rr.get(0).findEntry().getContent().getBytes(), StandardCharsets.UTF_8)); assertEquals("2", new String(rr.get(1).findEntry().getContent().getBytes(), StandardCharsets.UTF_8)); assertEquals("2", new String(rr.get(2).findEntry().getContent().getBytes(), StandardCharsets.UTF_8)); assertEquals("1", new String(rr.get(3).findEntry().getContent().getBytes(), StandardCharsets.UTF_8)); assertEquals("", new String(rr.get(4).findEntry().getContent().getBytes(), StandardCharsets.UTF_8)); }