Improve sort order in history viewer
commita9c6f575c25b89dcd69558b32d816ca79802028a
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 9 Sep 2007 14:26:20 +0000 (9 16:26 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 10 Sep 2007 17:53:48 +0000 (10 19:53 +0200)
treec6c0448ee9832312272eae8df2a80b8c6ddbc450
parentc391b89e50d85bd10c78b9388e1036ad77057ca1
Improve sort order in history viewer

When all versions are displayed, the sort order became fuzzy
since HEAD could appear anywhere depending on whether it introduced
changes or not.

This makes it appear as high as possible regardless of whether it introduces
changes or not.It may low if the HEAD commit is on another branch with newer
commits.

Workspace and index. when present, will always be fiirst. Index is compared only to workspace and HEAD,
while workspace is compared to all HEAD:s.

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/lib/TopologicalWalker.java