mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[hg]: IDEA-146901 IOOBE if invoke MQ=>Go to patch for initial commit
This commit is contained in:
@@ -29,11 +29,15 @@ import org.zmlx.hg4idea.command.mq.HgQGotoCommand;
|
||||
import org.zmlx.hg4idea.command.mq.HgQPopCommand;
|
||||
import org.zmlx.hg4idea.repo.HgRepository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class HgQGotoFromLogAction extends HgMqAppliedPatchAction {
|
||||
@Override
|
||||
protected void actionPerformed(@NotNull final HgRepository repository, @NotNull final VcsFullCommitDetails commit) {
|
||||
final Project project = repository.getProject();
|
||||
final Hash parentHash = commit.getParents().get(0);
|
||||
List<Hash> parents = commit.getParents();
|
||||
final Hash parentHash = parents.isEmpty() ? null : parents.get(0);
|
||||
|
||||
final HgNameWithHashInfo parentPatchName = ContainerUtil.find(repository.getMQAppliedPatches(), new Condition<HgNameWithHashInfo>() {
|
||||
@Override
|
||||
public boolean value(HgNameWithHashInfo info) {
|
||||
|
||||
Reference in New Issue
Block a user