Skip to contentSkip to conversation

BK-kernel-tools/shortlog update

DISCUSSION Matthias Andree 1 participant 1 message Mar 30, 2004

lore
Share & tools
lore
#0 lore raw

Hello Linus,

THIS IS AN IMPORTANT UPDATE FOR SHORTLOG!

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:

[email protected], 2004-03-30 03:16:56+02:00, [email protected]
Parse From: Firstname Lastname <[email protected]> to credit (or blame) the right person.

Add Alain Knaff's address.

Matthias

------------------------------------------------------------------------

##### DIFFSTAT #####

# shortlog |   58 +++++++++++++++++++++++++++----------------
# 1 files changed, 37 insertions(+), 21 deletions(-)

##### GNUPATCH #####
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet

#   2004/03/30 03:16:56+02:00 [email protected] 
#   Parse From: Firstname Lastname <[email protected]> to credit (or
#   blame) the right person.
#   Add Alain Knaff's address.
# 
# shortlog
#   2004/03/30 03:16:56+02:00 [email protected] +37 -21
#   Parse From: Firstname Lastname <[email protected]> to credit (or
#   blame) the right person.
#   Add Alain Knaff's address.
# 
diff -Nru a/shortlog b/shortlog
--- a/shortlog	Tue Mar 30 03:17:59 2004
+++ b/shortlog	Tue Mar 30 03:17:59 2004
@@ -8,7 +8,7 @@
 #			Tomas Szepe <[email protected]>
 #			Vitezslav Samel <[email protected]>
 #
-# $Id: lk-changelog.pl,v 0.254 2004/03/27 13:47:02 vita Exp $
+# $Id: lk-changelog.pl,v 0.255 2004/03/30 01:16:17 emma Exp $
 # ----------------------------------------------------------------------
 # Distribution of this script is permitted under the terms of the
 # GNU General Public License (GNU GPL) v2.
@@ -192,6 +192,7 @@
 'akpm:reardensteel.com' => 'Andrew Morton',
 'akpm:zip.com.au' => 'Andrew Morton',
 'akropel1:rochester.rr.com' => 'Adam Kropelin', # lbdb
+'alain:linux.lu' => 'Alain Knaff',
 'alan:lxorguk.ukuu.org.uk' => 'Alan Cox',
 'alan:redhat.com' => 'Alan Cox',
 'albert.cahalan:ccur.com' => 'Albert Cahalan',
@@ -2061,6 +2062,34 @@
   return ();
 }

+sub treat_addr_name(\$\$) {

+    my ($address, $name) = @_;
+    my $havename = $$name ne $$address;
+    my $author;

+
+ if ($opt{'obfuscate'}) {
+ $$address = obfuscate $$address;
+ }
+
+ if ($havename) {
+ if ($opt{'abbreviate-names'}) {
+ $$name = abbreviate_name($$name);
+ }
+ if ($opt{'omitaddresses'}) {
+ $author = $$name;
+ } else {
+ $author = $$name . ' <' . $$address . '>';
+ }
+ } else { # $havename
+ # must obfuscate name since it contains an address still
+ if ($opt{obfuscate}) {
+ $$name = obfuscate $$name;
+ }
+ $author = '<' . $$address . '>';
+ }
+ return $author;
+}
+
# Read a file and parse it into the %log hash.
sub parse_file(\%$$ ) {
# arguments: %log hash
@@ -2113,28 +2142,15 @@

       $address = lc($1);
       $address =~ s/\[[^]]+\]$//;
       $name = rmap_address($address);

- my $havename = $name ne $address;
- if ($opt{'obfuscate'}) {
- $address = obfuscate $address;
- }
- if ($havename) {
- if ($opt{'abbreviate-names'}) {
- $name = abbreviate_name($name);
- }
- if ($opt{'omitaddresses'}) {
- $author = $name;
- } else {
- $author = $name . ' <' . $address . '>';
- }
- } else { # $havename
- # must obfuscate name since it contains an address still
- if ($opt{obfuscate}) {
- $name = obfuscate $name;
- }
- $author = '<' . $address . '>';

-      }
+      $author = treat_addr_name($address, $name);
+      print STDERR "AUTHOR $author\n" if $debug;
       $first = 1;
       $firstpar = 1;
+    } elsif (/^\s+From:\s*(.*)\s+\<(.*)\>\s*$/) {
+      $name = $1;
+      $address = lc $2;
+      $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

##### BKPATCH #####
This BitKeeper patch contains the following changesets:
1.145
## Wrapped with gzip_uu ##

M'XL( ,?*:$ ]U676_:2!1]9G[%5;'DI EFQI]@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