changeset 33784:589fda7895da

releasenotes: minor bug fix for index error while serializing Differential Revision: https://phab.mercurial-scm.org/D356
author Rishabh Madan <rishabhmadan96@gmail.com>
date Sat, 12 Aug 2017 09:21:42 +0530
parents db6b666ce1e6
children f7d6978a4da9
files hgext/releasenotes.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/releasenotes.py	Thu Aug 03 15:31:54 2017 +0200
+++ b/hgext/releasenotes.py	Sat Aug 12 09:21:42 2017 +0530
@@ -426,7 +426,7 @@
 
             lines.append('')
 
-    if lines[-1]:
+    if lines and lines[-1]:
         lines.append('')
 
     return '\n'.join(lines)