Mercurial > public > mercurial-scm > hg
diff mercurial/dispatch.py @ 52421:8ac33b3f2552
repo-config: clarify why we seems to parse the repository "twice"
That is not the first time I am confused about this code, lets add a comment to
save time in the future.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 22 Oct 2024 23:50:11 +0200 |
parents | 0a81f3ef054c |
children | 8a52fd131d3b |
line wrap: on
line diff
--- 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()