config: Don't fill in the parser with all defaults
authorGuido Günther <agx@sigxcpu.org>
Wed, 26 Jun 2013 16:43:49 +0000 (18:43 +0200)
committerGuido Günther <agx@sigxcpu.org>
Wed, 26 Jun 2013 18:37:52 +0000 (20:37 +0200)
commit38d43b4f0c292d28c511a9968008a500b8565768
tree275f072440e5b6e5546f9c62ae360947d178cd18
parentff9f935462563819953115e53d0223c979388187
config: Don't fill in the parser with all defaults

There's no need to fill the parser with all the built in defaults since
we can simply copy them to the config from the class dict. This allows
us to first set the values from the old {git,gbp}-* commands and then
only overwrite changed values from the newer "gbp <command>" versions.

Otherwise we'd overwite all old style config with the new style one.
This also fixes the problem where the default section wouldn't be read
at all if the command doesn't even have an empty section in any gbp.conf
file.
gbp/config.py