]> arthur.barton.de Git - bup.git/commit
save-cmd: Fix --smaller and other behaviour when files are skipped.
authorAvery Pennarun <apenwarr@gmail.com>
Thu, 4 Mar 2010 01:17:04 +0000 (20:17 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 4 Mar 2010 01:32:38 +0000 (20:32 -0500)
commit0fddd4427fd42396a85d4c3f696b95adf4dc7a3c
tree34cd2b86e94f3dad6a8298c46e01c0b4123d0aa6
parente79ba30d8a05dbad55274c72a0875f986fdb60e7
save-cmd: Fix --smaller and other behaviour when files are skipped.

The --smaller option now uses parse_num() so it can be something other than
a raw number of bytes (eg. "1.5G").

We were incorrectly marking a tree as valid when we skipped any of its
contents for any reason; that's no good.  We can still save a tree to the
backup, but it'll be missing some stuff, so we have to avoid marking it as
valid.  That way it won't be skipped next time around.
cmd/save-cmd.py