empathy r1411 - trunk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1411 - trunk
- Date: Mon, 1 Sep 2008 06:24:27 +0000 (UTC)
Author: xclaesse
Date: Mon Sep 1 06:24:27 2008
New Revision: 1411
URL: http://svn.gnome.org/viewvc/empathy?rev=1411&view=rev
Log:
Support "blah (closes: #1234)" message format.
Modified:
trunk/release.py
Modified: trunk/release.py
==============================================================================
--- trunk/release.py (original)
+++ trunk/release.py Mon Sep 1 06:24:27 2008
@@ -137,19 +137,28 @@
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]