Patchwork [3,of,3] releasenotes: update debugging function

login
register
mail settings
Submitter Rishabh Madan
Date June 11, 2017, 7:35 p.m.
Message ID <5a7fb92f1d5537a2e996.1497209708@bunty>
Download mbox | patch
Permalink /patch/21336/
State Superseded
Headers show

Comments

Rishabh Madan - June 11, 2017, 7:35 p.m.
# HG changeset patch
# User Rishabh Madan <rishabhmadan96@gmail.com>
# Date 1497209608 -7200
#      Sun Jun 11 21:33:28 2017 +0200
# Node ID 5a7fb92f1d5537a2e996edd49605b6cadb6a06b6
# Parent  190c01f93c7140932d20ecee6ff659181d197cfd
releasenotes: update debugging function

Some changes have been made to managing of parsed blocks from release notes. This
make changes to debugparsenotes to make it compatible with existing tests.

Patch

diff -r 190c01f93c71 -r 5a7fb92f1d55 hgext/releasenotes.py
--- a/hgext/releasenotes.py	Sun Jun 11 21:20:59 2017 +0200
+++ b/hgext/releasenotes.py	Sun Jun 11 21:33:28 2017 +0200
@@ -468,7 +468,8 @@ 
             for para in paragraphs:
                 ui.write('    paragraph: %s\n' % ' '.join(para))
 
+        if len(notes.nontitledforsection(section)) > 0:
+            ui.write('  bullet point:\n')
         for paragraphs in notes.nontitledforsection(section):
-            ui.write('  bullet point:\n')
             for para in paragraphs:
                 ui.write('    paragraph: %s\n' % ' '.join(para))