# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2020-11-20 09:04:15 # Node ID 1441f4d570834d521ada1b01d8e9f41e0f8aca63 # Parent aba4f2c97e742d78e4735d3ec3becf0b45658d52 dispatch: pass root path in ui.readconfig() as root of main repo Since we are reading main (shared-source) repository config options, we should pass root as that repository root only. Differential Revision: https://phab.mercurial-scm.org/D9359 diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -919,7 +919,8 @@ def _readsharedsourceconfig(ui, path): return hgvfs = vfs.vfs(os.path.join(path, b".hg")) sharedvfs = localrepo._getsharedvfs(hgvfs, requirements) - ui.readconfig(sharedvfs.join(b"hgrc"), path) + root = sharedvfs.base + ui.readconfig(sharedvfs.join(b"hgrc"), root) except IOError: pass