aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-09-01 14:24:27 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-09-01 14:24:27 +0800
commit9a526bd514ec66279c3dbddb1f5443a818e8926f (patch)
treea6349fedc318b3fdd8825fd37bd38332dfc1f08c
parent2c3a8131aae3bf1d336a4bd3d23888c3a8c4ba92 (diff)
downloadgsoc2013-empathy-9a526bd514ec66279c3dbddb1f5443a818e8926f.tar
gsoc2013-empathy-9a526bd514ec66279c3dbddb1f5443a818e8926f.tar.gz
gsoc2013-empathy-9a526bd514ec66279c3dbddb1f5443a818e8926f.tar.bz2
gsoc2013-empathy-9a526bd514ec66279c3dbddb1f5443a818e8926f.tar.lz
gsoc2013-empathy-9a526bd514ec66279c3dbddb1f5443a818e8926f.tar.xz
gsoc2013-empathy-9a526bd514ec66279c3dbddb1f5443a818e8926f.tar.zst
gsoc2013-empathy-9a526bd514ec66279c3dbddb1f5443a818e8926f.zip
Support "blah (closes: #1234)" message format.EMPATHY_2_23_91
svn path=/trunk/; revision=1411
-rwxr-xr-xrelease.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/release.py b/release.py
index ec6b0f9b8..a31dc864a 100755
--- a/release.py
+++ b/release.py
@@ -137,19 +137,28 @@ class Project:
def parse_commit(self, ref, author, date, message):
p1 = message.rfind('(')
p2 = message.rfind (')')
- if len(message) - p2 <= 2:
+ if len(message) - p2 <= 2 and \
+ message[p1+1:].find('#') == -1:
author = message[p1+1:p2]
message = message[:p1]
+ print message
+ print message.find('#')
+
msg = message.lower()
- if msg.find('translation') != -1 and\
- msg.find('updated') != -1:
+ if msg.find('translation') != -1 and \
+ (msg.find('added') != -1 or \
+ msg.find('updated') != -1):
self.translations += ' - ' + message + ' (' + author + ').\n'
elif message.find('#') != -1:
+ print message
p1 = message.find('#')
while p1 != -1:
bug = Bug()
- p2 = message.find(' ', p1)
+ p2 = p1 + 1
+ while message[p2].isdigit():
+ p2 = p2 + 1
+ print message[p1+1:p2]
bug.number = message[p1+1:p2]
bug.author = author
self.bug_commits.append(bug)