Patchwork D356: releasenotes: minor bug fix for index error while serializing

login
register
mail settings
Submitter phabricator
Date Aug. 13, 2017, 8:01 a.m.
Message ID <38dd978c945472c34cacd8ba9ab40a14@localhost.localdomain>
Download mbox | patch
Permalink /patch/22943/
State Not Applicable
Headers show

Comments

phabricator - Aug. 13, 2017, 8:01 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG589fda7895da: releasenotes: minor bug fix for index error while serializing (authored by rishabhmadan96).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D356?vs=817&id=843

REVISION DETAIL
  https://phab.mercurial-scm.org/D356

AFFECTED FILES
  hgext/releasenotes.py

CHANGE DETAILS




To: rishabhmadan96, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/releasenotes.py b/hgext/releasenotes.py
--- a/hgext/releasenotes.py
+++ b/hgext/releasenotes.py
@@ -426,7 +426,7 @@ 
 
             lines.append('')
 
-    if lines[-1]:
+    if lines and lines[-1]:
         lines.append('')
 
     return '\n'.join(lines)