# HG changeset patch # User Augie Fackler # Date 1488563749 18000 # Node ID 8266802f0fa4efee06a15acb3c33a89d04999472 # Parent fd3f4bf9325ee6cf3f50b2b3d0b320ce62940c07 config: pass some optional args as keywords This makes it a little more obvious that self.read is being passed as include, which took me a moment to figure out. 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)