diff options
author | Steffen Pingel | 2011-08-28 23:53:02 +0000 |
---|---|---|
committer | Matthias Sohn | 2011-08-28 23:53:02 +0000 |
commit | 651fe7a4ace42920c01b907179a2db231d10d571 (patch) | |
tree | fe8a87f43ac6c6dc1d70d6e02bf40cc8b3103ae9 | |
parent | c9eda1b41e5dff5048bba57f82010b2f715915c3 (diff) | |
download | egit-651fe7a4ace42920c01b907179a2db231d10d571.tar.gz egit-651fe7a4ace42920c01b907179a2db231d10d571.tar.xz egit-651fe7a4ace42920c01b907179a2db231d10d571.zip |
TaskReferenceFactory should set timestamp for commits
Bug: 355990
Change-Id: Ifd07fc2f462d80f78521ca90eb6e2ddf4f78e2d0
Signed-off-by: Steffen Pingel <steffen.pingel@tasktop.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r-- | org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java index 4ae6c24909..98b1d642dd 100644 --- a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java +++ b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java @@ -78,6 +78,7 @@ public class TaskReferenceFactory implements IAdapterFactory { String repoUrl = null; String message = null; + long timestamp = 0; // try to get repository url and commit message try { @@ -85,6 +86,7 @@ public class TaskReferenceFactory implements IAdapterFactory { if (revCommit != null) { repoUrl = getRepoUrl(r); message = revCommit.getFullMessage(); + timestamp = (long)revCommit.getCommitTime() * 1000; } } catch (Exception e) { continue; @@ -100,7 +102,7 @@ public class TaskReferenceFactory implements IAdapterFactory { taskRepositoryUrl = repository.getRepositoryUrl(); } - return new LinkedTaskInfo(taskRepositoryUrl, null, null, message); + return new LinkedTaskInfo(taskRepositoryUrl, null, null, message, timestamp); } return null; |