changeset 46639:88bd085cf2f8

releasenotes: use the right API to access the 'sections' Preventing direct access to the underlying dict fix a breakage introduced by the refactoring in d3df397e7a59. This changeset is similar to 271dfcb98544, 5272542196cc and f7621fa14b84. The breackage of `releasenotes.py` stayed under my radar as the CI did not have fuzzywuzzy installed. (Something that is about to be fixed). Differential Revision: https://phab.mercurial-scm.org/D10121
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 06 Mar 2021 06:32:25 +0100
parents b4c2a2af25e2
children e571fec5b606
files hgext/releasenotes.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/releasenotes.py	Wed Mar 03 12:37:13 2021 +0100
+++ b/hgext/releasenotes.py	Sat Mar 06 06:32:25 2021 +0100
@@ -280,7 +280,7 @@
 
     if b'.hgreleasenotes' in ctx:
         read(b'.hgreleasenotes')
-    return p[b'sections']
+    return p.items(b'sections')
 
 
 def checkadmonitions(ui, repo, directives, revs):