All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, armbru@redhat.com
Subject: Re: [Qemu-devel] [PATCH 2/4] get_maintainer.pl: treat all M entries the same
Date: Wed, 22 Oct 2014 12:24:05 +0300	[thread overview]
Message-ID: <20141022092405.GA9425@redhat.com> (raw)
In-Reply-To: <1413968902-24094-3-git-send-email-pbonzini@redhat.com>

On Wed, Oct 22, 2014 at 11:08:20AM +0200, Paolo Bonzini wrote:
> Why should get_maintainer bother if someone puts his name as maintainer
> on an "Orphan" entry?  Garbage in, email out.  The results from the git
> fallback are likely to be from someone doing sweeping changes on the
> whole tree, and thus not really interesting.
> 
> Reported-by: Gerd Hoffmann <kraxel@redhat.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Looks good to me

Reviewed-by: Michael S. Tsirkin <mst@redhat.com>

I will add text that explains that the effect for current tree is
disabling fallback for Odd fixes projects.


> ---
>  scripts/get_maintainer.pl | 19 -------------------
>  1 file changed, 19 deletions(-)
> 
> diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
> index a3a16d8..6c5a73b 100755
> --- a/scripts/get_maintainer.pl
> +++ b/scripts/get_maintainer.pl
> @@ -505,24 +505,6 @@ if ($web) {
>  
>  exit($exit);
>  
> -sub range_is_maintained {
> -    my ($start, $end) = @_;
> -
> -    for (my $i = $start; $i < $end; $i++) {
> -	my $line = $typevalue[$i];
> -	if ($line =~ m/^(\C):\s*(.*)/) {
> -	    my $type = $1;
> -	    my $value = $2;
> -	    if ($type eq 'S') {
> -		if ($value =~ /(maintain|support)/i) {
> -		    return 1;
> -		}
> -	    }
> -	}
> -    }
> -    return 0;
> -}
> -
>  sub range_has_maintainer {
>      my ($start, $end) = @_;
>  
> @@ -602,7 +584,6 @@ sub get_maintainers {
>  				$value_pd++ if (substr($value,-1,1) ne "/");
>  				$value_pd = -1 if ($value =~ /^\.\*/);
>  				if ($value_pd >= $file_pd &&
> -				    range_is_maintained($start, $end) &&
>  				    range_has_maintainer($start, $end)) {
>  				    $exact_pattern_match_hash{$file} = 1;
>  				}
> -- 
> 1.8.3.1
> 

  reply	other threads:[~2014-10-22  9:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-22  9:08 [Qemu-devel] [PATCH 0/4] small improvements to get_maintainer.pl Paolo Bonzini
2014-10-22  9:08 ` [Qemu-devel] [PATCH 1/4] get_maintainer.pl: exit with status 1 if no maintainer found Paolo Bonzini
2014-10-22 12:09   ` Markus Armbruster
2014-10-22 12:32     ` Paolo Bonzini
2014-10-22  9:08 ` [Qemu-devel] [PATCH 2/4] get_maintainer.pl: treat all M entries the same Paolo Bonzini
2014-10-22  9:24   ` Michael S. Tsirkin [this message]
2014-10-22  9:08 ` [Qemu-devel] [PATCH 3/4] get_maintainer.pl: move git loop under "if ($email) {" Paolo Bonzini
2014-10-22  9:08 ` [Qemu-devel] [PATCH 4/4] get_maintainer.pl: point at --git-fallback instead of enabling it automatically Paolo Bonzini
2014-10-22  9:33   ` Michael S. Tsirkin
2014-10-22  9:56     ` Paolo Bonzini
2014-10-22 10:13       ` Thomas Huth
2014-10-22 10:17       ` Michael S. Tsirkin
2014-10-22 10:30         ` Paolo Bonzini
2014-10-22 12:55           ` Markus Armbruster
2014-10-22 10:17 ` [Qemu-devel] [PATCH 0/4] small improvements to get_maintainer.pl Thomas Huth
2014-10-22 10:28   ` Michael S. Tsirkin
2014-10-22 10:42     ` Paolo Bonzini
2014-10-22 12:57 ` Markus Armbruster

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=20141022092405.GA9425@redhat.com \
    --to=mst@redhat.com \
    --cc=armbru@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.