]> source.dussan.org Git - jgit.git/commit
Fix tag sorting in PlotWalk 92/1192/1
authorShawn O. Pearce <spearce@spearce.org>
Wed, 28 Jul 2010 18:44:00 +0000 (11:44 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 28 Jul 2010 18:51:17 +0000 (11:51 -0700)
commitd0f8d1e81915e4b3afed72b005e15bab69a00203
tree71fbc7848a4f90d7cf2aca8e0a60c694b5450ba9
parent74d279fbf07538f54c6d0fe689a1578eb76c52e1
Fix tag sorting in PlotWalk

By deferring tag sorting until the commit is produced by the walker
we can avoid an infinite loop that was triggered by trying to sort
tags while allocating a commit.  This also avoids needing to look
at commits which aren't going to be produced in the result.

Bug: 321103
Change-Id: I25acc739db2ec0221a50b72c2d2aa618a9a75f37
Reviewed-by: Mathias Kinzler <mathias.kinzler@sap.com>
Reviewed-by: Christian Halstrick <christian.halstrick@sap.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommit.java
org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotWalk.java