[Commits] [SCM] claws branch, master, updated. 3.9.3-92-ga4a389b

colin at claws-mail.org colin at claws-mail.org
Thu Apr 24 22:31:02 CEST 2014


The branch master of project "claws" (Claws Mail) has been updated
       via  a4a389b50039287ebaf84f2345711bca27aacad7 (commit)
      from  90d88e987e3c946d233e904dc543b110960d598e (commit)


- Log -----------------------------------------------------------------
commit a4a389b50039287ebaf84f2345711bca27aacad7
Author: Colin Leroy <colin at colino.net>
Date:   Thu Apr 24 22:30:42 2014 +0200

    Fix ChangeLog generation when only one file changes

diff --git a/tools/gitlog2changelog.py b/tools/gitlog2changelog.py
index c5dc10f..82fc449 100755
--- a/tools/gitlog2changelog.py
+++ b/tools/gitlog2changelog.py
@@ -60,12 +60,14 @@ for line in fin:
         author = re.split('<', authorList[1], 1)[0]
         author = "[" + author[0:len(author)-1]+"]"
         authorFound = True
+	continue
     # Match the date line
     elif re.match('^Date:', line) >= 0:
         dateList = re.split(':   ', line, 1)
         date = dateList[1]
         date = date[0:len(date)-1]
         dateFound = True
+	continue
     # The svn-id lines are ignored
     elif re.match('    git-svn-id:', line) >= 0:
         continue
@@ -88,7 +90,7 @@ for line in fin:
             else:
                 message = message + " " + line.strip()
     # If this line is hit all of the files have been stored for this commit
-    elif re.search('files changed', line) >= 0:
+    elif re.search('file(s)? changed', line) >= 0:
         filesFound = True
         continue
     # Collect the files for this commit. FIXME: Still need to add +/- to files

-----------------------------------------------------------------------

Summary of changes:
 tools/gitlog2changelog.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list