diff -r 994b0b1c77d6 -r 6f173560c7f4 mercurial/changelog.py --- a/mercurial/changelog.py Sat Apr 08 11:02:37 2017 +0530 +++ b/mercurial/changelog.py Fri May 05 01:26:13 2017 +0530 @@ -190,7 +190,7 @@ # The list of files may be empty. Which means nl3 is the first of the # double newline that precedes the description. - if text[nl3 + 1] == '\n': + if text[nl3 + 1:nl3 + 2] == '\n': doublenl = nl3 else: doublenl = text.index('\n\n', nl3 + 1)