]> arthur.barton.de Git - bup.git/commit
save-cmd.py: insist on having an index; check for the primary index file.
authorJean-Baptiste Denis <jbd@jbdenis.net>
Fri, 8 Mar 2013 22:43:26 +0000 (23:43 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 10 Mar 2013 23:54:13 +0000 (18:54 -0500)
commitb285404d352cf95e8335b7a96eda47258f95103c
treed2862e98badab679ff2ab5f975b3a7164cf22596
parent207513d0186fa5bd6fef8aea3edc6bbe929763fe
save-cmd.py: insist on having an index; check for the primary index file.

Insist on having an index, and report an error (with a suggestion to
run "bup index") if one isn't found.

Previously (at least as recently as 0.25-rc1), bup save would just
create an empty tree if there was no index.  The metadata work
unintentionally broke that behavior.

For now, treat a missing index as an error under the assumption that
it's not likely to be intentional.  If a good use case for the
previous behavior is presented, we can always restore it.

Signed-off-by: Jean-Baptiste Denis <jbd@jbdenis.net>
[rlb@defaultvalue.org: adjust commit message and save-cmd.py error message.]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
cmd/save-cmd.py