diff --git a/mercurial/scmposix.py b/mercurial/scmposix.py --- a/mercurial/scmposix.py +++ b/mercurial/scmposix.py @@ -54,8 +54,6 @@ def userrcpath(): if pycompat.sysplatform == b'plan9': return [encoding.environ[b'home'] + b'/lib/hgrc'] - elif pycompat.isdarwin: - return [os.path.expanduser(b'~/.hgrc')] else: confighome = encoding.environ.get(b'XDG_CONFIG_HOME') if confighome is None or not os.path.isabs(confighome): diff --git a/tests/test-xdg.t b/tests/test-xdg.t --- a/tests/test-xdg.t +++ b/tests/test-xdg.t @@ -1,4 +1,4 @@ -#if no-windows no-osx +#if no-windows $ mkdir -p xdgconf/hg $ echo '[ui]' > xdgconf/hg/hgrc