]> arthur.barton.de Git - bup.git/commit
options.py: differentiate unset and set-to-negative options.
authorBrandon Low <lostlogic@lostlogicx.com>
Sat, 10 Jul 2010 18:21:53 +0000 (11:21 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Mon, 12 Jul 2010 05:43:51 +0000 (01:43 -0400)
commitb0c1c31e420d243b5644c4158cea149b3b9771fb
tree82b68eeba8c0be4c8ed691ebccdd405524919f3a
parent7956f8db4db8a912388596cc0aef8a95f43aadd0
options.py: differentiate unset and set-to-negative options.

Unset options will still be None, but options explicitly set to a negative
will now be 0. This doesn't change semantics for anything currently in bup,
but it could be useful later when applying defaults.

While we're here, clean up the option parsing code to make it
very slightly more efficient.

Signed-off-by: Brandon Low <lostlogic@lostlogicx.com>
lib/bup/options.py
t/toptions.py