[empathy] Extract date of last tag instead of hardcoding it.
- From: Xavier Claessens <xclaesse src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Extract date of last tag instead of hardcoding it.
- Date: Mon, 18 May 2009 07:16:29 -0400 (EDT)
commit 518a613ee08adde8b1e9516d9e82e6baa72ec882
Author: Xavier Claessens <xclaesse gmail com>
Date: Mon May 18 13:15:38 2009 +0200
Extract date of last tag instead of hardcoding it.
---
release.py | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/release.py b/release.py
index 9671022..32bad1f 100755
--- a/release.py
+++ b/release.py
@@ -5,6 +5,7 @@ import re
import urllib
import csv
import datetime
+import time
from string import Template
from optparse import OptionParser
@@ -159,10 +160,18 @@ class Project:
self.translations += "Updated %s Translation (%s)\n" % (lang, authors)
def get_bugs(self):
+ commit_str = self.exec_cmd('git show %s' % (self.last_tag))
+ for line in commit_str.splitlines():
+ if line.startswith('Date:'):
+ time_str = line[5:line.rfind('+')].strip()
+ t = time.strptime(time_str)
+ last_tag_date = time.strftime('%Y-%m-%d', t)
+ break
+
query = 'http://bugzilla.gnome.org/buglist.cgi?' \
'ctype=csv&product=empathy&' \
'bug_status=RESOLVED,CLOSED,VERIFIED&resolution=FIXED&' \
- 'chfieldfrom=%s&chfieldto=Now' % ('2009-04-13')
+ 'chfieldfrom=%s&chfieldto=Now' % (last_tag_date)
f = urllib.urlopen(query)
s = f.read()
f.close()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]