Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-08-31 17:37:30 +0000
committerKevin Sawicki2011-08-31 17:37:30 +0000
commit2a0224622e98d876b6970f077f5dc6e0b4771f2f (patch)
tree6633187f7cde60d21c96b06d20e95c31dc3c36b4 /org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github
parent4f5ed73dd3e5d08a72d113d0e4cf5f7b9a29fce5 (diff)
downloadegit-github-2a0224622e98d876b6970f077f5dc6e0b4771f2f.tar.gz
egit-github-2a0224622e98d876b6970f077f5dc6e0b4771f2f.tar.xz
egit-github-2a0224622e98d876b6970f077f5dc6e0b4771f2f.zip
Add missing setters to model classes
Change-Id: Idb955166172a8ec7bcb98cedd0abc829f1fc0f9e Signed-off-by: Kevin Sawicki <kevin@github.com>
Diffstat (limited to 'org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github')
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/pr/PullRequestUtils.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/pr/PullRequestUtils.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/pr/PullRequestUtils.java
index e34e5a7c..0a085114 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/pr/PullRequestUtils.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/pr/PullRequestUtils.java
@@ -65,7 +65,7 @@ public abstract class PullRequestUtils {
*/
public static Repository getRepository(PullRequest request) {
org.eclipse.egit.github.core.Repository remoteRepo = request.getBase()
- .getRepository();
+ .getRepo();
String id = remoteRepo.getOwner().getLogin() + '/'
+ remoteRepo.getName() + Constants.DOT_GIT;
RepositoryCache cache = Activator.getDefault().getRepositoryCache();
@@ -98,7 +98,7 @@ public abstract class PullRequestUtils {
public static void configureTopicBranch(Repository repo, PullRequest request)
throws IOException {
String branch = getBranchName(request);
- String remote = request.getHead().getRepository().getOwner().getLogin();
+ String remote = request.getHead().getRepo().getOwner().getLogin();
StoredConfig config = repo.getConfig();
config.setString(ConfigConstants.CONFIG_BRANCH_SECTION, branch,
ConfigConstants.CONFIG_KEY_MERGE, getHeadBranch(request));
@@ -115,8 +115,8 @@ public abstract class PullRequestUtils {
* @return true if same, false otherwise
*/
public static boolean isFromSameRepository(PullRequest request) {
- return request.getHead().getRepository().getOwner()
- .equals(request.getBase().getRepository().getOwner());
+ return request.getHead().getRepo().getOwner()
+ .equals(request.getBase().getRepo().getOwner());
}
/**
@@ -129,8 +129,8 @@ public abstract class PullRequestUtils {
*/
public static RemoteConfig getRemote(Repository repo, PullRequest request)
throws URISyntaxException {
- return getRemoteConfig(repo, request.getHead().getRepository()
- .getOwner().getLogin());
+ return getRemoteConfig(repo, request.getHead().getRepo().getOwner()
+ .getLogin());
}
/**
@@ -167,7 +167,7 @@ public abstract class PullRequestUtils {
StoredConfig config = repo.getConfig();
org.eclipse.egit.github.core.Repository head = request.getHead()
- .getRepository();
+ .getRepo();
remote = new RemoteConfig(config, head.getOwner().getLogin());
if (head.isPrivate())
remote.addURI(new URIish(org.eclipse.egit.github.core.Repository
@@ -206,7 +206,7 @@ public abstract class PullRequestUtils {
*/
public static String getHeadBranch(PullRequest request) {
PullRequestMarker head = request.getHead();
- return Constants.R_REMOTES + head.getRepository().getOwner().getLogin()
- + "/" + head.getRef();
+ return Constants.R_REMOTES + head.getRepo().getOwner().getLogin() + "/"
+ + head.getRef();
}
}

Back to the top