Merge lp:~brian-murray/ubuntu-archive-tools/team-in-mismatch-svg into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Merged at revision: 942
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/team-in-mismatch-svg
Merge into: lp:ubuntu-archive-tools
Diff against target: 21 lines (+3/-1)
1 file modified
component-mismatches (+3/-1)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/team-in-mismatch-svg
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+252777@code.launchpad.net

Description of the change

Use the tooltip feature of dot to display tooltips for the package subscribers in the svg file generated.

To post a comment you must log in.
943. By Brian Murray

fix accidental removal of blank line

Revision history for this message
Brian Murray (brian-murray) wrote :

When working on this I noticed the function get_teams() which seems unused, I wonder if it is worth keeping.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'component-mismatches'
2--- component-mismatches 2014-12-17 14:02:19 +0000
3+++ component-mismatches 2015-03-12 16:50:27 +0000
4@@ -327,7 +327,8 @@
5 return name
6 written_nodes.add(name)
7
8- fd.write(' "%s" [label="%s" style="filled"' % (name, name))
9+ fd.write(' "%s" [label="%s" style="filled" tooltip="%s"' %
10+ (name, name, ', '.join(package_team_mapping[name])))
11
12 mirs = mir_bugs.get(name, [])
13 approved_mirs = [
14@@ -503,6 +504,7 @@
15 results = {}
16 results["time"] = int(options.time * 1000)
17
18+ global package_team_mapping
19 package_team_mapping = defaultdict(set)
20 if os.path.exists(options.package_team_mapping):
21 with open(options.package_team_mapping) as ptm_file:

Subscribers

People subscribed via source and target branches