/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/stats/cmds.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-12-23 00:51:26 UTC
  • mfrom: (7414.3.2 fix-stats)
  • Revision ID: breezy.the.bot@gmail.com-20191223005126-z6thojgn8i8x00ht
Fix the credits command, and add some blackbox tests for the stats plugin.

Merged from https://code.launchpad.net/~jelmer/brz/fix-stats/+merge/376099

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
            info[2][username] = info[2].setdefault(username, 0) + 1
62
62
    res = [(len(revs), revs, emails, fnames)
63
63
           for revs, emails, fnames in committer_to_info.values()]
64
 
    res.sort(reverse=True, key=operator.itemgetter(0))
 
64
 
 
65
    def key_fn(item):
 
66
        return item[0], list(item[2].keys())
 
67
    res.sort(reverse=True, key=key_fn)
65
68
    return res
66
69
 
67
70