mercurial/config.py
changeset 45280 83ca8d6f3206
parent 45278 3f54242781e9
child 45281 668af67bfd18
--- a/mercurial/config.py	Wed Jul 22 10:25:28 2020 -0700
+++ b/mercurial/config.py	Wed Jul 22 10:32:28 2020 -0700
@@ -213,7 +213,10 @@
             % (fp, fp.mode,)
         )
 
+        dir = os.path.dirname(path)
+
         def include(rel, abs, remap, sections):
+            abs = os.path.normpath(os.path.join(dir, rel))
             self.read(abs, remap=remap, sections=sections)
 
         self.parse(