equal
deleted
inserted
replaced
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 |