diff -r fd3f4bf9325e -r 8266802f0fa4 mercurial/config.py --- a/mercurial/config.py Fri Mar 03 13:28:24 2017 -0500 +++ b/mercurial/config.py Fri Mar 03 12:55:49 2017 -0500 @@ -170,4 +170,5 @@ def read(self, path, fp=None, sections=None, remap=None): if not fp: fp = util.posixfile(path, 'rb') - self.parse(path, fp.read(), sections, remap, self.read) + self.parse(path, fp.read(), + sections=sections, remap=remap, include=self.read)