changeset 46423:271dfcb98544

config: use the right API to access subrepository section Preventing direct access to the underlying dict will help a coming refactoring of `config`. Differential Revision: https://phab.mercurial-scm.org/D9921
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 29 Jan 2021 14:03:01 +0100
parents 821775843caf
children 5272542196cc
files mercurial/subrepoutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/subrepoutil.py	Fri Jan 29 13:03:50 2021 +0100
+++ b/mercurial/subrepoutil.py	Fri Jan 29 14:03:01 2021 +0100
@@ -105,7 +105,7 @@
         return src
 
     state = {}
-    for path, src in p[b''].items():
+    for path, src in p.items(b''):
         kind = b'hg'
         if src.startswith(b'['):
             if b']' not in src: