# HG changeset patch
# User Augie Fackler <r...@durin42.com>
# Date 1488563749 18000
#      Fri Mar 03 12:55:49 2017 -0500
# Node ID 2ab40e1c47207da01974913a46796967e19242bd
# Parent  0034a661fbdc1e29e51fe8e2877467204282f669
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 --git a/mercurial/config.py b/mercurial/config.py
--- a/mercurial/config.py
+++ b/mercurial/config.py
@@ -173,4 +173,5 @@ class config(object):
         assert fp.mode == r'rb', ('config files must be opened'
                                   ' in binary mode, got fp=%r mode=%r' % (
                                       fp, fp.mode))
-        self.parse(path, fp.read(), sections, remap, self.read)
+        self.parse(path, fp.read(),
+                   sections=sections, remap=remap, include=self.read)
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to