void () { VirtualFile f = createChildData(myRoot, "f.txt"); LocalHistory.getInstance().putUserLabel(myProject, "global"); assertEquals(3, getRevisionsFor(f).size()); assertThat(getRevisionsFor(myRoot)).hasSize(4); LocalHistory.getInstance().putUserLabel(myProject, "file"); List<Revision> rr = getRevisionsFor(f); assertEquals(4, rr.size()); assertEquals("file", rr.get(1).getLabel()); assertEquals(-1, rr.get(1).getLabelColor()); assertEquals("global", rr.get(2).getLabel()); assertEquals(-1, rr.get(2).getLabelColor()); }