]> arthur.barton.de Git - bup.git/commit
save: separate opt handling and work; isolate resource lifetimes
authorRob Browning <rlb@defaultvalue.org>
Sun, 26 Sep 2021 00:17:13 +0000 (19:17 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 22 Nov 2021 06:33:44 +0000 (00:33 -0600)
commitac4fbf8d420916507b057d8c6e0173ba25bc3954
tree521bc0a9371f27e1a330482db48f2fc80561268a
parentc3553062d34654bf22d26eef55883d02f6cabb20
save: separate opt handling and work; isolate resource lifetimes

Rearrange save to disentangle the options parsing, saving, and
resource (e.g. packfile) lifetime management before we replace __del__
with context management.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/cmd/save.py