hg: add CLM ensure update to test

GitOrigin-RevId: 7cdd85d411108f1600d66daf8f6158bcd740acb8
This commit is contained in:
Nadya Zabrodina
2020-12-01 14:21:01 +03:00
committed by intellij-monorepo-bot
parent 314976bf47
commit 4c7e36bc2a

View File

@@ -149,6 +149,7 @@ public class HgUpdateTest extends HgCollaborativeTest {
fillFile(projectRepo, new String[]{"com", "b.txt"}, "local change");
createFileInCommand(projectRepoVirtualFile.findChild("com"), "c.txt", "other file");
myChangeListManager.ensureUpToDate();
assertIsChanged(HgFileStatusEnum.MODIFIED, "com", "b.txt");
assertIsChanged(HgFileStatusEnum.ADDED, "com", "c.txt");
@@ -162,6 +163,7 @@ public class HgUpdateTest extends HgCollaborativeTest {
HgRevisionNumber parentAfterUpdate = new HgParentsCommand(myProject).executeInCurrentThread(projectRepoVirtualFile).get(0);
assertEquals(parentAfterUpdate, incomingHead);
myChangeListManager.ensureUpToDate();
assertIsChanged(HgFileStatusEnum.MODIFIED, "com", "b.txt");
assertIsChanged(HgFileStatusEnum.ADDED, "com", "c.txt");
}