/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: 2018-12-11 03:31:06 UTC
  • mfrom: (7211.8.2 fix-git-stats)
  • Revision ID: breezy.the.bot@gmail.com-20181211033106-twa1llsanwbwog94
Fix 'bzr stats' in git repositories.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
from __future__ import absolute_import
19
19
 
 
20
import operator
 
21
 
20
22
from ... import (
21
23
    branch,
22
24
    commands,
59
61
            info[2][username] = info[2].setdefault(username, 0) + 1
60
62
    res = [(len(revs), revs, emails, fnames)
61
63
           for revs, emails, fnames in committer_to_info.values()]
62
 
    res.sort(reverse=True)
 
64
    res.sort(reverse=True, key=operator.itemgetter(0))
63
65
    return res
64
66
 
65
67