mercurial/rcutil.py
changeset 42093 edbcf5b239f9
parent 34645 75979c8d4572
child 43075 57875cf423c9
--- a/mercurial/rcutil.py	Wed Apr 03 17:41:58 2019 -0700
+++ b/mercurial/rcutil.py	Wed Apr 03 16:03:41 2019 -0700
@@ -29,7 +29,8 @@
     p = util.expandpath(path)
     if os.path.isdir(p):
         join = os.path.join
-        return [join(p, f) for f, k in util.listdir(p) if f.endswith('.rc')]
+        return sorted(join(p, f) for f, k in util.listdir(p)
+                      if f.endswith('.rc'))
     return [p]
 
 def envrcitems(env=None):