[jhbuild/release-team-commands] [goalreport] possibility to specify bugs & false positives by column number
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [jhbuild/release-team-commands] [goalreport] possibility to specify bugs & false positives by column number
- Date: Sat, 22 Aug 2009 18:20:38 +0000 (UTC)
commit 50db2849e848463394f4cdad2679ad06b48c1010
Author: Frédéric Péters <fpeters 0d be>
Date: Sat Aug 22 20:20:10 2009 +0200
[goalreport] possibility to specify bugs & false positives by column number
jhbuild/commands/goalreport.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/commands/goalreport.py b/jhbuild/commands/goalreport.py
index 569390a..f977f5c 100644
--- a/jhbuild/commands/goalreport.py
+++ b/jhbuild/commands/goalreport.py
@@ -589,6 +589,9 @@ class cmd_goalreport(Command):
# Sample bug file:
# evolution/LibGnomeCanvas 571742
#
+ # Alternatively, the $(checkname) can be replaced by a column number,
+ # like: evolution/col:2 543234
+ #
# also, if there is only a single check, the /$(checkname) part
# can be skipped.
self.bugs = {}
@@ -611,12 +614,15 @@ class cmd_goalreport(Command):
part, bugnumber = line.split()
if '/' in part:
module_name, check = part.split('/')
+ if check.startswith('col:'):
+ check = self.checks[int(check[4:])-1].__name__
elif len(self.checks) == 1:
module_name = part
check = self.checks[0].__name__
else:
continue
self.bugs[(module_name, check)] = bugnumber
+ print 'self.bugs:', self.bugs
self.bug_status = {}
@@ -660,6 +666,8 @@ class cmd_goalreport(Command):
if '/' in part:
module_name, check = part.split('/')
+ if check.startswith('col:'):
+ check = self.checks[int(check[4:])-1].__name__
elif len(self.checks) == 1:
module_name = part
check = self.checks[0].__name__
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]