Patchwork D1947: configitems: traverse sections deterministically

login
register
mail settings
Submitter phabricator
Date Jan. 30, 2018, 12:10 p.m.
Message ID <46037b2f1600bd5ef18a465890f6ea63@localhost.localdomain>
Download mbox | patch
Permalink /patch/27079/
State Not Applicable
Headers show

Comments

phabricator - Jan. 30, 2018, 12:10 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG178aacdc25db: configitems: traverse sections deterministically (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1947?vs=5016&id=5017

REVISION DETAIL
  https://phab.mercurial-scm.org/D1947

AFFECTED FILES
  mercurial/configitems.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, lothiraldan
Cc: mercurial-devel

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -17,7 +17,7 @@ 
 
 def loadconfigtable(ui, extname, configtable):
     """update config item known to the ui with the extension ones"""
-    for section, items in configtable.items():
+    for section, items in sorted(configtable.items()):
         knownitems = ui._knownconfig.setdefault(section, itemregister())
         knownkeys = set(knownitems)
         newkeys = set(items)