Don't cut off existing delta chains if we are reusing deltas
commit22f005a7db9941fff9544af39642117caf916212
authorShawn O. Pearce <spearce@spearce.org>
Thu, 25 Dec 2008 02:11:18 +0000 (24 18:11 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 4 Jan 2009 00:06:09 +0000 (4 01:06 +0100)
tree1b99741c94cc73d25165c905dd1277284d774ab0
parent002bbe82f64b3ad2f08ab214e15ce7b9c103a4c2
Don't cut off existing delta chains if we are reusing deltas

The existing pack file may have chains longer than our current max
depth, such as if it is a historical pack and was generated with a
maximum chain depth >100.  Cutting off the chains would create a
bigger pack file that we need to transmit, and it costs a lot more
CPU time to expand the delta object in order to recompress it whole,
because we couldn't copy it directly from the pack file.

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/lib/PackWriter.java