mercurial/subrepoutil.py
changeset 45257 668af67bfd18
parent 45255 0323972f78f3
child 46423 271dfcb98544
--- 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))