mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
hg: request file history for uncommitted renamed file in appropriate test
* make sure CLM is up to date; GitOrigin-RevId: 7ab4d33144de3a289314faaebfad7efd755a36f8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a897dbfd61
commit
4d70bfa624
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package hg4idea.test.history;
|
||||
|
||||
import com.intellij.openapi.vcs.FilePath;
|
||||
import com.intellij.openapi.vfs.VfsUtil;
|
||||
import com.intellij.openapi.vfs.VfsUtilCore;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
@@ -131,11 +130,13 @@ public class HgHistoryTest extends HgPlatformTest {
|
||||
String beforeName = names[namesSize - 1];
|
||||
VirtualFile before = VfsUtil.findFileByIoFile(new File(subDir.getPath(), beforeName), true);
|
||||
assert before != null;
|
||||
FilePath filePath = VcsUtil.getFilePath(VfsUtilCore.virtualToIoFile(before));
|
||||
final String renamed = "renamed";
|
||||
hg("mv " + beforeName + " " + renamed);
|
||||
myRepository.refresh(false, true);
|
||||
List<HgFileRevision> revisions = HgHistoryProvider.getHistory((filePath), myRepository, myProject);
|
||||
VirtualFile renamedFile = VfsUtil.findFileByIoFile(new File(subDir.getPath(), renamed), true);
|
||||
assert renamedFile != null;
|
||||
changeListManager.ensureUpToDate();
|
||||
List<HgFileRevision> revisions = HgHistoryProvider.getHistory(VcsUtil.getFilePath(renamedFile), myRepository, myProject);
|
||||
assertEquals(3, revisions.size());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user