@@ -0,0 +1,1702 @@
+package hg4idea.test.history;%0A%0Aimport com.intellij.openapi.vfs.VfsUtilCore;%0Aimport com.intellij.openapi.vfs.VirtualFile;%0Aimport hg4idea.test.HgPlatformTest;%0Aimport org.jetbrains.annotations.NotNull;%0Aimport org.zmlx.hg4idea.HgFile;%0Aimport org.zmlx.hg4idea.HgFileRevision;%0Aimport org.zmlx.hg4idea.command.HgLogCommand;%0Aimport org.zmlx.hg4idea.execution.HgCommandException;%0A%0Aimport java.util.List;%0A%0Aimport static com.intellij.dvcs.test.Executor.cd;%0Aimport static com.intellij.dvcs.test.Executor.touch;%0Aimport static hg4idea.test.HgExecutor.hg;%0A%0A/**%0A * @author Nadya Zabrodina%0A */%0Apublic class HgLogTest extends HgPlatformTest %7B%0A%0A  public void testParceCopiedWihoutBraces() throws HgCommandException %7B%0A    parseCopied(%22f.txt%22);%0A  %7D%0A%0A  public void testParceCopiedWithBraces() throws HgCommandException %7B%0A    parseCopied(%22(f.txt)%22);%0A  %7D%0A%0A  private void parseCopied(@NotNull String sourceFileName) throws HgCommandException %7B%0A    cd(myRepository);%0A    String copiedFileName = %22copy%22.concat(sourceFileName);%0A    touch(sourceFileName);%0A    myRepository.refresh(false, true);%0A    hg(%22add %22 + sourceFileName);%0A    hg(%22commit -m a %22);%0A    hg(%22cp %22 + sourceFileName + %22 %22 + copiedFileName);%0A    myRepository.refresh(false, true);%0A    hg(%22commit -m a %22);%0A    HgLogCommand logCommand = new HgLogCommand(myProject);%0A    logCommand.setFollowCopies(true);%0A    VirtualFile copiedFile = myRepository.findChild(copiedFileName);%0A    assert copiedFile != null;%0A    final HgFile hgFile = new HgFile(myRepository, VfsUtilCore.virtualToIoFile(copiedFile));%0A    List%3CHgFileRevision%3E revisions = logCommand.execute(hgFile, 1, true);%0A    HgFileRevision rev = revisions.get(0);%0A    assertTrue(!rev.getAddedFiles().isEmpty());%0A  %7D%0A%7D%0A

test for copied files parsing added (with '(' and without)