1 package com.proalpha.pds.gitutils.cherrypick;
3 import org.eclipse.core.runtime.jobs.ISchedulingRule;
4 import org.eclipse.egit.core.internal.job.RuleUtil;
5 import org.eclipse.jgit.api.errors.GitAPIException;
7 import com.proalpha.git.commands.PaIssueConveyanceCommand;
8 import com.proalpha.git.model.PaCherryPickResult;
12 private PaIssueConveyanceCommand cherryPickCommand;
13 private PaCherryPickResult cherryPickResult;
16 this.cherryPickCommand = cherryPickCommand;
19 public void execute()
throws GitAPIException {
20 cherryPickResult = cherryPickCommand.call();
23 public PaCherryPickResult getOperationResult() {
24 return cherryPickResult;
27 @SuppressWarnings(
"restriction")
28 public ISchedulingRule getSchedulingRule() {
29 if (cherryPickCommand !=
null)
30 return RuleUtil.getRule(cherryPickCommand.getRepository());