Fix sorting of thin packs in PackWriter
commit9c43257e0ed86ec41963ee4c7607963e77f5a8ad
authorShawn O. Pearce <spearce@spearce.org>
Fri, 13 Mar 2009 15:45:25 +0000 (13 08:45 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 15 Mar 2009 11:48:39 +0000 (15 12:48 +0100)
tree050ca07a7efa793539fe04e5581a75da7cec3448
parentc85c76dd14f9b29519604c4659040231e0333df8
Fix sorting of thin packs in PackWriter

We must retain the TOPO and COMMIT_TIME_DESC rules when we add in
BOUNDARY for a thin pack, otherwise the resulting thin pack won't
match the expected ordering.

Its a non-critical error to sort the pack wrong, but it may cause the
client to skip around the pack data more frequently during access.

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