From 67731dd4360edfb1b32642ef1560e5bd124fc01e Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Fri, 27 Nov 2015 15:23:12 -0500 Subject: [PATCH] two more patterns --- commitmessage.py | 5 +++++ docs.py | 1 + 2 files changed, 6 insertions(+) diff --git a/commitmessage.py b/commitmessage.py index f3bcddf..26a8717 100644 --- a/commitmessage.py +++ b/commitmessage.py @@ -88,6 +88,11 @@ def process_NEWS(file): success = 1 if news[i] == tarball.name + "-" + tarball.version + ":" and news[i - 1] == "": start = i + if news[i] == "- " + config.old_version + ":" and news[i - 1] == "": + stop = i - 1 + success = 1 + if news[i] == "- " + tarball.version + ":" and news[i - 1] == "": + start = i if news[i].find(config.old_version) >= 0 and news[i].find("*** Changes in ") >= 0 and news[i - 1] == "": stop = i - 1 success = 1 diff --git a/docs.py b/docs.py index ca1c9fd..2bacb8d 100644 --- a/docs.py +++ b/docs.py @@ -23,6 +23,7 @@ import sys transforms = { 'changelog': 'ChangeLog', + 'changelog.txt': 'ChangeLog', 'changes.rst': 'ChangeLog', 'changes.txt': 'ChangeLog', 'news': 'NEWS'