# HG changeset patch # User Mads Kiilerich # Date 2021-04-21 14:50:09 # Node ID c9834271cd066d4f734b0f7c56e94866057a789f # Parent 7f3515800bd8e693de8383b52adf09254b4fc1e5 hg: restore make_ui reading of .hg/hgrc This regressed with f83326e2e66c, released in 0.6.0 . Fix problem reported by Felipe Cardoso Resende. diff --git a/kallithea/lib/utils.py b/kallithea/lib/utils.py --- a/kallithea/lib/utils.py +++ b/kallithea/lib/utils.py @@ -349,7 +349,7 @@ def make_ui(repo_path=None): if repo_path is not None: # Note: MercurialRepository / mercurial.localrepo.instance will do this too, so it will always be possible to override db settings or what is hardcoded above - baseui.readconfig(repo_path) + baseui.readconfig(safe_bytes(os.path.join(repo_path, '.hg', 'hgrc'))) assert baseui.plain() # set by hgcompat.monkey_do (invoked from import of vcs.backends.hg) to minimize potential impact of loading config files return baseui