D1947: configitems: traverse sections deterministically
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Mon Jan 29 21:30:43 UTC 2018
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Otherwise output can be non-deterministic if there are warnings
for multiple sections.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D1947
AFFECTED FILES
mercurial/configitems.py
CHANGE DETAILS
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)
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list