# HG changeset patch # User Pierre-Yves David # Date 1611925381 -3600 # Node ID 271dfcb98544fd05cc7e85cc180dc0cd9e7790cb # Parent 821775843caf16d957a2ef2b350e7f726b6742c1 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 diff -r 821775843caf -r 271dfcb98544 mercurial/subrepoutil.py --- 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: