mercurial/dispatch.py
changeset 52421 8ac33b3f2552
parent 52416 0a81f3ef054c
child 52422 8a52fd131d3b
--- a/mercurial/dispatch.py	Tue Oct 22 17:23:28 2024 +0200
+++ b/mercurial/dispatch.py	Tue Oct 22 23:50:11 2024 +0200
@@ -986,6 +986,9 @@
             lui.readconfig(os.path.join(path, b".hg", b"hgrc-not-shared"), path)
 
     if rpath:
+        # the specified path, might be defined in the [paths] section of the
+        # local repository. So we had to read the local config first even if it
+        # get overriden here.
         path_obj = urlutil.get_clone_path_obj(lui, rpath)
         path = path_obj.rawloc
         lui = ui.copy()