diff options
author | Jonathan Corbet <corbet@lwn.net> | 2013-12-30 16:02:21 -0700 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2013-12-30 16:02:21 -0700 |
commit | 7d2ad2fac50388643bd2904ae0515b65bae20074 (patch) | |
tree | c0bac79777e1566b71d1b314d956892395a20839 | |
parent | aa316f182d468d61267b28e3faf77876fcab93dc (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-x | firstlast | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |