[PATCH 3 of 3] releasenotes: update debugging function

Rishabh Madan rishabhmadan96 at gmail.com
Tue Jun 13 16:41:09 EDT 2017


I have also combined this patch with the v2 for the first one, since this
one is required for all the tests to pass at once.
ᐧ

On Sun, Jun 11, 2017 at 9:35 PM, Rishabh Madan <rishabhmadan96 at gmail.com>
wrote:

> # HG changeset patch
> # User Rishabh Madan <rishabhmadan96 at 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.
>
> 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))
>



-- 
Rishabh Madan
Second Year Undergraduate student
Indian Institute of Technology, Kharagpur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170613/ba0e727b/attachment.html>


More information about the Mercurial-devel mailing list