]> granicus.if.org Git - docbook-dsssl/commitdiff
Allow for empty logs.
authorStefan Seefeld <stefan@seefeld.name>
Fri, 9 Dec 2016 18:01:03 +0000 (13:01 -0500)
committerStefan Seefeld <stefan@seefeld.name>
Fri, 9 Dec 2016 18:01:03 +0000 (13:01 -0500)
releasetools/changelog.py

index 230557e7bbccd18a643134ae75227473924a6242..845d825f0d75e898f2440239515af054d066076c 100644 (file)
@@ -36,6 +36,8 @@ entries = [dict(zip(GIT_COMMIT_FIELDS, entry)) for entry in entries]
 builder = ET.TreeBuilder()
 builder.start('log', {})
 for e in entries:
+    if not e['id']:
+        continue
     builder.start('logentry', {'revision':e['id']})
     builder.start('author', {})
     builder.data(e['author_name'])