Mercurial > hg
changeset 31155:8266802f0fa4
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.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 03 Mar 2017 12:55:49 -0500 |
parents | fd3f4bf9325e |
children | e5aab82edf7f |
files | mercurial/config.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)