]> arthur.barton.de Git - bup.git/commit
save: refactor the code using helper classes
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 28 Jan 2020 20:24:09 +0000 (21:24 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 13 Jun 2021 16:32:17 +0000 (11:32 -0500)
commit3c0f10081bf995b16c26a9ed94607dae1375030f
treeb8cdaa791a203aae722a1c418ff122246afd749c
parent3175e48204ff274d488104085f6d44282f4ddc87
save: refactor the code using helper classes

Instead of keeping three lists, refactor the code to use
a helper class for a folder being collected, and an item
in that folder being collected.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/cmd/save.py
lib/bup/tree.py [new file with mode: 0644]