diff mercurial/subrepoutil.py @ 45257:668af67bfd18

config: remove now-unused `abs` argument from `include` callback Differential Revision: https://phab.mercurial-scm.org/D8796
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 22 Jul 2020 10:34:24 -0700
parents 0323972f78f3
children 271dfcb98544
line wrap: on
line diff
--- a/mercurial/subrepoutil.py	Wed Jul 22 10:32:28 2020 -0700
+++ b/mercurial/subrepoutil.py	Wed Jul 22 10:34:24 2020 -0700
@@ -36,7 +36,7 @@
     p = config.config()
     repo = ctx.repo()
 
-    def read(f, abs, sections=None, remap=None):
+    def read(f, sections=None, remap=None):
         if f in ctx:
             try:
                 data = ctx[f].data()
@@ -56,7 +56,7 @@
             )
 
     if b'.hgsub' in ctx:
-        read(b'.hgsub', b'.hgsub')
+        read(b'.hgsub')
 
     for path, src in ui.configitems(b'subpaths'):
         p.set(b'subpaths', path, src, ui.configsource(b'subpaths', path))