Mercurial > hg
changeset 45920:1441f4d57083
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
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 20 Nov 2020 14:34:15 +0530 |
parents | aba4f2c97e74 |
children | 777e8d88f703 |
files | mercurial/dispatch.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dispatch.py Fri Oct 16 19:03:09 2020 +0530 +++ b/mercurial/dispatch.py Fri Nov 20 14:34:15 2020 +0530 @@ -919,7 +919,8 @@ 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