mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[hg]: cleanUp
This commit is contained in:
@@ -20,7 +20,6 @@ import com.intellij.openapi.vcs.changes.*;
|
||||
import com.intellij.openapi.vfs.VfsUtil;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.ui.JBColor;
|
||||
import com.intellij.util.Function;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import com.intellij.vcsUtil.VcsUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -92,12 +91,7 @@ public class HgChangeProvider implements ChangeProvider {
|
||||
hgChanges.addAll(new HgStatusCommand.Builder(true).build(myProject).executeInCurrentThread(repo, entry.getValue()));
|
||||
final HgRepository hgRepo = HgUtil.getRepositoryForFile(myProject, repo);
|
||||
if (hgRepo != null && hgRepo.hasSubrepos()) {
|
||||
hgChanges.addAll(ContainerUtil.mapNotNull(hgRepo.getSubrepos(), new Function<HgNameWithHashInfo, HgChange>() {
|
||||
@Override
|
||||
public HgChange fun(HgNameWithHashInfo info) {
|
||||
return findChange(hgRepo, info);
|
||||
}
|
||||
}));
|
||||
hgChanges.addAll(ContainerUtil.mapNotNull(hgRepo.getSubrepos(), info -> findChange(hgRepo, info)));
|
||||
}
|
||||
|
||||
sendChanges(builder, hgChanges, list, workingRevision, parentRevision);
|
||||
|
||||
Reference in New Issue
Block a user