Unify RevWalk parsing code to be more consistent across types
commitcb9ef5943f74c662d2903392a8f7db70092e923c
authorShawn O. Pearce <spearce@spearce.org>
Fri, 12 Jun 2009 23:00:17 +0000 (12 16:00 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 14 Jun 2009 20:41:30 +0000 (14 22:41 +0200)
tree5d0643b7a56c2160ef83675fc7acc3df83320fe7
parentebe9b3bdcf872d6e1776745fa9bec95be8dbc6eb
Unify RevWalk parsing code to be more consistent across types

The parse() method now verifies the object actually exists, and
not just that we have a handle to it (e.g. in the case of a tree
or a blob type).  This allowed us to push a chunk of the loading
code up into the RevObject base class, removing some duplication.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/revwalk/RevBlob.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/RevCommit.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/RevObject.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/RevTag.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/RevTree.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/RevWalk.java