--- a/mercurial/scmposix.py Sun Nov 08 20:12:32 2020 +0100
+++ b/mercurial/scmposix.py Tue Nov 03 09:56:02 2020 -0800
@@ -27,7 +27,7 @@
rcs.extend(
[
os.path.join(rcdir, f)
- for f, kind in util.listdir(rcdir)
+ for f, kind in sorted(util.listdir(rcdir))
if f.endswith(b".rc")
]
)