aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColby Ranger2012-09-26 14:57:15 (EDT)
committerColby Ranger2013-03-05 14:14:48 (EST)
commit43ea887c8b43de26a6b7a9ea547033d3c04022e7 (patch)
tree4a0e6005359d6f6860642a2ac5dc04e2a7d86cf8
parentdafcb8f6db82b899c917832768f1c240d273190c (diff)
downloadjgit-43ea887c8b43de26a6b7a9ea547033d3c04022e7.zip
jgit-43ea887c8b43de26a6b7a9ea547033d3c04022e7.tar.gz
jgit-43ea887c8b43de26a6b7a9ea547033d3c04022e7.tar.bz2
Enable serving upload requests using bitmaps.refs/changes/41/7941/18
If the pack index has bitmaps, allow the PackWriter to use the bitmaps for upload requests. Change-Id: Iefa995fe927a11e4fd78afb34530995614221fc0
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java1
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java
index e97f03c..5c959c1 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java
@@ -277,6 +277,7 @@ public abstract class BasePackPushConnection extends BasePackConnection implemen
}
writer.setUseCachedPacks(true);
+ writer.setUseBitmaps(true);
writer.setThin(thinPack);
writer.setReuseValidatingObjects(false);
writer.setDeltaBaseAsOffset(capableOfsDelta);
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
index 74801fe..bc40454 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
@@ -1137,6 +1137,7 @@ public class UploadPack {
final PackWriter pw = new PackWriter(cfg, walk.getObjectReader());
try {
pw.setUseCachedPacks(true);
+ pw.setUseBitmaps(true);
pw.setReuseDeltaCommits(true);
pw.setDeltaBaseAsOffset(options.contains(OPTION_OFS_DELTA));
pw.setThin(options.contains(OPTION_THIN_PACK));