From: Matthias Andree <matthias.andree@gmx.de>
To: torvalds@osdl.org, marcelo.tosatti@cyclades.com.br
Cc: linux-kernel@vger.kernel.org, matthias.andree@gmx.de, samel@mail.cz
Subject: BK-kernel-tools/shortlog update
Date: Tue, 30 Mar 2004 16:05:34 +0200 (CEST) [thread overview]
Message-ID: <20040330140534.02804A9330@merlin.emma.line.org> (raw)
Hello Linus,
you can either use "bk receive" to patch with this mail,
or you can
Pull from: bk://krusty.dt.e-technik.uni-dortmund.de/BK-kernel-tools
or in cases of dire need, you can apply the patch below.
BK: Parent repository is http://bktools.bkbits.net/bktools
Patch description:
ChangeSet@1.147, 2004-03-30 16:04:52+02:00, matthias.andree@gmx.de
Bugfix: do not abbreviate last name in the presence of ()-style comments
Bugfix: Ignore ()-style comments in by-surname sort.
Bugfix: Emit unabbreviated names in could-be-added list.
Cleanup: Fix warning when abbreviate_name is called with empty input.
ChangeSet@1.146, 2004-03-30 15:45:31+02:00, matthias.andree@gmx.de
Feature: harvest unknown addresses from From: lines with the log and
print them at the end. Suggested by vita.
Feature: if the name is of the form Last, First (Comment), it will be
normalized to First Last (Comment); the Comment is optional.
Feature: Strip double quote marks from addresses in From: lines.
Commited patch made by vita.
(1.146 is missing from the patch below)
Matthias
------------------------------------------------------------------------
##### DIFFSTAT #####
# shortlog | 32 +++++++++++++++++++++-----------
# 1 files changed, 21 insertions(+), 11 deletions(-)
##### GNUPATCH #####
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/03/30 16:04:52+02:00 matthias.andree@gmx.de
# Bugfix: do not abbreviate last name in the presence of ()-style comments
# Bugfix: Ignore ()-style comments in by-surname sort.
# Bugfix: Emit unabbreviated names in could-be-added list.
# Cleanup: Fix warning when abbreviate_name is called with empty input.
#
# shortlog
# 2004/03/30 16:04:52+02:00 matthias.andree@gmx.de +21 -11
# Bugfix: do not abbreviate last name in the presence of ()-style comments
# Bugfix: Ignore ()-style comments in by-surname sort.
# Bugfix: Emit unabbreviated names in could-be-added list.
# Cleanup: Fix warning when abbreviate_name is called with empty input.
#
diff -Nru a/shortlog b/shortlog
--- a/shortlog Tue Mar 30 16:05:34 2004
+++ b/shortlog Tue Mar 30 16:05:34 2004
@@ -8,7 +8,7 @@
# Tomas Szepe <szepe@pinerecords.com>
# Vitezslav Samel <samel@mail.cz>
#
-# $Id: lk-changelog.pl,v 0.256 2004/03/30 13:45:30 emma Exp $
+# $Id: lk-changelog.pl,v 0.257 2004/03/30 14:04:33 emma Exp $
# ----------------------------------------------------------------------
# Distribution of this script is permitted under the terms of the
# GNU General Public License (GNU GPL) v2.
@@ -1728,8 +1728,8 @@
sub caseicmpbysurname {
my $alast = "";
my $blast = "";
- if ($a =~ m/(\S+)\s*(\s\<|$)/) { $alast = $1; }
- if ($b =~ m/(\S+)\s*(\s\<|$)/) { $blast = $1; }
+ if ($a =~ m/(\S+)\s*(\(.*\))?(\s\<|$)/) { $alast = $1; }
+ if ($b =~ m/(\S+)\s*(\(.*\))?(\s\<|$)/) { $blast = $1; }
return uc($alast . $a) cmp uc($blast . $b);
}
@@ -1981,13 +1981,16 @@
# Roman numerals form the last component, leave that and the previous
# component alone.
sub abbreviate_name($ ) {
+ return () unless (@_ and $_[0]);
my @a = split /\s+/, $_[0];
- # treat Roman numerals as last part of name
- my $off = 0;
- $off = 1 if ($a[$#a] =~ /^[IVXLCMD]+$/);
+ # dito for comments
- for (my $i = 0; $i < $#a - $off; $i++) {
+ for (my $i = 0; $i < $#a; $i++) {
+ # treat Roman numerals as last part of name
+ last if ($a[$i] =~ /^[IVXLCMD]+$/);
+ # do not abbreviate comments
+ last if ($a[$i+1] =~ /^\(/);
$a[$i] =~ s/^(.).*/$1./;
}
return join(" ", @a);
@@ -2081,6 +2084,13 @@
$$name = "$2 $1";
if (defined $3) { $$name .= " " . $3; }
}
+ if ($$name =~ /([A-Z]+)\s+([^(\s]*)\s*(\(.*\))?/) {
+ my ($u, $f) = ($2, $1);
+ my ($ul) = lc $2;
+ $ul =~ s/^.//;
+ $$name = sprintf "%-.1s%s %s", $u, $ul, $f;
+ if (defined $3) { $$name .= " " . $3; }
+ }
if ($opt{'abbreviate-names'}) {
$$name = abbreviate_name($$name);
}
@@ -2158,13 +2168,13 @@
} elsif (/^\s+From:\s*"?([^"]*)"?\s+\<(.*)\>\s*$/) {
$name = $1;
$address = lc $2;
- $author = treat_addr_name($address, $name);
- print STDERR " FROM $author\n" if $debug;
if (rmap_address($address, 0) eq $address and $name =~ /\s+/) {
# not found, but only add if two words or more in name.
$address_found_in_from{$address} = sprintf "'%s' => '%s',",
obfuscate $address, $name;
}
+ $author = treat_addr_name($address, $name);
+ print STDERR " FROM $author\n" if $debug;
} elsif ($first) {
# we have a "first" line after an address, take it,
# strip common redundant tags
@@ -2397,7 +2407,7 @@
my $havebanner = 0;
foreach (sort caseicmp keys %address_found_in_from) {
if ($address_unknown{$_}) {
- print STDERR "Notice: these address mappings should be added:\n" unless $havebanner++;
+ print STDERR "Notice: these address mappings should be added after clean-up:\n" unless $havebanner++;
print STDERR $address_found_in_from{$_}, "\n" or write_error();
delete $address_unknown{$_};
delete $address_found_in_from{$_};
@@ -2405,7 +2415,7 @@
}
}
if (scalar keys %address_found_in_from) {
- print STDERR "Info: these address mappings could be added:\n";
+ print STDERR "Info: these address mappings could be added after clean-up:\n";
foreach (sort caseicmp keys %address_found_in_from) {
print STDERR $address_found_in_from{$_}, "\n" or write_error();
delete $address_unknown{$_};
##### BKPATCH #####
This BitKeeper patch contains the following changesets:
1.147
## Wrapped with gzip_uu ##
M'XL( *Y^:4 ^U6:V_;-A3];/V*BT0!Y+B223W\2KVE>70SVJZ%LP[#XB2@
M)=H6(E&&2"4.YNZW[Y)RW@NV[O%MEF!*Y+WGW,<A[6WX+'DY:.1,J47*I,=$
M4G)N;</WA52#QCQ?>8E^'1<%OK9E)7G[DI>"9^V#=WB[]8NKBB*3%AI^8BI>
MP!4OY:!!O>!N1MTL^: Q/O[N\_LW8\L:#N%PP<2<GW %PZ&EBO**98G<7W(Q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UH"C2_6D4\[1HLX=HT6#2.K%.X4I#2=N< -6IHM
MAY7"1]0(LNGW3:4!3&1P\N/1\7B,#&_''S_<P4S$E@[)3OBTFJ.8_) 8F6S&
MQE/O'PJ5QGR@CR?)84.(Y^ARB2>!U'L8SPV8FB7,D,T41Q7J4\/%8T.S;71L
M+]@5GS(A>-EJU<2]#7&MXJ?,(S$K7N2-_XQV[_ZO6[S@\:6L\F$OHCR9^8GU
).Y9/+-(E"@
next reply other threads:[~2004-03-30 14:06 UTC|newest]
Thread overview: 124+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-30 14:05 Matthias Andree [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-03-14 9:49 BK-kernel-tools/shortlog update Matthias Andree
2005-03-11 10:21 Matthias Andree
2005-03-09 9:39 Matthias Andree
2005-03-07 13:50 Matthias Andree
2005-03-03 12:19 Matthias Andree
2005-02-23 14:43 Matthias Andree
2005-02-09 9:23 Matthias Andree
2005-02-07 12:45 Matthias Andree
2005-02-04 11:35 Matthias Andree
2005-01-21 14:30 Matthias Andree
2005-01-20 9:27 Matthias Andree
2005-01-20 12:51 ` Adrian Bunk
2005-01-20 13:13 ` Matthias Andree
2005-01-10 18:22 Matthias Andree
2005-01-08 1:38 Matthias Andree
2005-01-05 11:58 Matthias Andree
2005-01-05 12:07 ` Matthias Andree
2004-12-23 10:52 Matthias Andree
2004-12-20 9:53 Matthias Andree
2004-12-16 10:18 Matthias Andree
2004-11-12 10:10 Matthias Andree
2004-11-09 8:42 Matthias Andree
2004-11-09 10:06 ` Måns Rullgård
2004-10-21 22:38 Matthias Andree
2004-10-19 1:56 Matthias Andree
2004-10-19 1:43 Matthias Andree
2004-10-14 7:02 Matthias Andree
2004-10-06 10:48 Matthias Andree
2004-09-24 10:09 Matthias Andree
2004-08-25 16:10 Matthias Andree
2004-08-24 14:18 Matthias Andree
2004-08-23 10:43 Matthias Andree
2004-08-16 11:18 Matthias Andree
2004-08-10 12:24 Matthias Andree
2004-08-04 9:00 Matthias Andree
2004-07-16 13:51 Matthias Andree
2004-07-12 9:06 Matthias Andree
2004-07-12 9:21 ` Matthias Andree
2004-07-02 10:40 Matthias Andree
2004-06-07 11:36 Matthias Andree
2004-06-03 8:00 Matthias Andree
2004-05-14 20:08 Matthias Andree
2004-05-03 9:23 Matthias Andree
2004-04-26 8:40 Matthias Andree
2004-04-20 11:14 Matthias Andree
2004-04-15 16:10 Matthias Andree
2004-04-01 21:48 Matthias Andree
2004-03-30 1:17 Matthias Andree
2004-03-23 11:51 Matthias Andree
2004-03-15 17:12 Matthias Andree
2004-03-09 0:16 Matthias Andree
2004-03-04 17:09 Matthias Andree
2004-03-04 17:09 Matthias Andree
2004-01-27 14:46 Matthias Andree
2004-01-19 17:01 Matthias Andree
2004-01-16 14:41 Matthias Andree
2004-01-07 11:29 Matthias Andree
2003-12-30 2:16 Matthias Andree
2003-12-30 2:16 Matthias Andree
2003-12-22 1:18 Matthias Andree
2003-12-21 3:19 Matthias Andree
2003-12-20 23:36 Matthias Andree
2003-12-20 23:36 Matthias Andree
2003-12-20 23:36 Matthias Andree
2003-12-20 23:39 ` Matthias Andree
2003-12-06 16:41 Matthias Andree
2003-11-27 11:03 Matthias Andree
2003-11-25 3:21 Matthias Andree
2003-11-22 15:05 Matthias Andree
2003-11-19 16:11 Matthias Andree
2003-10-27 12:09 Matthias Andree
2003-10-16 14:26 Matthias Andree
2003-10-08 21:59 Matthias Andree
2003-09-22 14:54 Matthias Andree
2003-09-11 9:18 Matthias Andree
2003-09-04 20:57 Matthias Andree
2003-09-03 23:33 Matthias Andree
2003-09-04 16:05 ` Dave Jones
2003-09-04 16:09 ` Matthias Andree
2003-09-04 16:17 ` Dave Jones
2003-09-04 16:33 ` Linus Torvalds
2003-09-04 17:42 ` Matthias Andree
2003-09-04 19:49 ` Greg KH
2003-09-04 20:54 ` Matthias Andree
2003-09-04 20:32 ` Dave Dillow
2003-08-31 14:16 Matthias Andree
2003-08-29 13:00 Matthias Andree
2003-08-28 16:29 Matthias Andree
2003-08-24 11:02 Matthias Andree
2003-08-08 22:51 Matthias Andree
2003-07-30 8:38 Matthias Andree
2003-07-21 9:30 John Bradford
2003-07-21 9:17 Matthias Andree
2003-07-21 9:17 Matthias Andree
2003-07-15 13:20 Matthias Andree
2003-07-11 12:12 Matthias Andree
2003-07-06 21:44 Matthias Andree
2003-06-30 8:32 Matthias Andree
2003-06-24 11:00 Matthias Andree
2003-06-20 23:06 Matthias Andree
2003-06-17 14:57 Matthias Andree
2003-06-17 14:57 Matthias Andree
2003-06-17 14:54 Matthias Andree
2003-06-09 10:26 Matthias Andree
2003-06-09 10:24 Matthias Andree
2003-06-04 19:04 Matthias Andree
2003-05-29 11:26 Matthias Andree
2003-05-15 14:11 Matthias Andree
2003-04-28 23:08 Matthias Andree
2003-04-27 13:24 Matthias Andree
2003-04-13 10:50 Matthias Andree
2003-03-28 11:00 Matthias Andree
2003-03-26 21:21 Matthias Andree
2003-03-26 10:33 Matthias Andree
2003-03-26 10:30 Matthias Andree
2003-03-26 17:21 ` Linus Torvalds
2003-03-26 19:25 ` Olaf Dietsche
2003-03-26 20:10 ` Matthias Andree
2003-03-26 21:15 ` Jeff Garzik
2003-03-26 21:33 ` Jauder Ho
2003-03-27 0:46 ` jw schultz
2003-03-26 21:08 ` Matti Aarnio
2003-03-26 21:14 ` Matthias Andree
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040330140534.02804A9330@merlin.emma.line.org \
--to=matthias.andree@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com.br \
--cc=samel@mail.cz \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).