From f0df18ff4f9fbf91d5ed30fe5bb600fcec95c90f Mon Sep 17 00:00:00 2001 From: Stefan Lay Date: Fri, 11 May 2012 11:18:36 +0200 Subject: [PATCH] Add lazy loading of body for tags to PlotWalk This change is required by egit's lazy loading of the body in the history view when the walk is started with setRetainBody(false). Change-Id: I9291ba8c34c8744bc009b1bd302ed28bfa4e9476 Signed-off-by: Stefan Lay --- org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotWalk.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotWalk.java b/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotWalk.java index 8323d2fe2..55cf235cf 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotWalk.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotWalk.java @@ -172,6 +172,11 @@ public class PlotWalk extends RevWalk { return ((RevCommit) o).getCommitTime(); if (o instanceof RevTag) { RevTag tag = (RevTag) o; + try { + parseBody(tag); + } catch (IOException e) { + return 0; + } PersonIdent who = tag.getTaggerIdent(); return who != null ? who.getWhen().getTime() : 0; }