]> arthur.barton.de Git - bup.git/commit
Fix drecurse relative --excludes, quash duplicates, and add tests.
authorRob Browning <rlb@defaultvalue.org>
Fri, 31 Jan 2014 00:49:36 +0000 (18:49 -0600)
committerRob Browning <rlb@defaultvalue.org>
Fri, 31 Jan 2014 00:58:11 +0000 (18:58 -0600)
commite61643be081b242015dbd315e65fa9c922dde094
treeca047e8a341f043062c8e44a3932856b7b7165c5
parentec99d39f1e929fc325004a36d8128aa448e6223f
Fix drecurse relative --excludes, quash duplicates, and add tests.

Previously "bup drecurse --exclude bar foo" wouldn't work because bar
would be expanded to an absolute path, but drecurse would traverse
(and attempt to match against) relative paths.

Have parse_excludes() remove duplicates and sort its result.

Add some initial drecurse tests.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Makefile
cmd/drecurse-cmd.py
lib/bup/helpers.py
t/test-drecurse.sh [new file with mode: 0755]