Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsdubois2011-04-01 19:38:09 +0000
committersdubois2011-04-01 19:41:20 +0000
commita6313726bc4d5c7830eed9572fa90cdf7cf9b8a4 (patch)
tree8bf338d0968047bccc61a63e234cbb6d251f4c8f
parentd1860c65570b1937caeec43cf30217cc4a795fe0 (diff)
downloadorg.eclipse.mylyn.reviews.r4e-a6313726bc4d5c7830eed9572fa90cdf7cf9b8a4.tar.gz
org.eclipse.mylyn.reviews.r4e-a6313726bc4d5c7830eed9572fa90cdf7cf9b8a4.tar.xz
org.eclipse.mylyn.reviews.r4e-a6313726bc4d5c7830eed9572fa90cdf7cf9b8a4.zip
ASSIGNED - bug 340082: Git VCS integration with R4E UI
https://bugs.eclipse.org/bugs/show_bug.cgi?id=340082
-rw-r--r--org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/utils/CommandUtils.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/utils/CommandUtils.java b/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/utils/CommandUtils.java
index 40a45485..ba69e569 100644
--- a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/utils/CommandUtils.java
+++ b/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/utils/CommandUtils.java
@@ -120,7 +120,6 @@ public class CommandUtils {
if (artifact.getId().equals(workspaceFileVersion)) {
// Files are different, so fetch file from remote repo and
// copy it to the temp work area
- //TODO create temp R4EFileVersion
return copyRemoteFileToLocalRepository(localRepository, artifact);
}
// else Files are the same so we can copy the file in the
@@ -130,7 +129,6 @@ public class CommandUtils {
// The current file was modified by the user, so we need to copy the
// current file in the workspace to the work area
- //TODO create temp R4EFileVersion
return copyWorkspaceFileToLocalRepository(localRepository, aFile);
}
@@ -180,7 +178,6 @@ public class CommandUtils {
final ScmArtifact artifact = connector.getArtifact(aFile);
if (null != artifact) {
//File was modified, so we need to fetch the base file from the versions repository and copy it to our own local repository
- //TODO create temp R4EFileVersion
return copyRemoteFileToLocalRepository(localRepository, artifact);
}
}
@@ -391,13 +388,13 @@ public class CommandUtils {
aTargetFileVer.setVersionID(aScmArt.getId());
aTargetFileVer.setRepositoryPath(aScmArt.getPath());
- final String projPath = aScmArt.getProjectRelativePath();
- if (null == projPath) {
- Activator.Ftracer.traceDebug("Invalid relative project path in scmArtifact with path: " +
+ final String fileRelPath = aScmArt.getProjectRelativePath();
+ if (null == fileRelPath) {
+ Activator.Ftracer.traceDebug("Invalid relative file path in scmArtifact with path: " +
aScmArt.getPath());
}
final IProject project = ResourceUtils.getProject(aScmArt.getProjectName());
- final IResource resource = ResourceUtils.findResource(project, projPath);
+ final IResource resource = ResourceUtils.findResource(project, fileRelPath);
aTargetFileVer.setPlatformURI(ResourceUtils.toPlatformURIStr(resource));
aTargetFileVer.setResource(resource);

Back to the top