Add prerequisite verification to the bundle transport
commit250ac5fc2ab14ad4a5a701a3faa44cf0a9570729
authorShawn O. Pearce <spearce@spearce.org>
Thu, 4 Sep 2008 23:42:16 +0000 (4 16:42 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 7 Sep 2008 21:24:09 +0000 (7 23:24 +0200)
tree5d0b3a74e2e8f5492c3eef2c4655bc2df5ff1e3b
parent62ea906ee750fd866ab88e100b2b9186f5db3508
Add prerequisite verification to the bundle transport

Before we can fetch the objects contained within the bundle into
the repository we need to know if we have the necessary bases in
our reachable history, thus ensuring that we have what is needed
to fill out the thin pack and access everything contained within
it.  If we are missing any of the commits named as prerequisites
in the bundle header we cannot import it.

I forgot to implement this when I initially added bundle support
to the transport implementation.  Better late then never.

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/errors/MissingBundlePrerequisiteException.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/transport/TransportBundle.java