diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2019-02-25 17:56:28 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2019-02-25 17:56:28 +0300 |
commit | 0984eefa7d3a0fd9ccb86f2f0de358c32d4f8efa (patch) | |
tree | 5d0448c39139d6dc77e02eb0db040c5cbe774f97 | |
parent | 4069ef049dee3365c56d498f647f7ea9ccb077fa (diff) |
Add separate hash cache case
-rwxr-xr-x[-rw-r--r--] | test-delta-islands | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test-delta-islands b/test-delta-islands index 1e505773c..7cfd28cea 100644..100755 --- a/test-delta-islands +++ b/test-delta-islands @@ -25,6 +25,18 @@ def main puts "---\n\n" end + bitmapHC = File.join(tmp, 'bitmap-hashcache.git') + run!(%W[git clone --bare --mirror #{bitmap} #{bitmapHC}]) + run!(%W[git -C #{bitmapHC} config repack.writeBitmaps true]) + run!(%W[git -C #{bitmapHC} config pack.writeBitmapHashCache true]) + run!(%W[git -C #{bitmapHC} repack -ad]) + + puts "\n\n---\nWith bitmap and bitmap hash cache\n---" + 2.times do + pack_objects(bitmapHC) + puts "---\n\n" + end + delta = File.join(tmp, 'delta.git') run!(%W[git clone --bare --mirror #{origin} #{delta}]) |