deltas: Prune deltas when the corresponding "to" commit vanishes

We want prune to actually give you back disk space when using deltas.
This commit is contained in:
Colin Walters committed 2015-02-16 10:10:35 -05:00
1 parent dbad2f6e19
commit 08476ce254
7 files changed
+86 -26

No files matched your search

+2
View File
@@ -59,6 +59,8 @@ origrev=$(ostree --repo=repo rev-parse test)
ostree --repo=repo static-delta generate --empty --to=${origrev}
ostree --repo=repo static-delta list | grep ${origrev} || exit 1
ostree --repo=repo prune
ostree --repo=repo static-delta list | grep ${origrev} || exit 1
permuteDirectory 1 files
ostree --repo=repo commit -b test -s test --tree=dir=files