/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: Jelmer Vernooij
  • Date: 2019-02-03 23:43:20 UTC
  • mfrom: (7267 work)
  • mto: This revision was merged to the branch mainline in revision 7268.
  • Revision ID: jelmer@jelmer.uk-20190203234320-zbquyl9973hbujnb
Merge trunk.

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
 
279
281
 
280
282
    encoding_type = 'replace'
281
283
 
 
284
    hidden = True
 
285
 
282
286
    def run(self, location='.'):
283
287
        try:
284
288
            wt = workingtree.WorkingTree.open_containing(location)[0]