DiffSK / configobj

Python 3+ compatible port of the configobj library
https://configobj.readthedocs.org
Other
321 stars 76 forks source link

Preserve comments on merge. #212

Open j-bennet opened 3 years ago

j-bennet commented 3 years ago

This fixes https://github.com/DiffSK/configobj/issues/171. If we're merging config2 into config1, then values from config2, if present, should override values from config1. The same thing needs to happen with comments, but currently it does not.

Related to https://github.com/dbcli/pgcli/issues/1240.

I have an error running invoke check and could not resolve it by googling, would appreciate advice on that:

https://gist.github.com/j-bennet/392e90ed75873a69b465e32dd6763476

j-bennet commented 3 years ago

@EliAndrewC or @robdennis, any chance you'd have the time to review?