get_maintainer.pl: Default to --no-git-fallback
PATCH 1/1 get_maintainer.pl: Default to --no-git-fallback
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact MAINTAINERS pattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.
Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
--- scripts/get_maintainer.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/get_maintainer.pl +1 -1
@@ -28,7 +28,7 @@ my $email_git = 0; my $email_git_all_signature_types = 0; my $email_git_blame = 0; my $email_git_blame_signatures = 1; -my $email_git_fallback = 1; +my $email_git_fallback = 0; my $email_git_min_signatures = 1; my $email_git_max_maintainers = 5; my $email_git_min_percent = 5;
Signature · 1 line
1.9.3
I am happy with this so:
-Don Slutz
Quoted 26 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Signed-off-by Markus Armbruster <[email protected]>--- scripts/get_maintainer.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/get_maintainer.pl +1
-1@@ -28,7 +28,7 @@ my $email_git = 0; my $email_git_all_signature_types = 0; my $email_git_blame = 0; my $email_git_blame_signatures = 1; -my $email_git_fallback = 1; +my $email_git_fallback = 0; my $email_git_min_signatures = 1; my $email_git_max_maintainers = 5; my $email_git_min_percent = 5;
Quoted 9 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Signed-off-by Markus Armbruster <[email protected]>
Good idea.
-- PMM
Quoted 9 lines · Peter Maydell
Quoted 8 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Quoted 7 lines
Quoted 1 line
Signed-off-by Markus Armbruster <[email protected]>Good idea.
Reviewed-by Peter Maydell <[email protected]>-- PMM
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?
The benefit seems marginal, the risk high.
I would be OK with this if you also go over history and assign maintainers to all core files which lack maintainers listed in MAINTAINERS.
I'm yet to see contributors who are annoyed but we can always blacklist specific people.
Signature · 1 line
MST
Quoted 7 lines · Michael S. Tsirkin
Quoted 6 lines · Peter Maydell
Quoted 5 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Good idea.
What do you want to happen in this case?
It should mail the people who are actually maintainers, not anybody who happened to touch the code in the last year.
Quoted 2 lines
I'm yet to see contributors who are annoyed but we can always blacklist specific people.
At the moment I just don't use get_maintainers.pl at all because I tried it a few times and it just cc'd a bunch of irrelevant people...
I suspect anybody using it at the moment is either using the --no-git-fallback flag or trimming the cc list a lot.
thanks
-- PMM
Quoted 4 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.
Definitely.
Quoted 8 lines
Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Signed-off-by Markus Armbruster <[email protected]>--- scripts/get_maintainer.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 4 lines · Michael S. Tsirkin
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
I agree with Michael.
Can we detect if get_maintainer.pl is invoked as a cccmd, and in this case default to --no-git-fallback? If it is invoked manually, I would like to show the committers (I will then cherry pick the right ones).
Paolo
Quoted 11 lines · Peter Maydell
Quoted 9 lines · Michael S. Tsirkin
Quoted 8 lines · Peter Maydell
Quoted 7 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Good idea.
What do you want to happen in this case?
It should mail the people who are actually maintainers, not anybody who happened to touch the code in the last year.
Right but as often as not there's no data about that in MAINTAINERS.
Quoted 7 lines
Quoted 2 lines
I'm yet to see contributors who are annoyed but we can always blacklist specific people.
At the moment I just don't use get_maintainers.pl at all because I tried it a few times and it just cc'd a bunch of irrelevant people...
Quoted 6 lines
I suspect anybody using it at the moment is either using the --no-git-fallback flag or trimming the cc list a lot.
thanks
-- PMM
I'm using it: sometimes with --no-git-fallback, sometimes without.
IIUC the default is to have up to 5 people on the Cc list (--git-max-maintainers).
It's not like it adds 200 random people, is it?
Anyway experienced contributors can figure it out IMHO.
Question in my mind is what do we want a casual contributor to do if there's no one listed in MAINTAINERS. "Look in MAINTAINERS, if not there, look in git log" sounds very reasonable to me, better than "CC no one".
Signature · 1 line
MST
Quoted 38 lines · Michael S. Tsirkin
Quoted 8 lines · Peter Maydell
Quoted 7 lines · Michael S. Tsirkin
Quoted 6 lines · Peter Maydell
Quoted 5 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
Quoted 2 lines
Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Good idea.
What do you want to happen in this case?
It should mail the people who are actually maintainers, not anybody who happened to touch the code in the last year.
Right but as often as not there's no data about that in
MAINTAINERS.Quoted 6 lines
Quoted 2 lines
I'm yet to see contributors who are annoyed but we can always blacklist specific people.
At the moment I just don't use get_maintainers.pl at all because I tried it a few times and it just cc'd a bunch of irrelevant people...
Quoted 6 lines
I suspect anybody using it at the moment is either using the --no-git-fallback flag or trimming the cc list a lot.
thanks
-- PMMI'm using it: sometimes with --no-git-fallback, sometimes without.
IIUC the default is to have up to 5 people on the Cc list (--git-max-maintainers).
It's not like it adds 200 random people, is it?
Quoted 8 lines
Anyway experienced contributors can figure it out IMHO.
Question in my mind is what do we want a casual contributor to do if there's no one listed in
MAINTAINERS. "Look inMAINTAINERS, if not there, look in git log" sounds very reasonable to me, better than "CC no one".
Here is a possible patch (based on a xen change). It adds the special supporter:THE REST
Which is listed at the end of MAINTAINERS. I included a quick guess...
-Don Slutz
From 82bd0d1dcfc5d17d1b72e12b2da3c9bb51e09a48 Mon Sep 17 00:00:00 2001
From: Don Slutz <[email protected]>
Date: Mon, 20 Oct 2014 16:06:35 -0400
Subject: [PATCH] get_maintainer.pl: Add 'THE REST'
--- MAINTAINERS | 8 ++++++++ scripts/get_maintainer.pl | 15 +++++++++++++++ 2 files changed, 23 insertions(+)
MAINTAINERS +8 -0
@@ -1018,3 +1018,11 @@ M: Chrysostomos Nanakos <[email protected]> M: Chrysostomos Nanakos <[email protected]> S: Maintained F: block/archipelago.c + +THE REST +M: Michael S. Tsirkin <[email protected]> +M: Peter Maydell <[email protected]> +L: [email protected] +S: Supported +F: * +F: */
scripts/get_maintainer.pl +15 -0
@@ -37,6 +37,7 @@ my $email_hg_since = "-365"; my $interactive = 0; my $email_remove_duplicates = 1; my $email_use_mailmap = 1; +my $email_drop_the_rest_supporter_if_supporter_found = 1; my $output_multiline = 1; my $output_separator = ", "; my $output_roles = 0;
@@ -196,6 +197,7 @@ if (!GetOptions( 'i|interactive!' => \$interactive, 'remove-duplicates!' => \$email_remove_duplicates, 'mailmap!' => \$email_use_mailmap, + 'drop_the_rest_supporter!' => \$email_drop_the_rest_supporter_if_supporter_found, 'm!' => \$email_maintainer, 'n!' => \$email_usename, 'l!' => \$email_list,
@@ -647,6 +649,19 @@ sub get_maintainers { } } + if ($email_drop_the_rest_supporter_if_supporter_found && $#email_to > 0) { + my @email_new; + my $do_replace = 0; + foreach my $email (@email_to) { + if ($email->[1] ne 'supporter:THE REST') { + $do_replace = 1; + push @email_new, $email; + } + } + @email_to = @email_new + if $do_replace; + } + foreach my $email (@email_to, @list_to) { $email->[0] = deduplicate_email($email->[0]); }
Signature · 1 line
1.8.4
Quoted 1 line
From
82bd0d1dcfc5d17d1b72e12b2da3c9bb51e09a48Mon Sep 17 00:00:00 2001
From: Don Slutz <[email protected]>
Date: Mon, 20 Oct 2014 16:06:35 -0400
Subject: [PATCH] get_maintainer.pl: Add 'THE REST'
--- MAINTAINERS | 8 ++++++++ scripts/get_maintainer.pl | 15 +++++++++++++++ 2 files changed, 23 insertions(+)
MAINTAINERS +8 -0
@@ -1018,3 +1018,11 @@ M: Chrysostomos Nanakos <[email protected]> M: Chrysostomos Nanakos <[email protected]> S: Maintained F: block/archipelago.c + +THE REST +M: Michael S. Tsirkin <[email protected]> +M: Peter Maydell <[email protected]> +L: [email protected] +S: Supported +F: * +F: */
scripts/get_maintainer.pl +15 -0
@@ -37,6 +37,7 @@ my $email_hg_since = "-365"; my $interactive = 0; my $email_remove_duplicates = 1; my $email_use_mailmap = 1; +my $email_drop_the_rest_supporter_if_supporter_found = 1; my $output_multiline = 1; my $output_separator = ", "; my $output_roles = 0;
@@ -196,6 +197,7 @@ if (!GetOptions( 'i|interactive!' => \$interactive, 'remove-duplicates!' => \$email_remove_duplicates, 'mailmap!' => \$email_use_mailmap, + 'drop_the_rest_supporter!' => \$email_drop_the_rest_supporter_if_supporter_found, 'm!' => \$email_maintainer, 'n!' => \$email_usename, 'l!' => \$email_list,
@@ -647,6 +649,19 @@ sub get_maintainers { } } + if ($email_drop_the_rest_supporter_if_supporter_found && $#email_to > 0) { + my @email_new; + my $do_replace = 0; + foreach my $email (@email_to) { + if ($email->[1] ne 'supporter:THE REST') { + $do_replace = 1; + push @email_new, $email; + } + } + @email_to = @email_new + if $do_replace; + } + foreach my $email (@email_to, @list_to) { $email->[0] = deduplicate_email($email->[0]); }
Signature · 1 line
1.8.4
MAINTAINERS M: Chrysostomos Nanakos <[email protected]> · line 1028
Quoted 12 lines · Don Slutz
Here is a possible patch (based on a xen change). It adds the special supporter:THE REST
Which is listed at the end of
MAINTAINERS. I included a quick guess...MAINTAINERS +7
-0+THE REST +M: Michael S. Tsirkin <[email protected]> +M: Peter Maydell <[email protected]> +L: [email protected] +S: Supported +F: * +F: */
I don't know about MST but I think this is a terrible idea :-) If I get cc'd on everything then the cc just becomes noise (TBH I already don't put a huge weighting on qemu-devel mail cc'd to me or not).
On the other hand, if we made this fallback cc qemu-unmaintained@ or some similar list that might actually be useful, since (a) it flags up for submitters that their contribution may be in an unmaintained gap (b) anybody who cares can easily go through the list and fish things out
(c) we might be prompted to fix missing MAINTAINERS entries.
-- PMM
Quoted 14 lines · On Mon, 20 Oct 2014 17:15:48 +0300 "Michael S. Tsirkin" <[email protected]> wrote:
Quoted 13 lines · Peter Maydell
Quoted 9 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Signed-off-by Markus Armbruster <[email protected]>Good idea.
Quoted 8 lines
Quoted 3 lines
Reviewed-by Peter Maydell <[email protected]>-- PMM
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
Well, IMHO, at least the current behaviour if git-fallback seems to be a little bit too easygoing: I already got mails just because I once reviewed a patch in the past and thus got listed with the "Reviewed-by:" tag. I would not expect that behaviour when I run a "get_maintainers" script (it's not called "get_reviewers", is it?).
Maybe you could at least remove the "Reviewed-by:" and "Acked-by:" from the --git-fallback option so that it only checks for the SOBs?
Thomas
Quoted 18 lines · Michael S. Tsirkin
Quoted 9 lines · Peter Maydell
Quoted 8 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Quoted 7 lines
Quoted 1 line
Signed-off-by Markus Armbruster <[email protected]>Good idea.
Reviewed-by Peter Maydell <[email protected]>-- PMM
Quoted 8 lines
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
I would be OK with this if you also go over history and assign maintainers to all core files which lack maintainers listed in
MAINTAINERS.
Define "core files".
I don't think I (or anyone) should *assign* maintainers. We've always let people volunteer for the maintainer role. Prodding them to volunteer is fine, but shanghaiing them outright is a different matter.
We do have too may files lacking maintainers. See
Subject: MAINTAINERS leaves too many files uncovered
Date: Mon, 20 Oct 2014 11:19:44 +0200
Message-ID: <[email protected]>
https://lists.nongnu.org/archive/html/qemu-devel/2014-10/msg01951.htmlQuoted 2 lines
I'm yet to see contributors who are annoyed but we can always blacklist specific people.
Quite a few have grumbled, both in this thread and elsewhere. Usually, for every one who grumbles, there are several quietly annoyed.
Quoted 14 lines · Michael S. Tsirkin
Quoted 13 lines · Peter Maydell
Quoted 11 lines · Michael S. Tsirkin
Quoted 10 lines · Peter Maydell
Quoted 7 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Good idea.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
What do you want to happen in this case?
It should mail the people who are actually maintainers, not anybody who happened to touch the code in the last year.
Right but as often as not there's no data about that in
MAINTAINERS.
The way to fix that is finding maintainers, not scatter-shooting patches to random contributors in the vague hope of hitting someone who cares.
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
I'm yet to see contributors who are annoyed but we can always blacklist specific people.
At the moment I just don't use get_maintainers.pl at all because I tried it a few times and it just cc'd a bunch of irrelevant people...
Quoted 8 lines
Quoted 6 lines
I suspect anybody using it at the moment is either using the --no-git-fallback flag or trimming the cc list a lot.
thanks
-- PMMI'm using it: sometimes with --no-git-fallback, sometimes without.
I'm using it, but I absolutely want to know when it falls back to git, because then I want to cheack and trim or ignore its output every single time.
Quoted 5 lines
IIUC the default is to have up to 5 people on the Cc list (--git-max-maintainers).
It's not like it adds 200 random people, is it?Anyway experienced contributors can figure it out IMHO.
Experienced contributors can figure out --git-fallback, too.
What we see is contributors, especially less experienced ones, copying whatever get_maintainers.pl spits out, because they have no idea what get_maintainers.pl actually does.
Quoted 4 lines
Question in my mind is what do we want a casual contributor to do if there's no one listed in
MAINTAINERS. "Look inMAINTAINERS, if not there, look in git log" sounds very reasonable to me, better than "CC no one".
But that's not what we do! We do "copy whatever get_maintainers.pl coughs up", which boils down to "use MAINTAINERS, if not there, grab some random victims from git-log".
Perhaps we'd get slightly better results if get_maintainers.pl told its users clearly about the two kinds of output it may produce: maintainers (must be copied on patches), and recent contributors (you're in trouble; copying some of them may or may not help).
Quoted 39 lines · Markus Armbruster
Quoted 14 lines · Michael S. Tsirkin
Quoted 13 lines · Peter Maydell
Quoted 11 lines · Michael S. Tsirkin
Quoted 10 lines · Peter Maydell
Quoted 7 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Good idea.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
What do you want to happen in this case?
It should mail the people who are actually maintainers, not anybody who happened to touch the code in the last year.
Right but as often as not there's no data about that in
MAINTAINERS.The way to fix that is finding maintainers, not scatter-shooting patches to random contributors in the vague hope of hitting someone who cares.
Quoted 11 lines
Quoted 11 lines
Quoted 2 lines
I'm yet to see contributors who are annoyed but we can always blacklist specific people.
At the moment I just don't use get_maintainers.pl at all because I tried it a few times and it just cc'd a bunch of irrelevant people...
I suspect anybody using it at the moment is either using the --no-git-fallback flag or trimming the cc list a lot.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
thanks
-- PMMI'm using it: sometimes with --no-git-fallback, sometimes without.
I'm using it, but I absolutely want to know when it falls back to git, because then I want to cheack and trim or ignore its output every single time.
Well it tells you the role. What else is necessary?
Quoted 7 lines
Quoted 5 lines
IIUC the default is to have up to 5 people on the Cc list (--git-max-maintainers).
It's not like it adds 200 random people, is it?Anyway experienced contributors can figure it out IMHO.
Experienced contributors can figure out --git-fallback, too.
Exactly.
Quoted 3 lines
What we see is contributors, especially less experienced ones, copying whatever get_maintainers.pl spits out, because they have no idea what get_maintainers.pl actually does.
Exactly. And this seems better than just sending to qemu ML and not copying anyone.
Quoted 8 lines
Quoted 4 lines
Question in my mind is what do we want a casual contributor to do if there's no one listed in
MAINTAINERS. "Look inMAINTAINERS, if not there, look in git log" sounds very reasonable to me, better than "CC no one".But that's not what we do! We do "copy whatever get_maintainers.pl coughs up", which boils down to "use
MAINTAINERS, if not there, grab some random victims from git-log".
Sorry, what's the difference?
"look in" versus "random victims"? what makes them random? Maybe you just want to increase git-min-percent?
Quoted 4 lines
Perhaps we'd get slightly better results if get_maintainers.pl told its users clearly about the two kinds of output it may produce: maintainers (must be copied on patches), and recent contributors (you're in trouble; copying some of them may or may not help).
That's what it does: it reports the role, and the percent. What's missing?
Signature · 1 line
MST
Quoted 11 lines · Paolo Bonzini
Quoted 4 lines · Michael S. Tsirkin
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
I agree with Michael.
Can we detect if get_maintainer.pl is invoked as a cccmd, and in this case default to --no-git-fallback? If it is invoked manually, I would like to show the committers (I will then cherry pick the right ones).
How about making "get_maintainer.pl --git-fallback" actually do what it says? Right now git it *not* used as fallback, it goes to git log unconditionally, even if there are hits in MAINTAINERS ...
Different behavior depending on whenever stdout is a tty or not should be doable too.
cheers,
Gerd
Quoted 9 lines · Gerd Hoffmann
Quoted 8 lines · Paolo Bonzini
Quoted 4 lines · Michael S. Tsirkin
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
I agree with Michael.
Quoted 7 lines
Quoted 3 lines
Can we detect if get_maintainer.pl is invoked as a cccmd, and in this case default to --no-git-fallback? If it is invoked manually, I would like to show the committers (I will then cherry pick the right ones).
How about making "get_maintainer.pl --git-fallback" actually do what it says? Right now git it *not* used as fallback, it goes to git log unconditionally, even if there are hits in
MAINTAINERS...
It does?
How do you reproduce this behaviour?
$ ./scripts/get_maintainer.pl -f vl.c Anthony Liguori <[email protected]> (supporter:Main loop)
Seems to stop if it sees a maintainer.
Quoted 7 lines
Different behavior depending on whenever stdout is a tty or not should be doable too.
cheers,
Gerd
Hi,
Quoted 4 lines
Quoted 3 lines
How about making "get_maintainer.pl --git-fallback" actually do what it says? Right now git it *not* used as fallback, it goes to git log unconditionally, even if there are hits in
MAINTAINERS...
Quoted 8 lines
It does?
How do you reproduce this behaviour?
$ ./scripts/get_maintainer.pl -f vl.c Anthony Liguori <[email protected]> (supporter:Main loop)Seems to stop if it sees a maintainer.
nilsson kraxel ~/projects/qemu (usb.work)# scripts/get_maintainer.pl -f ui/vnc.c
Anthony Liguori <[email protected]> (odd fixer:Graphics) Gerd Hoffmann <[email protected]> (odd fixer:Graphics,commit_signer:21/24=88%)
Peter Lieven <[email protected]> (commit_signer:12/24=50%)
Wenchao Xia <[email protected]> (commit_signer:7/24=29%) Markus Armbruster <[email protected]> (commit_signer:3/24=12%) Luiz Capitulino <[email protected]> (commit_signer:3/24=12%)
Maybe it depends on maintainer status ...
cheers,
Gerd
Quoted 25 lines · Gerd Hoffmann
Hi,
Quoted 4 lines
Quoted 3 lines
How about making "get_maintainer.pl --git-fallback" actually do what it says? Right now git it *not* used as fallback, it goes to git log unconditionally, even if there are hits in
MAINTAINERS...Quoted 8 lines
It does?
How do you reproduce this behaviour?
$ ./scripts/get_maintainer.pl -f vl.c Anthony Liguori <[email protected]> (supporter:Main loop)Seems to stop if it sees a maintainer.
nilsson kraxel ~/projects/qemu (usb.work)#
scripts/get_maintainer.pl-fui/vnc.c
Anthony Liguori <[email protected]> (odd fixer:Graphics) Gerd Hoffmann <[email protected]> (odd fixer:Graphics,commit_signer:21/24=88%)
Peter Lieven <[email protected]> (commit_signer:12/24=50%)
Wenchao Xia <[email protected]> (commit_signer:7/24=29%) Markus Armbruster <[email protected]> (commit_signer:3/24=12%) Luiz Capitulino <[email protected]> (commit_signer:3/24=12%)
Quoted 5 lines
Maybe it depends on maintainer status ...
cheers,
Gerd
Yes and that's a bug.
Thanks for the report.
Patch send, maybe that will be enough.
Signature · 1 line
MST
Quoted 43 lines · Michael S. Tsirkin
Quoted 42 lines · Markus Armbruster
Quoted 14 lines · Michael S. Tsirkin
Quoted 13 lines · Peter Maydell
Quoted 11 lines · Michael S. Tsirkin
Quoted 10 lines · Peter Maydell
Quoted 7 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Good idea.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
What do you want to happen in this case?
It should mail the people who are actually maintainers, not anybody who happened to touch the code in the last year.
Right but as often as not there's no data about that in
MAINTAINERS.The way to fix that is finding maintainers, not scatter-shooting patches to random contributors in the vague hope of hitting someone who cares.
Quoted 14 lines
Quoted 13 lines
Quoted 2 lines
I'm yet to see contributors who are annoyed but we can always blacklist specific people.
At the moment I just don't use get_maintainers.pl at all because I tried it a few times and it just cc'd a bunch of irrelevant people...
I suspect anybody using it at the moment is either using the --no-git-fallback flag or trimming the cc list a lot.
thanks
-- PMM
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
I'm using it: sometimes with --no-git-fallback, sometimes without.
I'm using it, but I absolutely want to know when it falls back to git, because then I want to cheack and trim or ignore its output every single time.
Well it tells you the role. What else is necessary?
For my own use in sending patches, nothing. I know how to use it to help me copy the right people.
Quoted 8 lines
Quoted 7 lines
Quoted 5 lines
IIUC the default is to have up to 5 people on the Cc list (--git-max-maintainers).
It's not like it adds 200 random people, is it?Anyway experienced contributors can figure it out IMHO.
Experienced contributors can figure out --git-fallback, too.
Quoted 8 lines
Exactly.
Quoted 3 lines
What we see is contributors, especially less experienced ones, copying whatever get_maintainers.pl spits out, because they have no idea what get_maintainers.pl actually does.
Exactly. And this seems better than just sending to qemu ML and not copying anyone.
That's where we disagree.
Personally, I don't mind getting punished for contributing patches by getting copied indiscriminately all that much. It's a drain on my time, but I can cope. However, I know people who do mind, and some of them have spoken up in this thread.
Copying people is not free. You should *think* before you copy.
An entry in MAINTAINERS dispenses you from this obligation, because the people listed explicitly asked for a copy.
Finding someone in git-log does not!
get_maintainers.pl encourages its users to treat people found in git-log exactly like the ones in MAINTAINERS. Treating them the same is *wrong*.
Quoted 11 lines
Quoted 8 lines
Quoted 4 lines
Question in my mind is what do we want a casual contributor to do if there's no one listed in
MAINTAINERS. "Look inMAINTAINERS, if not there, look in git log" sounds very reasonable to me, better than "CC no one".But that's not what we do! We do "copy whatever get_maintainers.pl coughs up", which boils down to "use
MAINTAINERS, if not there, grab some random victims from git-log".Sorry, what's the difference?
"look in" versus "random victims"? what makes them random?
The difference is using get_maintainers.pl to help finding whom to copy vs. blindly copying whoever get_maintainers.pl coughs up.
Quoted 8 lines
Maybe you just want to increase git-min-percent?
Quoted 4 lines
Perhaps we'd get slightly better results if get_maintainers.pl told its users clearly about the two kinds of output it may produce: maintainers (must be copied on patches), and recent contributors (you're in trouble; copying some of them may or may not help).
That's what it does: it reports the role, and the percent.
Boldly assumes the user of get_maintainers.pl knows what it does, and knows how to interpret runes like (commit_signer:14/22=64%).
Quoted 1 line
What's missing?
What's really missing is decent coverage by MAINTAINERS. I figure my patch is controversial only because MAINTAINERS is so woefully incomplete.
My patch to get_maintainers.pl triggered a whole thread, while the message I sent on MAINTAINERS coverage got just one reply so far, and even that one's really just about get_maintainers.pl. Disappointing. Looks like we're still looking for an easy technical fix. I doubt there is one.
If you have better ideas on how to mitigate the excessive and useless copying we now see, please post a patch.
Quoted 114 lines · Markus Armbruster
Quoted 43 lines · Michael S. Tsirkin
Quoted 42 lines · Markus Armbruster
Quoted 14 lines · Michael S. Tsirkin
Quoted 13 lines · Peter Maydell
Quoted 11 lines · Michael S. Tsirkin
Quoted 10 lines · Peter Maydell
Quoted 7 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Good idea.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
What do you want to happen in this case?
It should mail the people who are actually maintainers, not anybody who happened to touch the code in the last year.
Right but as often as not there's no data about that in
MAINTAINERS.The way to fix that is finding maintainers, not scatter-shooting patches to random contributors in the vague hope of hitting someone who cares.
Quoted 14 lines
Quoted 13 lines
Quoted 2 lines
I'm yet to see contributors who are annoyed but we can always blacklist specific people.
At the moment I just don't use get_maintainers.pl at all because I tried it a few times and it just cc'd a bunch of irrelevant people...
I suspect anybody using it at the moment is either using the --no-git-fallback flag or trimming the cc list a lot.
thanks
-- PMMQuoted 8 lines
Quoted 5 lines
Quoted 1 line
I'm using it: sometimes with --no-git-fallback, sometimes without.
I'm using it, but I absolutely want to know when it falls back to git, because then I want to cheack and trim or ignore its output every single time.
Well it tells you the role. What else is necessary?
For my own use in sending patches, nothing. I know how to use it to help me copy the right people.
Quoted 8 lines
Quoted 7 lines
Quoted 5 lines
IIUC the default is to have up to 5 people on the Cc list (--git-max-maintainers).
It's not like it adds 200 random people, is it?Anyway experienced contributors can figure it out IMHO.
Experienced contributors can figure out --git-fallback, too.
Quoted 8 lines
Exactly.
Quoted 3 lines
What we see is contributors, especially less experienced ones, copying whatever get_maintainers.pl spits out, because they have no idea what get_maintainers.pl actually does.
Exactly. And this seems better than just sending to qemu ML and not copying anyone.
That's where we disagree.
Personally, I don't mind getting punished for contributing patches by getting copied indiscriminately all that much. It's a drain on my time, but I can cope. However, I know people who do mind, and some of them have spoken up in this thread.
Copying people is not free. You should *think* before you copy.
An entry in
MAINTAINERSdispenses you from this obligation, because the people listed explicitly asked for a copy.Finding someone in git-log does not!
get_maintainers.pl encourages its users to treat people found in git-log exactly like the ones in
MAINTAINERS. Treating them the same is *wrong*.Quoted 11 lines
Quoted 8 lines
Quoted 4 lines
Question in my mind is what do we want a casual contributor to do if there's no one listed in
MAINTAINERS. "Look inMAINTAINERS, if not there, look in git log" sounds very reasonable to me, better than "CC no one".But that's not what we do! We do "copy whatever get_maintainers.pl coughs up", which boils down to "use
MAINTAINERS, if not there, grab some random victims from git-log".Sorry, what's the difference?
"look in" versus "random victims"? what makes them random?The difference is using get_maintainers.pl to help finding whom to copy vs. blindly copying whoever get_maintainers.pl coughs up.
Quoted 7 lines
Maybe you just want to increase git-min-percent?
Quoted 4 lines
Perhaps we'd get slightly better results if get_maintainers.pl told its users clearly about the two kinds of output it may produce: maintainers (must be copied on patches), and recent contributors (you're in trouble; copying some of them may or may not help).
Quoted 4 lines
Quoted 1 line
That's what it does: it reports the role, and the percent.
Boldly assumes the user of get_maintainers.pl knows what it does, and knows how to interpret runes like (commit_signer:14/22=64%).
OK so you would like a flag for a more readable output? Sounds very reasonable.
Quoted 5 lines
Quoted 1 line
What's missing?
What's really missing is decent coverage by
MAINTAINERS. I figure my patch is controversial only becauseMAINTAINERSis so woefully incomplete.
In fact if MAINTAINERS covered everything your patch won't be needed right?
Quoted 5 lines
My patch to get_maintainers.pl triggered a whole thread, while the message I sent on
MAINTAINERScoverage got just one reply so far, and even that one's really just about get_maintainers.pl. Disappointing. Looks like we're still looking for an easy technical fix. I doubt there is one.
At least for myself, that's because I'm Cc'd directly on the patch but not on the MAINTAINERS coverage mail.
And that's ... because get_maintainers picks my mail from git?
See how it's useful now?
Quoted 2 lines
If you have better ideas on how to mitigate the excessive and useless copying we now see, please post a patch.
We need more maintainers :)
Quoted 118 lines · Michael S. Tsirkin
Quoted 117 lines · Markus Armbruster
Quoted 46 lines · Michael S. Tsirkin
Quoted 45 lines · Markus Armbruster
Quoted 17 lines · Michael S. Tsirkin
Quoted 16 lines · Peter Maydell
Quoted 14 lines · Michael S. Tsirkin
Quoted 13 lines · Peter Maydell
Quoted 9 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be
particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to
ask it to fall back to git.Good idea.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
What do you want to happen in this case?
It should mail the people who are actually maintainers, not anybody who happened to touch the code in the last year.
Right but as often as not there's no data about that in
MAINTAINERS.The way to fix that is finding maintainers, not scatter-shooting patches to random contributors in the vague hope of hitting someone who cares.
Quoted 14 lines
Quoted 13 lines
Quoted 2 lines
I'm yet to see contributors who are annoyed but we can always blacklist specific people.
At the moment I just don't use get_maintainers.pl at all because I tried it a few times and it just cc'd a bunch of irrelevant people...
I suspect anybody using it at the moment is either using the --no-git-fallback flag or trimming the cc list a lot.
thanks
-- PMMQuoted 8 lines
Quoted 5 lines
Quoted 1 line
I'm using it: sometimes with --no-git-fallback, sometimes without.
I'm using it, but I absolutely want to know when it falls back to git, because then I want to cheack and trim or ignore its output every single time.
Well it tells you the role. What else is necessary?
For my own use in sending patches, nothing. I know how to use it to help me copy the right people.
Quoted 8 lines
Quoted 7 lines
Quoted 5 lines
IIUC the default is to have up to 5 people on the Cc list (--git-max-maintainers).
It's not like it adds 200 random people, is it?Anyway experienced contributors can figure it out IMHO.
Experienced contributors can figure out --git-fallback, too.
Quoted 8 lines
Exactly.
Quoted 3 lines
What we see is contributors, especially less experienced ones, copying whatever get_maintainers.pl spits out, because they have no idea what get_maintainers.pl actually does.
Exactly. And this seems better than just sending to qemu ML and not copying anyone.
That's where we disagree.
Personally, I don't mind getting punished for contributing patches by getting copied indiscriminately all that much. It's a drain on my time, but I can cope. However, I know people who do mind, and some of them have spoken up in this thread.
Copying people is not free. You should *think* before you copy.
An entry in
MAINTAINERSdispenses you from this obligation, because the people listed explicitly asked for a copy.Finding someone in git-log does not!
get_maintainers.pl encourages its users to treat people found in git-log exactly like the ones in
MAINTAINERS. Treating them the same is *wrong*.Quoted 11 lines
Quoted 8 lines
Quoted 4 lines
Question in my mind is what do we want a casual contributor to do if there's no one listed in
MAINTAINERS. "Look inMAINTAINERS, if not there, look in git log" sounds very reasonable to me, better than "CC no one".But that's not what we do! We do "copy whatever get_maintainers.pl coughs up", which boils down to "use
MAINTAINERS, if not there, grab some random victims from git-log".Sorry, what's the difference?
"look in" versus "random victims"? what makes them random?The difference is using get_maintainers.pl to help finding whom to copy vs. blindly copying whoever get_maintainers.pl coughs up.
Quoted 7 lines
Maybe you just want to increase git-min-percent?
Quoted 4 lines
Perhaps we'd get slightly better results if get_maintainers.pl told its users clearly about the two kinds of output it may produce: maintainers (must be copied on patches), and recent contributors (you're in trouble; copying some of them may or may not help).
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
That's what it does: it reports the role, and the percent.
Boldly assumes the user of get_maintainers.pl knows what it does, and knows how to interpret runes like (commit_signer:14/22=64%).
OK so you would like a flag for a more readable output? Sounds very reasonable.
Inexperienced contributors are unlikely to find a flag, so it better be the default.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
What's missing?
What's really missing is decent coverage by
MAINTAINERS. I figure my patch is controversial only becauseMAINTAINERSis so woefully incomplete.In fact if
MAINTAINERScovered everything your patch won't be needed right?
Correct. The more MAINTAINERS covers, the less of a difference my patch makes.
Quoted 11 lines
Quoted 5 lines
My patch to get_maintainers.pl triggered a whole thread, while the message I sent on
MAINTAINERScoverage got just one reply so far, and even that one's really just about get_maintainers.pl. Disappointing. Looks like we're still looking for an easy technical fix. I doubt there is one.At least for myself, that's because I'm Cc'd directly on the patch but not on the
MAINTAINERScoverage mail.
And that's ... becauseget_maintainerspicks my mail from git?See how it's useful now?
Except that's not what happened.
$ scripts/get_maintainer.pl --git-fallback -f scripts/get_maintainer.pl
No output. I picked you from git-log manually.
Quoted 4 lines
Quoted 2 lines
If you have better ideas on how to mitigate the excessive and useless copying we now see, please post a patch.
We need more maintainers :)
Yes, we do. Until we got them, we need fewer useless copies.
Quoted 11 lines · Paolo Bonzini
Quoted 4 lines · Michael S. Tsirkin
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
I agree with Michael.
Can we detect if get_maintainer.pl is invoked as a cccmd, and in this case default to --no-git-fallback? If it is invoked manually, I would like to show the committers (I will then cherry pick the right ones).
I don't like context-sensitive defaults. Too much magic.
What about this: if get_maintainer.pl comes up empty, it points you to --git-fallback.
Quoted 10 lines · Markus Armbruster
Quoted 8 lines · Paolo Bonzini
Quoted 4 lines · Michael S. Tsirkin
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
I agree with Michael.
Quoted 8 lines
Quoted 3 lines
Can we detect if get_maintainer.pl is invoked as a cccmd, and in this case default to --no-git-fallback? If it is invoked manually, I would like to show the committers (I will then cherry pick the right ones).
I don't like context-sensitive defaults. Too much magic.
What about this: if get_maintainer.pl comes up empty, it points you to --git-fallback.
Sounds fair enough!
Paolo
Quoted 23 lines · Markus Armbruster
Quoted 21 lines · Michael S. Tsirkin
Quoted 9 lines · Peter Maydell
Quoted 8 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Quoted 7 lines
Quoted 1 line
Signed-off-by Markus Armbruster <[email protected]>Good idea.
Reviewed-by Peter Maydell <[email protected]>-- PMM
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?
Quoted 8 lines
Quoted 5 lines
The benefit seems marginal, the risk high.
I would be OK with this if you also go over history and assign maintainers to all core files which lack maintainers listed in
MAINTAINERS.Define "core files".
Files implementing common infrastructure used in different guests on different hosts? This probably is the least covered in MAINTAINERS part. MAINTAINERS covers pretty well target architectures, host architectures and guest machines (each of them is a well-defined independent subsystem). On the other hand a lot of common files are missing from MAINTAINERS:cpu-exec.c, hw/core/*.c, cputlb.c etc.
Quoted 4 lines
I don't think I (or anyone) should *assign* maintainers. We've always let people volunteer for the maintainer role. Prodding them to volunteer is fine, but shanghaiing them outright is a different matter.
May be we can start searching for volunteers by making a list of unmaintained files grouped by subsystems? It is hard to find volunteers when we do not know exactly what we need them for.
Quoted 14 lines
We do have too may files lacking maintainers. See
Subject: MAINTAINERS leaves too many files uncovered Date: Mon, 20 Oct 2014 11:19:44 +0200 Message-ID: <[email protected]> https://lists.nongnu.org/archive/html/qemu-devel/2014-10/msg01951.htmlQuoted 2 lines
I'm yet to see contributors who are annoyed but we can always blacklist specific people.
Quite a few have grumbled, both in this thread and elsewhere. Usually, for every one who grumbles, there are several quietly annoyed.
Quoted 10 lines · Markus Armbruster
Quoted 8 lines · Paolo Bonzini
Quoted 4 lines · Michael S. Tsirkin
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
I agree with Michael.
Quoted 9 lines
Quoted 3 lines
Can we detect if get_maintainer.pl is invoked as a cccmd, and in this case default to --no-git-fallback? If it is invoked manually, I would like to show the committers (I will then cherry pick the right ones).
I don't like context-sensitive defaults. Too much magic.
What about this: if get_maintainer.pl comes up empty, it points you to --git-fallback.
I am in favor of this. Empty output does not tell a new contributors what to do next. So either this or document it on corresponding wiki page.
Signature · 1 line
Kirill
Quoted 41 lines · Kirill Batuzov
Quoted 23 lines · Markus Armbruster
Quoted 21 lines · Michael S. Tsirkin
Quoted 9 lines · Peter Maydell
Quoted 8 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to ask it to fall back to git.
Quoted 7 lines
Quoted 1 line
Signed-off-by Markus Armbruster <[email protected]>Good idea.
Reviewed-by Peter Maydell <[email protected]>-- PMM
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?Quoted 8 lines
Quoted 5 lines
The benefit seems marginal, the risk high.
I would be OK with this if you also go over history and assign maintainers to all core files which lack maintainers listed in
MAINTAINERS.Define "core files".
Files implementing common infrastructure used in different guests on different hosts? This probably is the least covered in
MAINTAINERSpart.MAINTAINERScovers pretty well target architectures, host architectures and guest machines (each of them is a well-defined independent subsystem). On the other hand a lot of common files are missing fromMAINTAINERS:cpu-exec.c, hw/core/*.c,cputlb.cetc.
Quoted 8 lines
Quoted 4 lines
I don't think I (or anyone) should *assign* maintainers. We've always let people volunteer for the maintainer role. Prodding them to volunteer is fine, but shanghaiing them outright is a different matter.
May be we can start searching for volunteers by making a list of unmaintained files grouped by subsystems? It is hard to find volunteers when we do not know exactly what we need them for.
Yes. I listed directories with many files at the end of this message:
Quoted 6 lines
Quoted 6 lines
We do have too may files lacking maintainers. See
Subject: MAINTAINERS leaves too many files uncovered Date: Mon, 20 Oct 2014 11:19:44 +0200 Message-ID: <[email protected]> https://lists.nongnu.org/archive/html/qemu-devel/2014-10/msg01951.html
The message also shows how to list unmaintained files:
$ for i in `git-ls-files`; do [ "`scripts/get_maintainer.pl -f --no-git-fallback $i`" ] || echo $i; done
I didn't include the full list because it's fairly big (~65KiB).
[...]
Quoted 122 lines · Markus Armbruster
Quoted 120 lines · Michael S. Tsirkin
Quoted 119 lines · Markus Armbruster
Quoted 46 lines · Michael S. Tsirkin
Quoted 45 lines · Markus Armbruster
Quoted 17 lines · Michael S. Tsirkin
Quoted 16 lines · Peter Maydell
Quoted 14 lines · Michael S. Tsirkin
Quoted 13 lines · Peter Maydell
Quoted 9 lines · Markus Armbruster
Contributors rely on this script to find maintainers to copy. The script falls back to git when no exact
MAINTAINERSpattern matches. When that happens, recent contributors get copied, which tends not be
particularly useful. Some contributors find it even annoying.Flip the default to "don't fall back to git". Use --git-fallback to
ask it to fall back to git.Good idea.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
What do you want to happen in this case?
It should mail the people who are actually maintainers, not anybody who happened to touch the code in the last year.
Right but as often as not there's no data about that in
MAINTAINERS.The way to fix that is finding maintainers, not scatter-shooting patches to random contributors in the vague hope of hitting someone who cares.
Quoted 14 lines
Quoted 13 lines
Quoted 2 lines
I'm yet to see contributors who are annoyed but we can always blacklist specific people.
At the moment I just don't use get_maintainers.pl at all because I tried it a few times and it just cc'd a bunch of irrelevant people...
I suspect anybody using it at the moment is either using the --no-git-fallback flag or trimming the cc list a lot.
thanks
-- PMMQuoted 8 lines
Quoted 5 lines
Quoted 1 line
I'm using it: sometimes with --no-git-fallback, sometimes without.
I'm using it, but I absolutely want to know when it falls back to git, because then I want to cheack and trim or ignore its output every single time.
Well it tells you the role. What else is necessary?
For my own use in sending patches, nothing. I know how to use it to help me copy the right people.
Quoted 8 lines
Quoted 7 lines
Quoted 5 lines
IIUC the default is to have up to 5 people on the Cc list (--git-max-maintainers).
It's not like it adds 200 random people, is it?Anyway experienced contributors can figure it out IMHO.
Experienced contributors can figure out --git-fallback, too.
Quoted 8 lines
Exactly.
Quoted 3 lines
What we see is contributors, especially less experienced ones, copying whatever get_maintainers.pl spits out, because they have no idea what get_maintainers.pl actually does.
Exactly. And this seems better than just sending to qemu ML and not copying anyone.
That's where we disagree.
Personally, I don't mind getting punished for contributing patches by getting copied indiscriminately all that much. It's a drain on my time, but I can cope. However, I know people who do mind, and some of them have spoken up in this thread.
Copying people is not free. You should *think* before you copy.
An entry in
MAINTAINERSdispenses you from this obligation, because the people listed explicitly asked for a copy.Finding someone in git-log does not!
get_maintainers.pl encourages its users to treat people found in git-log exactly like the ones in
MAINTAINERS. Treating them the same is *wrong*.Quoted 11 lines
Quoted 8 lines
Quoted 4 lines
Question in my mind is what do we want a casual contributor to do if there's no one listed in
MAINTAINERS. "Look inMAINTAINERS, if not there, look in git log" sounds very reasonable to me, better than "CC no one".But that's not what we do! We do "copy whatever get_maintainers.pl coughs up", which boils down to "use
MAINTAINERS, if not there, grab some random victims from git-log".Sorry, what's the difference?
"look in" versus "random victims"? what makes them random?The difference is using get_maintainers.pl to help finding whom to copy vs. blindly copying whoever get_maintainers.pl coughs up.
Quoted 8 lines
Maybe you just want to increase git-min-percent?
Quoted 4 lines
Perhaps we'd get slightly better results if get_maintainers.pl told its users clearly about the two kinds of output it may produce: maintainers (must be copied on patches), and recent contributors (you're in trouble; copying some of them may or may not help).
That's what it does: it reports the role, and the percent.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Boldly assumes the user of get_maintainers.pl knows what it does, and knows how to interpret runes like (commit_signer:14/22=64%).
OK so you would like a flag for a more readable output? Sounds very reasonable.
Inexperienced contributors are unlikely to find a flag, so it better be the default.
Fine with me, send a patch. Might be useful for Linux where we got this from, too.
Quoted 22 lines
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
What's missing?
What's really missing is decent coverage by
MAINTAINERS. I figure my patch is controversial only becauseMAINTAINERSis so woefully incomplete.In fact if
MAINTAINERScovered everything your patch won't be needed right?Correct. The more
MAINTAINERScovers, the less of a difference my patch makes.Quoted 10 lines
Quoted 5 lines
My patch to get_maintainers.pl triggered a whole thread, while the message I sent on
MAINTAINERScoverage got just one reply so far, and even that one's really just about get_maintainers.pl. Disappointing. Looks like we're still looking for an easy technical fix. I doubt there is one.At least for myself, that's because I'm Cc'd directly on the patch but not on the
MAINTAINERScoverage mail.
And that's ... becauseget_maintainerspicks my mail from git?
Quoted 7 lines
Quoted 1 line
See how it's useful now?
Except that's not what happened.
$ scripts/get_maintainer.pl --git-fallback -f scripts/get_maintainer.plNo output. I picked you from git-log manually.
Weird.
It works for me:
./scripts/get_maintainer.pl -f scripts/get_maintainer.pl
"Michael S. Tsirkin" <[email protected]> (commit_signer:1/1=100%)
Maybe --git-fallback is broken?
Another reason to defer this patch ...
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
If you have better ideas on how to mitigate the excessive and useless copying we now see, please post a patch.
We need more maintainers :)
Yes, we do. Until we got them, we need fewer useless copies.
Classical long tail problem. It's hard to get rid of useless copies without getting rid of useful ones :)
Signature · 1 line
MST
Quoted 10 lines · Markus Armbruster
Quoted 8 lines · Paolo Bonzini
Quoted 4 lines · Michael S. Tsirkin
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
I agree with Michael.
Quoted 8 lines
Quoted 3 lines
Can we detect if get_maintainer.pl is invoked as a cccmd, and in this case default to --no-git-fallback? If it is invoked manually, I would like to show the committers (I will then cherry pick the right ones).
I don't like context-sensitive defaults. Too much magic.
What about this: if get_maintainer.pl comes up empty, it points you to --git-fallback.
This is exactly what it's doing now :)
Quoted 7 lines · Markus Armbruster
Quoted 6 lines
Quoted 6 lines
We do have too may files lacking maintainers. See
Subject: MAINTAINERS leaves too many files uncovered Date: Mon, 20 Oct 2014 11:19:44 +0200 Message-ID: <[email protected]> https://lists.nongnu.org/archive/html/qemu-devel/2014-10/msg01951.html
Quoted 7 lines
The message also shows how to list unmaintained files:
$ for i in `git-ls-files`; do [ "`scripts/get_maintainer.pl -f --no-git-fallback $i`" ] || echo $i; doneI didn't include the full list because it's fairly big (~65KiB).
[...]
But first, apply my patch.
Suddently the problem is much smaller.
Signature · 1 line
MST
Quoted 4 lines · Michael S. Tsirkin
Quoted 3 lines · Markus Armbruster
Quoted 1 line · Michael S. Tsirkin
On Tue, Oct 21, 2014 at 02:22:41PM +0200, Markus Armbruster wrote:
[...]
Quoted 16 lines
Quoted 16 lines
Quoted 11 lines
Quoted 5 lines
My patch to get_maintainers.pl triggered a whole thread, while the message I sent on
MAINTAINERScoverage got just one reply so far, and even that one's really just about get_maintainers.pl. Disappointing. Looks like we're still looking for an easy technical fix. I doubt there is one.At least for myself, that's because I'm Cc'd directly on the patch but not on the
MAINTAINERScoverage mail.
And that's ... becauseget_maintainerspicks my mail from git?See how it's useful now?
Except that's not what happened.
$ scripts/get_maintainer.pl --git-fallback -f scripts/get_maintainer.pl
Quoted 8 lines
Quoted 1 line
No output. I picked you from git-log manually.
Weird.
It works for me:
./scripts/get_maintainer.pl-fscripts/get_maintainer.pl
"Michael S. Tsirkin" <[email protected]> (commit_signer:1/1=100%)Maybe --git-fallback is broken?
I tried on master (i.e. without my patch, clean tree, with and without --git-fallback. Just tried it again, same result.
Quoted 1 line
Another reason to defer this patch ...
Can't see why. But I'm content to defer it until the patch traffic triggered by this discussion quiets down, so we can reevaluate.
[...]
Quoted 30 lines · Markus Armbruster
Quoted 4 lines · Michael S. Tsirkin
Quoted 3 lines · Markus Armbruster
Quoted 1 line · Michael S. Tsirkin
On Tue, Oct 21, 2014 at 02:22:41PM +0200, Markus Armbruster wrote:
[...]
Quoted 23 lines
Quoted 10 lines
Quoted 10 lines
Quoted 5 lines
My patch to get_maintainers.pl triggered a whole thread, while the message I sent on
MAINTAINERScoverage got just one reply so far, and even that one's really just about get_maintainers.pl. Disappointing. Looks like we're still looking for an easy technical fix. I doubt there is one.At least for myself, that's because I'm Cc'd directly on the patch but not on the
MAINTAINERScoverage mail.
And that's ... becauseget_maintainerspicks my mail from git?Quoted 7 lines
Quoted 1 line
See how it's useful now?
Except that's not what happened.
$ scripts/get_maintainer.pl --git-fallback -f scripts/get_maintainer.plNo output. I picked you from git-log manually.
Weird.
It works for me:
./scripts/get_maintainer.pl-fscripts/get_maintainer.pl
"Michael S. Tsirkin" <[email protected]> (commit_signer:1/1=100%)
Quoted 4 lines
Quoted 1 line
Maybe --git-fallback is broken?
I tried on master (i.e. without my patch, clean tree, with and without --git-fallback. Just tried it again, same result.
Well ... I don't know why.
It's clearly a bug.
Different perl version? Different git version?
Can you try tracing it?
Does it exec git?
Quoted 3 lines
Quoted 1 line
Another reason to defer this patch ...
Can't see why.
So we can debug and fix --git-fallback.
Quoted 4 lines
But I'm content to defer it until the patch traffic
triggered by this discussion quiets down, so we can reevaluate.[...]
Quoted 15 lines · Michael S. Tsirkin
Quoted 14 lines · Markus Armbruster
Quoted 11 lines · Paolo Bonzini
Quoted 4 lines · Michael S. Tsirkin
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
I agree with Michael.
Can we detect if get_maintainer.pl is invoked as a cccmd, and in this case default to --no-git-fallback? If it is invoked manually, I would like to show the committers (I will then cherry pick the right ones).
Quoted 6 lines
Quoted 4 lines
I don't like context-sensitive defaults. Too much magic.
What about this: if get_maintainer.pl comes up empty, it points you to --git-fallback.
This is exactly what it's doing now :)
Nope. This is what it's doing now:
$ scripts/get_maintainer.pl -f util/cutils.c
Luiz Capitulino <[email protected]> (commit_signer:1/2=50%)
Eric Blake <[email protected]> (commit_signer:1/2=50%)
Alexey Kardashevskiy <[email protected]> (commit_signer:1/2=50%)
Laszlo Ersek <[email protected]> (commit_signer:1/2=50%)
Amit Shah <[email protected]> (commit_signer:1/2=50%)A sufficiently seasoned contributor will spot the "commit_signer" tags, and the output as a hint to find people to copy. In this particular case, he'll recognize the hint is useless. Maybe he'll try something like --git-since 2010 or --git-blame then. I'd just peruse git-log.
A less seasoned contributor will blindly copy all five.
This is what I'm proposing to do:
$ scripts/get_maintainer.pl -f util/cutils.c
No maintainers found.
You may want to try --git-fallback to find recent contributors.
Do not blindly cc: them on patches! Use common sense.Perhaps round off with a link to a Wiki page with additional advice on how to find people to copy.
Quoted 33 lines · Markus Armbruster
Quoted 15 lines · Michael S. Tsirkin
Quoted 14 lines · Markus Armbruster
Quoted 11 lines · Paolo Bonzini
Quoted 4 lines · Michael S. Tsirkin
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
I agree with Michael.
Can we detect if get_maintainer.pl is invoked as a cccmd, and in this case default to --no-git-fallback? If it is invoked manually, I would like to show the committers (I will then cherry pick the right ones).
Quoted 6 lines
Quoted 4 lines
I don't like context-sensitive defaults. Too much magic.
What about this: if get_maintainer.pl comes up empty, it points you to --git-fallback.
This is exactly what it's doing now :)
Nope. This is what it's doing now:
$ scripts/get_maintainer.pl -f util/cutils.c Luiz Capitulino <[email protected]> (commit_signer:1/2=50%) Eric Blake <[email protected]> (commit_signer:1/2=50%) Alexey Kardashevskiy <[email protected]> (commit_signer:1/2=50%) Laszlo Ersek <[email protected]> (commit_signer:1/2=50%) Amit Shah <[email protected]> (commit_signer:1/2=50%)
Quoted 6 lines
A sufficiently seasoned contributor will spot the "
commit_signer" tags, and the output as a hint to find people to copy. In this particular case, he'll recognize the hint is useless. Maybe he'll try something like --git-since 2010 or --git-blame then. I'd just peruse git-log.A less seasoned contributor will blindly copy all five.
I give up. What's the correct answer?
I frankly don't know whom should one copy on this file. Fabrice?
Quoted 9 lines
This is what I'm proposing to do:
$ scripts/get_maintainer.pl -f util/cutils.c No maintainers found. You may want to try --git-fallback to find recent contributors. Do not blindly cc: them on patches! Use common sense.Perhaps round off with a link to a Wiki page with additional advice on how to find people to copy.
Let's start with that wiki page then.
Signature · 1 line
MST
Quoted 12 lines · Michael S. Tsirkin
Quoted 12 lines
$ scripts/get_maintainer.pl -f util/cutils.c Luiz Capitulino <[email protected]> (commit_signer:1/2=50%) Eric Blake <[email protected]> (commit_signer:1/2=50%) Alexey Kardashevskiy <[email protected]> (commit_signer:1/2=50%) Laszlo Ersek <[email protected]> (commit_signer:1/2=50%) Amit Shah <[email protected]> (commit_signer:1/2=50%)A sufficiently seasoned contributor will spot the "
commit_signer" tags, and the output as a hint to find people to copy. In this particular case, he'll recognize the hint is useless. Maybe he'll try something like --git-since 2010 or --git-blame then. I'd just peruse git-log.
Quoted 5 lines
Quoted 1 line
A less seasoned contributor will blindly copy all five.
I give up. What's the correct answer?
I frankly don't know whom should one copy on this file. Fabrice?
Most likely, no one. Just qemu-devel and/or qemu-trivial.
Paolo
Quoted 39 lines · Michael S. Tsirkin
Quoted 38 lines · Markus Armbruster
Quoted 15 lines · Michael S. Tsirkin
Quoted 14 lines · Markus Armbruster
Quoted 11 lines · Paolo Bonzini
Quoted 4 lines · Michael S. Tsirkin
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
I agree with Michael.
Can we detect if get_maintainer.pl is invoked as a cccmd, and in this case default to --no-git-fallback? If it is invoked manually, I would like to show the committers (I will then cherry pick the right ones).
Quoted 6 lines
Quoted 4 lines
I don't like context-sensitive defaults. Too much magic.
What about this: if get_maintainer.pl comes up empty, it points you to --git-fallback.
This is exactly what it's doing now :)
Nope. This is what it's doing now:
$ scripts/get_maintainer.pl -f util/cutils.c Luiz Capitulino <[email protected]> (commit_signer:1/2=50%) Eric Blake <[email protected]> (commit_signer:1/2=50%) Alexey Kardashevskiy <[email protected]> (commit_signer:1/2=50%) Laszlo Ersek <[email protected]> (commit_signer:1/2=50%) Amit Shah <[email protected]> (commit_signer:1/2=50%)A sufficiently seasoned contributor will spot the "
commit_signer" tags, and the output as a hint to find people to copy. In this particular case, he'll recognize the hint is useless. Maybe he'll try something like --git-since 2010 or --git-blame then. I'd just peruse git-log.
Quoted 5 lines
Quoted 1 line
A less seasoned contributor will blindly copy all five.
I give up. What's the correct answer?
I frankly don't know whom should one copy on this file. Fabrice?
Fabrice would be a textbook example of a useless cc.
I'd pick based on the patch's contents. For instance, if it fixes a function that is used by block stuff only, try copying block maintainers. You get the idea. It's an art, not something a dumb script can do.
An inexperienced contributor probably won't be able to find out whom to copy here. Making him send out five mostly useless copies is not a solution.
Don proposed adding a catchall maintainer, and Peter refined it to qemu-unmaintained@... This could serve as a formal cry "I have no idea who could review this, please help me".
[...]
Quoted 36 lines · On Wed, 22 Oct 2014 10:01:43 +0300 "Michael S. Tsirkin" <[email protected]> wrote:
Quoted 30 lines · Markus Armbruster
Quoted 4 lines · Michael S. Tsirkin
Quoted 3 lines · Markus Armbruster
Quoted 1 line · Michael S. Tsirkin
On Tue, Oct 21, 2014 at 02:22:41PM +0200, Markus Armbruster wrote:
[...]
Quoted 23 lines
Quoted 10 lines
Quoted 10 lines
Quoted 5 lines
My patch to get_maintainers.pl triggered a whole thread, while the message I sent on
MAINTAINERScoverage got just one reply so far, and even that one's really just about get_maintainers.pl. Disappointing. Looks like we're still looking for an easy technical fix. I doubt there is one.At least for myself, that's because I'm Cc'd directly on the patch but not on the
MAINTAINERScoverage mail.
And that's ... becauseget_maintainerspicks my mail from git?Quoted 7 lines
Quoted 1 line
See how it's useful now?
Except that's not what happened.
$ scripts/get_maintainer.pl --git-fallback -f scripts/get_maintainer.plNo output. I picked you from git-log manually.
Weird.
It works for me:
./scripts/get_maintainer.pl-fscripts/get_maintainer.pl
"Michael S. Tsirkin" <[email protected]> (commit_signer:1/1=100%)Quoted 4 lines
Quoted 1 line
Maybe --git-fallback is broken?
I tried on master (i.e. without my patch, clean tree, with and without --git-fallback. Just tried it again, same result.
Quoted 6 lines
Well ... I don't know why.
It's clearly a bug.
Different perl version? Different git version?Can you try tracing it?
Does it exec git?
I've got the same behaviour as Markus (i.e. no output), and I think this is due to get_maintainer.pl using $email_git_since = "1-year-ago" ... since there wasn't a commit to that file in the last year, git-log simply does not output any entry at all.
Do you have a non-upstream commit in your git tree that changes that file? That would explain why you get some output here.
Thomas
Quoted 46 lines · Thomas Huth
Quoted 36 lines · On Wed, 22 Oct 2014 10:01:43 +0300 "Michael S. Tsirkin" <[email protected]> wrote:
Quoted 30 lines · Markus Armbruster
Quoted 4 lines · Michael S. Tsirkin
Quoted 3 lines · Markus Armbruster
Quoted 1 line · Michael S. Tsirkin
On Tue, Oct 21, 2014 at 02:22:41PM +0200, Markus Armbruster wrote:
[...]
Quoted 23 lines
Quoted 10 lines
Quoted 10 lines
Quoted 5 lines
My patch to get_maintainers.pl triggered a whole thread, while the message I sent on
MAINTAINERScoverage got just one reply so far, and even that one's really just about get_maintainers.pl. Disappointing. Looks like we're still looking for an easy technical fix. I doubt there is one.At least for myself, that's because I'm Cc'd directly on the patch but not on the
MAINTAINERScoverage mail.
And that's ... becauseget_maintainerspicks my mail from git?Quoted 7 lines
Quoted 1 line
See how it's useful now?
Except that's not what happened.
$ scripts/get_maintainer.pl --git-fallback -f scripts/get_maintainer.plNo output. I picked you from git-log manually.
Weird.
It works for me:
./scripts/get_maintainer.pl-fscripts/get_maintainer.pl
"Michael S. Tsirkin" <[email protected]> (commit_signer:1/1=100%)Quoted 4 lines
Quoted 1 line
Maybe --git-fallback is broken?
I tried on master (i.e. without my patch, clean tree, with and without --git-fallback. Just tried it again, same result.
Quoted 6 lines
Well ... I don't know why.
It's clearly a bug.
Different perl version? Different git version?Can you try tracing it?
Does it exec git?
Quoted 8 lines
I've got the same behaviour as Markus (i.e. no output), and I think this is due to get_maintainer.pl using $email_git_since = "1-year-ago" ... since there wasn't a commit to that file in the last year, git-log simply does not output any entry at all.
Do you have a non-upstream commit in your git tree that changes that file? That would explain why you get some output here.Thomas
Aha. Right. Thanks!
Quoted 49 lines · Markus Armbruster
Quoted 39 lines · Michael S. Tsirkin
Quoted 38 lines · Markus Armbruster
Quoted 15 lines · Michael S. Tsirkin
Quoted 14 lines · Markus Armbruster
Quoted 11 lines · Paolo Bonzini
Quoted 4 lines · Michael S. Tsirkin
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
I agree with Michael.
Can we detect if get_maintainer.pl is invoked as a cccmd, and in this case default to --no-git-fallback? If it is invoked manually, I would like to show the committers (I will then cherry pick the right ones).
Quoted 6 lines
Quoted 4 lines
I don't like context-sensitive defaults. Too much magic.
What about this: if get_maintainer.pl comes up empty, it points you to --git-fallback.
This is exactly what it's doing now :)
Nope. This is what it's doing now:
$ scripts/get_maintainer.pl -f util/cutils.c Luiz Capitulino <[email protected]> (commit_signer:1/2=50%) Eric Blake <[email protected]> (commit_signer:1/2=50%) Alexey Kardashevskiy <[email protected]> (commit_signer:1/2=50%) Laszlo Ersek <[email protected]> (commit_signer:1/2=50%) Amit Shah <[email protected]> (commit_signer:1/2=50%)A sufficiently seasoned contributor will spot the "
commit_signer" tags, and the output as a hint to find people to copy. In this particular case, he'll recognize the hint is useless. Maybe he'll try something like --git-since 2010 or --git-blame then. I'd just peruse git-log.Quoted 5 lines
Quoted 1 line
A less seasoned contributor will blindly copy all five.
I give up. What's the correct answer?
I frankly don't know whom should one copy on this file. Fabrice?Fabrice would be a textbook example of a useless cc.
Quoted 8 lines
I'd pick based on the patch's contents. For instance, if it fixes a function that is used by block stuff only, try copying block maintainers. You get the idea. It's an art, not something a dumb script can do.
An inexperienced contributor probably won't be able to find out whom to copy here. Making him send out five mostly useless copies is not a solution.
Maybe disable fallback just for utils:
+UTIL
+M: [email protected]
+S: Odd Fixes
+F: util/
Quoted 5 lines
Don proposed adding a catchall maintainer, and Peter refined it to qemu-unmaintained@... This could serve as a formal cry "I have no idea who could review this, please help me".
[...]
The list is a good idea. But I'd like a flag to avoid adding that automatically. Call it --expert or whatever. So need to write some code in get_maintainer.
Signature · 1 line
MST
Quoted 59 lines · Michael S. Tsirkin
Quoted 43 lines · Markus Armbruster
Quoted 35 lines · Michael S. Tsirkin
Quoted 34 lines · Markus Armbruster
Quoted 10 lines · Michael S. Tsirkin
Quoted 9 lines · Markus Armbruster
Quoted 7 lines · Paolo Bonzini
Quoted 4 lines · Michael S. Tsirkin
What do you want to happen in this case?
Won't this cause even more patches to fall to the floor?The benefit seems marginal, the risk high.
I agree with Michael.
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Can we detect if get_maintainer.pl is invoked as a cccmd, and in this case default to --no-git-fallback? If it is invoked manually, I would like to show the committers (I will then cherry pick the right ones).
I don't like context-sensitive defaults. Too much magic.
What about this: if get_maintainer.pl comes up empty, it points you to --git-fallback.
This is exactly what it's doing now :)
Nope. This is what it's doing now:
$ scripts/get_maintainer.pl -f util/cutils.c Luiz Capitulino <[email protected]> (commit_signer:1/2=50%) Eric Blake <[email protected]> (commit_signer:1/2=50%) Alexey Kardashevskiy <[email protected]> (commit_signer:1/2=50%) Laszlo Ersek <[email protected]> (commit_signer:1/2=50%) Amit Shah <[email protected]> (commit_signer:1/2=50%)A sufficiently seasoned contributor will spot the "
commit_signer" tags, and the output as a hint to find people to copy. In this particular case, he'll recognize the hint is useless. Maybe he'll try something like --git-since 2010 or --git-blame then. I'd just peruse git-log.Quoted 4 lines
Quoted 1 line
A less seasoned contributor will blindly copy all five.
I give up. What's the correct answer?
I frankly don't know whom should one copy on this file. Fabrice?Fabrice would be a textbook example of a useless cc.
Quoted 8 lines
I'd pick based on the patch's contents. For instance, if it fixes a function that is used by block stuff only, try copying block maintainers. You get the idea. It's an art, not something a dumb script can do.
An inexperienced contributor probably won't be able to find out whom to copy here. Making him send out five mostly useless copies is not a solution.
Maybe disable fallback just for utils:
(quoted diff) +4
-0+UTIL +M: [email protected] +S: Odd Fixes +F: util/
Quoted 9 lines
Quoted 5 lines
Don proposed adding a catchall maintainer, and Peter refined it to qemu-unmaintained@... This could serve as a formal cry "I have no idea who could review this, please help me".
[...]
The list is a good idea. But I'd like a flag to avoid adding that automatically. Call it --expert or whatever. So need to write some code in
get_maintainer.
I.E just what I proposed. Here is an adjusted version. I have not posted it as a patch because the list is missing...
-Don Slutz
From cf608abd785cc55c292215f2b7f18370eaf0969c Mon Sep 17 00:00:00 2001
From: Don Slutz <[email protected]>
Date: Mon, 20 Oct 2014 16:06:35 -0400
Subject: [PATCH] get_maintainer.pl: Add 'THE REST'
For an example of how this might look:
k=50;i=0;for sha in $(git log --no-merges --format=format:"%h" -$k);do
let i=$i+1
git show $sha >/tmp/a
clear
echo $i
head -20 /tmp/a
echo
echo
echo to:
./scripts/get_maintainer.pl --no-git-fallback --no-m /tmp/a echo
echo cc:
./scripts/get_maintainer.pl --no-git-fallback --no-l /tmp/a echo
echo to \(git-fallback\):
./scripts/get_maintainer.pl --git-fallback --no-m /tmp/a echo
echo cc \(git-fallback\):
./scripts/get_maintainer.pl --git-fallback --no-l /tmp/a read foo
done;echo Check $i
--- MAINTAINERS | 9 +++++++++ scripts/get_maintainer.pl | 15 +++++++++++++++ 2 files changed, 24 insertions(+)
MAINTAINERS +9 -0
@@ -1018,3 +1018,12 @@ M: Chrysostomos Nanakos <[email protected]> M: Chrysostomos Nanakos <[email protected]> S: Maintained F: block/archipelago.c + +Everything not covered above +---------------------------- +THE REST +M: [email protected] +L: [email protected] +S: Orphan +F: * +F: */
scripts/get_maintainer.pl +15 -0
@@ -37,6 +37,7 @@ my $email_hg_since = "-365"; my $interactive = 0; my $email_remove_duplicates = 1; my $email_use_mailmap = 1; +my $email_drop_the_rest_orphan_if_supporter_found = 1; my $output_multiline = 1; my $output_separator = ", "; my $output_roles = 0;
@@ -196,6 +197,7 @@ if (!GetOptions( 'i|interactive!' => \$interactive, 'remove-duplicates!' => \$email_remove_duplicates, 'mailmap!' => \$email_use_mailmap, + 'drop_the_rest_orphan!' => \$email_drop_the_rest_orphan_if_supporter_found, 'm!' => \$email_maintainer, 'n!' => \$email_usename, 'l!' => \$email_list,
@@ -647,6 +649,19 @@ sub get_maintainers { } } + if ($email_drop_the_rest_orphan_if_supporter_found && $#email_to > 0) { + my @email_new; + my $do_replace = 0; + foreach my $email (@email_to) { + if ($email->[1] ne 'orphan minder:THE REST') { + $do_replace = 1; + push @email_new, $email; + } + } + @email_to = @email_new + if $do_replace; + } + foreach my $email (@email_to, @list_to) { $email->[0] = deduplicate_email($email->[0]); }
Signature · 1 line
1.8.4