Mercurial > hg
comparison mercurial/scmposix.py @ 45824:9ac96b9fa76e
config: read system hgrc in lexicographical order
This is similar to edbcf5b239f9 (config: read configs from directories
in lexicographical order, 2019-04-03). Apparently I forgot to sort the
system hgrc files there. That's fixed by this patch.
Differential Revision: https://phab.mercurial-scm.org/D9269
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 03 Nov 2020 09:56:02 -0800 |
parents | 9f70512ae2cf |
children | 6000f5b25c9b |
comparison
equal
deleted
inserted
replaced
45823:793976f9029c | 45824:9ac96b9fa76e |
---|---|
25 rcdir = os.path.join(path, b'hgrc.d') | 25 rcdir = os.path.join(path, b'hgrc.d') |
26 try: | 26 try: |
27 rcs.extend( | 27 rcs.extend( |
28 [ | 28 [ |
29 os.path.join(rcdir, f) | 29 os.path.join(rcdir, f) |
30 for f, kind in util.listdir(rcdir) | 30 for f, kind in sorted(util.listdir(rcdir)) |
31 if f.endswith(b".rc") | 31 if f.endswith(b".rc") |
32 ] | 32 ] |
33 ) | 33 ) |
34 except OSError: | 34 except OSError: |
35 pass | 35 pass |