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

rishabhmadan96 (Rishabh Madan) phabricator at mercurial-scm.org
Sun Aug 13 04:01:05 EDT 2017


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

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)



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


More information about the Mercurial-devel mailing list