[bzr-authors:MERGE] utf8 encode output, and other goodies
Marius Kruger
amanic at gmail.com
Thu Apr 5 07:53:52 BST 2007
hi,
I saw the authors plugin and remembered that just the other day
I did a kind of bzr log&grep hack to get this right.
So I got it, liked it, and added some stuff I wanted to see:
* Made documentation more complete.
* Added option to order by the number of commits.
* utf8 Encode e-mail addresses when outputting,
as they can break tools like less and more when outputting unicode.
* Add smart-names option
now I can do something like:
bzr.dev$ bzr authors --order-by-commits --smart-names |less -N
1 Martin Pool: 2285
2 John Arbash Meinel: 2171
3 Aaron Bentley: 1753
4 Robert Collins: 1481
5 Canonical.com Patch Queue Manager: 868
6 mbp at sourcefrog.net: 309
7 Andrew Bennetts: 219
8 Alexander Belchenko: 165
9 Olaf Conradi: 79
10 v.ladeuil+lp at free.fr: 76
11 Robey Pointer: 75
12 Jelmer Vernooij: 60
13 aaron.bentley at utoronto.ca: 58
...
which is pretty sweet.
we can probably make it a little smarter to handle cases like:
6:Aaron Bentley <aaron.bentley at utoronto.ca>: 828
15:aaron.bentley at utoronto.ca: 58
by keeping a cache of e-mail addresses for each author name,
and then on the second pass group all those,
but I think thats going a bit too far.
--
I code therefore I am.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20070405/08d1df6b/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: authors.patch
Type: application/octet-stream
Size: 5693 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070405/08d1df6b/attachment.obj
More information about the bazaar
mailing list