All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] get_maintainer: Improve patch recognition
@ 2019-05-29 11:35 ` Volodymyr Babchuk
  0 siblings, 0 replies; 8+ messages in thread
From: Volodymyr Babchuk @ 2019-05-29 11:35 UTC (permalink / raw)
  To: xen-devel@lists.xenproject.org
  Cc: Stefano Stabellini, Wei Liu, Konrad Rzeszutek Wilk, George Dunlap,
	Andrew Cooper, Ian Jackson, Tim Deegan, Julien Grall, Jan Beulich,
	Heinrich Schuchardt, Joe Perches, Volodymyr Babchuk

From: Joe Perches <joe@perches.com>

From: Joe Perches <joe@perches.com>

There are mode change and rename only patches that are unrecognized
by the get_maintainer.pl script.

Recognize them.

Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
CC: Julien Grall <julien.grall@arm.com>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
---
 scripts/get_maintainer.pl | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index d528da738c..174dfb7e40 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -445,7 +445,18 @@ foreach my $file (@ARGV) {
 
 	while (<$patch>) {
 	    my $patch_line = $_;
-	    if (m/^\+\+\+\s+(\S+)/ or m/^---\s+(\S+)/) {
+	    if (m/^ mode change [0-7]+ => [0-7]+ (\S+)\s*$/) {
+		my $filename = $1;
+		push(@files, $filename);
+	    } elsif (m/^rename (?:from|to) (\S+)\s*$/) {
+		my $filename = $1;
+		push(@files, $filename);
+	    } elsif (m/^diff --git a\/(\S+) b\/(\S+)\s*$/) {
+		my $filename1 = $1;
+		my $filename2 = $2;
+		push(@files, $filename1);
+		push(@files, $filename2);
+	    } elsif (m/^\+\+\+\s+(\S+)/ or m/^---\s+(\S+)/) {
 		my $filename = $1;
 		if ($1 ne "/dev/null") { #Ignore the no-file placeholder
 		    $filename =~ s@^[^/]*/@@;
-- 
2.21.0

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Xen-devel] [PATCH] get_maintainer: Improve patch recognition
@ 2019-05-29 11:35 ` Volodymyr Babchuk
  0 siblings, 0 replies; 8+ messages in thread
From: Volodymyr Babchuk @ 2019-05-29 11:35 UTC (permalink / raw)
  To: xen-devel@lists.xenproject.org
  Cc: Stefano Stabellini, Wei Liu, Konrad Rzeszutek Wilk, George Dunlap,
	Andrew Cooper, Ian Jackson, Tim Deegan, Julien Grall, Jan Beulich,
	Heinrich Schuchardt, Joe Perches, Volodymyr Babchuk

From: Joe Perches <joe@perches.com>

From: Joe Perches <joe@perches.com>

There are mode change and rename only patches that are unrecognized
by the get_maintainer.pl script.

Recognize them.

Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
CC: Julien Grall <julien.grall@arm.com>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
---
 scripts/get_maintainer.pl | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index d528da738c..174dfb7e40 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -445,7 +445,18 @@ foreach my $file (@ARGV) {
 
 	while (<$patch>) {
 	    my $patch_line = $_;
-	    if (m/^\+\+\+\s+(\S+)/ or m/^---\s+(\S+)/) {
+	    if (m/^ mode change [0-7]+ => [0-7]+ (\S+)\s*$/) {
+		my $filename = $1;
+		push(@files, $filename);
+	    } elsif (m/^rename (?:from|to) (\S+)\s*$/) {
+		my $filename = $1;
+		push(@files, $filename);
+	    } elsif (m/^diff --git a\/(\S+) b\/(\S+)\s*$/) {
+		my $filename1 = $1;
+		my $filename2 = $2;
+		push(@files, $filename1);
+		push(@files, $filename2);
+	    } elsif (m/^\+\+\+\s+(\S+)/ or m/^---\s+(\S+)/) {
 		my $filename = $1;
 		if ($1 ne "/dev/null") { #Ignore the no-file placeholder
 		    $filename =~ s@^[^/]*/@@;
-- 
2.21.0

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] get_maintainer: Improve patch recognition
@ 2019-05-29 11:46   ` Jan Beulich
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Beulich @ 2019-05-29 11:46 UTC (permalink / raw)
  To: Volodymyr Babchuk
  Cc: Stefano Stabellini, WeiLiu, Konrad Rzeszutek Wilk, George Dunlap,
	Andrew Cooper, Ian Jackson, Tim Deegan, Julien Grall, xypron.glpk,
	joe, xen-devel

>>> On 29.05.19 at 13:35, <Volodymyr_Babchuk@epam.com> wrote:
> From: Joe Perches <joe@perches.com>
> 
> From: Joe Perches <joe@perches.com>
> 
> There are mode change and rename only patches that are unrecognized
> by the get_maintainer.pl script.
> 
> Recognize them.
> 
> Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> CC: Julien Grall <julien.grall@arm.com>
> Signed-off-by: Joe Perches <joe@perches.com>
> Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>

Mentioning the original Linux commit ID would have been nice.

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Xen-devel] [PATCH] get_maintainer: Improve patch recognition
@ 2019-05-29 11:46   ` Jan Beulich
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Beulich @ 2019-05-29 11:46 UTC (permalink / raw)
  To: Volodymyr Babchuk
  Cc: Stefano Stabellini, WeiLiu, Konrad Rzeszutek Wilk, George Dunlap,
	Andrew Cooper, Ian Jackson, Tim Deegan, Julien Grall, xypron.glpk,
	joe, xen-devel

>>> On 29.05.19 at 13:35, <Volodymyr_Babchuk@epam.com> wrote:
> From: Joe Perches <joe@perches.com>
> 
> From: Joe Perches <joe@perches.com>
> 
> There are mode change and rename only patches that are unrecognized
> by the get_maintainer.pl script.
> 
> Recognize them.
> 
> Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> CC: Julien Grall <julien.grall@arm.com>
> Signed-off-by: Joe Perches <joe@perches.com>
> Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>

Mentioning the original Linux commit ID would have been nice.

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] get_maintainer: Improve patch recognition
@ 2019-05-29 11:52     ` Volodymyr Babchuk
  0 siblings, 0 replies; 8+ messages in thread
From: Volodymyr Babchuk @ 2019-05-29 11:52 UTC (permalink / raw)
  To: Jan Beulich
  Cc: Stefano Stabellini, WeiLiu, Konrad Rzeszutek Wilk, George Dunlap,
	Andrew Cooper, Ian Jackson, Tim Deegan, Julien Grall,
	xypron.glpk@gmx.de, joe@perches.com, xen-devel, Volodymyr Babchuk


Hi Jan,

Jan Beulich writes:

>>>> On 29.05.19 at 13:35, <Volodymyr_Babchuk@epam.com> wrote:
>> From: Joe Perches <joe@perches.com>
>> 
>> From: Joe Perches <joe@perches.com>
>> 
>> There are mode change and rename only patches that are unrecognized
>> by the get_maintainer.pl script.
>> 
>> Recognize them.
>>

 [ Upstream commit 0455c74788fd5aad4399f00e3fbbb7e87450ca58 ]

>> Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>> CC: Julien Grall <julien.grall@arm.com>
>> Signed-off-by: Joe Perches <joe@perches.com>
>> Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
>
> Mentioning the original Linux commit ID would have been nice.
Oh, thank you. This is the first time I'm porting the patch from
the other tree.

-- 
Best regards,Volodymyr Babchuk
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Xen-devel] [PATCH] get_maintainer: Improve patch recognition
@ 2019-05-29 11:52     ` Volodymyr Babchuk
  0 siblings, 0 replies; 8+ messages in thread
From: Volodymyr Babchuk @ 2019-05-29 11:52 UTC (permalink / raw)
  To: Jan Beulich
  Cc: Stefano Stabellini, WeiLiu, Konrad Rzeszutek Wilk, George Dunlap,
	Andrew Cooper, Ian Jackson, Tim Deegan, Julien Grall,
	xypron.glpk@gmx.de, joe@perches.com, xen-devel, Volodymyr Babchuk


Hi Jan,

Jan Beulich writes:

>>>> On 29.05.19 at 13:35, <Volodymyr_Babchuk@epam.com> wrote:
>> From: Joe Perches <joe@perches.com>
>> 
>> From: Joe Perches <joe@perches.com>
>> 
>> There are mode change and rename only patches that are unrecognized
>> by the get_maintainer.pl script.
>> 
>> Recognize them.
>>

 [ Upstream commit 0455c74788fd5aad4399f00e3fbbb7e87450ca58 ]

>> Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>> CC: Julien Grall <julien.grall@arm.com>
>> Signed-off-by: Joe Perches <joe@perches.com>
>> Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
>
> Mentioning the original Linux commit ID would have been nice.
Oh, thank you. This is the first time I'm porting the patch from
the other tree.

-- 
Best regards,Volodymyr Babchuk
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] get_maintainer: Improve patch recognition
@ 2019-05-29 12:03       ` Jan Beulich
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Beulich @ 2019-05-29 12:03 UTC (permalink / raw)
  To: Volodymyr Babchuk
  Cc: Stefano Stabellini, WeiLiu, Konrad Rzeszutek Wilk, George Dunlap,
	Andrew Cooper, Ian Jackson, Tim Deegan, Julien Grall, xypron.glpk,
	joe, xen-devel

>>> On 29.05.19 at 13:52, <Volodymyr_Babchuk@epam.com> wrote:
> Jan Beulich writes:
>>>>> On 29.05.19 at 13:35, <Volodymyr_Babchuk@epam.com> wrote:
>>> From: Joe Perches <joe@perches.com>
>>> 
>>> From: Joe Perches <joe@perches.com>
>>> 
>>> There are mode change and rename only patches that are unrecognized
>>> by the get_maintainer.pl script.
>>> 
>>> Recognize them.
>>>
> 
>  [ Upstream commit 0455c74788fd5aad4399f00e3fbbb7e87450ca58 ]

s/Upstream/Linux/, but thanks.

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Xen-devel] [PATCH] get_maintainer: Improve patch recognition
@ 2019-05-29 12:03       ` Jan Beulich
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Beulich @ 2019-05-29 12:03 UTC (permalink / raw)
  To: Volodymyr Babchuk
  Cc: Stefano Stabellini, WeiLiu, Konrad Rzeszutek Wilk, George Dunlap,
	Andrew Cooper, Ian Jackson, Tim Deegan, Julien Grall, xypron.glpk,
	joe, xen-devel

>>> On 29.05.19 at 13:52, <Volodymyr_Babchuk@epam.com> wrote:
> Jan Beulich writes:
>>>>> On 29.05.19 at 13:35, <Volodymyr_Babchuk@epam.com> wrote:
>>> From: Joe Perches <joe@perches.com>
>>> 
>>> From: Joe Perches <joe@perches.com>
>>> 
>>> There are mode change and rename only patches that are unrecognized
>>> by the get_maintainer.pl script.
>>> 
>>> Recognize them.
>>>
> 
>  [ Upstream commit 0455c74788fd5aad4399f00e3fbbb7e87450ca58 ]

s/Upstream/Linux/, but thanks.

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-05-29 12:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-29 11:35 [PATCH] get_maintainer: Improve patch recognition Volodymyr Babchuk
2019-05-29 11:35 ` [Xen-devel] " Volodymyr Babchuk
2019-05-29 11:46 ` Jan Beulich
2019-05-29 11:46   ` [Xen-devel] " Jan Beulich
2019-05-29 11:52   ` Volodymyr Babchuk
2019-05-29 11:52     ` [Xen-devel] " Volodymyr Babchuk
2019-05-29 12:03     ` Jan Beulich
2019-05-29 12:03       ` [Xen-devel] " Jan Beulich

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.