summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2013-12-30 16:02:21 -0700
committerJonathan Corbet <corbet@lwn.net>2013-12-30 16:02:21 -0700
commit7d2ad2fac50388643bd2904ae0515b65bae20074 (patch)
treec0bac79777e1566b71d1b314d956892395a20839
parentaa316f182d468d61267b28e3faf77876fcab93dc (diff)
Respond properly to a missing commit
Looping forever until the disk fills is somewhat antisocial behavior; they taught me that somewhere in grad school, I'm sure...
-rwxr-xr-xfirstlast10
1 files changed, 9 insertions, 1 deletions
diff --git a/firstlast b/firstlast
index d07218c..6c8fc8a 100755
--- a/firstlast
+++ b/firstlast
@@ -79,8 +79,15 @@ def PrintFirstEmpls():
empls = FirstEmpls.keys()
empls.sort(cmpempls)
print '\nEmployers:'
- for e in empls[:20]:
+ for e in empls[:30]:
print '%5d: %s' % (FirstEmpls[e], e)
+ #
+ # We "know" that unknown/none are always the top two...
+ #
+ companies = 0
+ for e in empls[2:]:
+ companies += FirstEmpls[e]
+ print 'Companies: %d' % (companies)
#
# Version comparison stuff. Kernel-specific, obviously.
@@ -133,6 +140,7 @@ while patch:
v = VDB[patch.commit]
except KeyError:
print 'Funky commit', patch.commit
+ patch = gitlog.grabpatch(sys.stdin)
continue
#
# The first patch we see is the last they committed, since git