]> arthur.barton.de Git - bup.git/commit
save: make save tree collisions a deferred error
authorRob Browning <rlb@defaultvalue.org>
Thu, 30 Oct 2014 15:40:28 +0000 (10:40 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 31 Jan 2015 19:26:22 +0000 (13:26 -0600)
commit1f1a58af1a37e6cebfa0a5f70d391157f19f8827
tree9cda3d3e7f78286bc8c8b54171179d2e6f4546e4
parent0eff3fc44bb3dda4c590b9700ad4ab1148084402
save: make save tree collisions a deferred error

Check for duplicate names when saving a tree, and when duplicates are
found, issue a deferred error, keep the first, and ignore the rest.

Duplicates/collisions can be introduced by the strip/graft options.
For example, given:

  /x/1
  /y/1

consider this command:

  bup save --strip /x /y

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/save-cmd.py
t/test-save-strip-graft.sh