[Git][security-tracker-team/security-tracker][master] review-update-needed: also show, when verbose, how many packages are claimed per person
Antoine Beaupré
anarcat at debian.org
Tue Aug 28 16:38:27 BST 2018
Antoine Beaupré pushed to branch master at Debian Security Tracker / security-tracker
Commits:
74a32e5a by Antoine Beaupré at 2018-08-28T15:37:36Z
review-update-needed: also show, when verbose, how many packages are claimed per person
- - - - -
1 changed file:
- bin/review-update-needed
Changes:
=====================================
bin/review-update-needed
=====================================
@@ -1,6 +1,7 @@
#!/usr/bin/python3
import argparse
+import collections
from datetime import datetime
import os
import re
@@ -52,6 +53,7 @@ process = subprocess.Popen(["git", "blame", "--line-porcelain", "--",
context = {}
in_preamble = True
all_entries = []
+per_user = collections.defaultdict(list)
entry = None
for line in process.stdout:
line = line.decode('utf-8')
@@ -91,6 +93,7 @@ for line in process.stdout:
'author': context['author'],
'note': '',
}
+ per_user[entry['claimed-by']].append(entry['pkg'])
all_entries.append(entry)
retcode = process.wait()
@@ -120,3 +123,9 @@ for entry in all_entries:
print("Notes:\n{}".format(entry['note']))
else:
print("")
+
+if args.verbose:
+ # sort by number of claimed packages
+ items = sorted(per_user.items(), key=lambda x: len(x[1]))
+ for user, pkgs in items:
+ print("User: {}\nPackages: {}\nCount: {}\n".format(user, ", ".join(pkgs), len(pkgs)))
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/74a32e5a2b9a7261e37e004e6ab07a031e407625
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/74a32e5a2b9a7261e37e004e6ab07a031e407625
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20180828/eee6af4f/attachment-0001.html>
More information about the debian-security-tracker-commits
mailing list