mercurial/scmposix.py
changeset 51607 a4b3b8dee0a8
parent 51285 9d3721552b6c
child 51863 f4733654f144
equal deleted inserted replaced
51606:55e7784eb3bc 51607:a4b3b8dee0a8
    58 
    58 
    59 
    59 
    60 def userrcpath() -> List[bytes]:
    60 def userrcpath() -> List[bytes]:
    61     if pycompat.sysplatform == b'plan9':
    61     if pycompat.sysplatform == b'plan9':
    62         return [encoding.environ[b'home'] + b'/lib/hgrc']
    62         return [encoding.environ[b'home'] + b'/lib/hgrc']
    63     elif pycompat.isdarwin:
       
    64         return [os.path.expanduser(b'~/.hgrc')]
       
    65     else:
    63     else:
    66         confighome = encoding.environ.get(b'XDG_CONFIG_HOME')
    64         confighome = encoding.environ.get(b'XDG_CONFIG_HOME')
    67         if confighome is None or not os.path.isabs(confighome):
    65         if confighome is None or not os.path.isabs(confighome):
    68             confighome = os.path.expanduser(b'~/.config')
    66             confighome = os.path.expanduser(b'~/.config')
    69 
    67