config: close file even if we fail to read it...
config: close file even if we fail to read it
If we get an exception from cfg.read(), we would not close the file
before this patch. This patch uses a context manager to make sure we
close it.
Differential Revision:
https://phab.mercurial-scm.org/D7626