Bugzilla – Attachment 89610 Details for
Bug 21662
Missing developers from history
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
fix bug in get_developers.pl
get_developers.pl (text/plain), 1.31 KB, created by
Jonathan Druart
on 2019-05-11 16:14:56 UTC
(
hide
)
Description:
fix bug in get_developers.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-05-11 16:14:56 UTC
Size:
1.31 KB
patch
obsolete
>#!/usr/bin/perl > >use Modern::Perl; > >use utf8::all; >use Time::Moment; >use Lingua::EN::Numbers::Ordinate; >use IO::Prompt::Tiny qw/prompt/; >use List::MoreUtils qw(uniq); >use YAML qw(LoadFile DumpFile); > ># Get all commits from git >my @commits = > `git -c i18n.logOutputEncoding=UTF-8 log --pretty=format:"%H, %ct, %an, %ae"`; >unless (@commits) { > say 'Hum... no commits?'; > exit 1; >} > >my @history; > ># Convert commit lines to hashref keyed on epoch date ># and record name -> email and email -> name maps >my $seen_name = {}; >my $seen_email = {}; >my $commitref = {}; >#say scalar @commits; >for my $commit (@commits) { > chomp $commit; > my ( $commit_id, $commit_date, $author_name, $author_email ) = split( /,/, $commit ); > my $name = lc( $author_name ); > $name =~ s/([^\s\w]*)(\S+)/$1\u\L$2/g; > $name =~ s/^\s+|\s+$//g; > my $email = lc( $author_email ); > $email =~ s/^\s+|\s+$//g; > $seen_name->{$name}->{$email} = 1; > $seen_email->{$email}->{$name} = 1; > $commitref->{ $commit_id } = { name => $name, email => $email, date => $commit_date }; >} > >my $contributors; >my $total; >for my $commit ( sort { $a->{date} <=> $b->{date} } ( values %{$commitref} ) ) { > my $commit_name = $commit->{name}; > > my $author = $commit_name; > $contributors->{$author}->{commits}++; > $total++; >} >say "total=$total"; > >exit 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 21662
:
81466
|
81467
|
81468
|
81469
|
82367
|
82368
|
82369
|
87759
|
87760
|
87761
|
87762
|
88098
|
88099
|
88100
|
88101
|
88479
|
88480
|
88481
|
88482
|
88485
|
88486
|
88869
|
88870
|
88871
|
88872
|
88873
|
88898
|
88899
|
88900
|
88901
|
88902
|
89180
|
89181
|
89182
|
89183
|
89184
|
89199
|
89200
|
89201
|
89202
|
89203
|
89204
|
89205
|
89208
|
89209
|
89210
|
89211
|
89212
|
89213
|
89214
|
89215
|
89284
|
89285
|
89286
|
89287
|
89288
|
89289
|
89290
|
89291
|
89292
|
89293
|
89294
|
89302
|
89303
|
89610
|
89898
|
89908