contrib/packaging/debian/cacerts.rc
author Matt Harbison <matt_harbison@yahoo.com>
Wed, 09 Dec 2020 18:21:16 -0500
changeset 46093 224af78021de
parent 38009 e51c91c14a07
permissions -rw-r--r--
windows: continue looking at `%HOME%` for user config files with py3.8+ The `%HOME%` variable is explicitly called out in `hg help config` as a location that is consulted when reading user files, but python stopped looking at it when expanding '~' in py3.8+.[1] Restore that old functionality by copying in the old implementation (and simplifying it to just use bytes). It could be simplfied further, since only '~' is passed, but I'm not sure yet if we need to make this a generic utility function on Windows. There are other uses of `os.path.expanduser()`, but this is the only case I know of that documents `%HOME%` usage. (The reason for removing it was that it typically isn't set, but it actually is set in MSYS and PowerShell, and `%HOME%` and `%USERPROFILE%` are different in MSYS. I could be convinced to just replace all uses with this as a general utility, so we don't have to think too hard about BC.) [1] https://bugs.python.org/issue36264 Differential Revision: https://phab.mercurial-scm.org/D9559
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26297
ccdc2b23fdb8 debian: configuration so that cacerts is properly loaded
Augie Fackler <augie@google.com>
parents:
diff changeset
     1
# This config file points Mercurial at the system-wide certificate
ccdc2b23fdb8 debian: configuration so that cacerts is properly loaded
Augie Fackler <augie@google.com>
parents:
diff changeset
     2
# store from the ca-certificates package.
ccdc2b23fdb8 debian: configuration so that cacerts is properly loaded
Augie Fackler <augie@google.com>
parents:
diff changeset
     3
ccdc2b23fdb8 debian: configuration so that cacerts is properly loaded
Augie Fackler <augie@google.com>
parents:
diff changeset
     4
[web]
ccdc2b23fdb8 debian: configuration so that cacerts is properly loaded
Augie Fackler <augie@google.com>
parents:
diff changeset
     5
cacerts = /etc/ssl/certs/ca-certificates.crt