patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH stable-scripts] Add diff-of-diff below backported patch to 2-notice
@ 2018-08-20 18:03 bluca
  2018-08-20 18:28 ` Yongseok Koh
  0 siblings, 1 reply; 3+ messages in thread
From: bluca @ 2018-08-20 18:03 UTC (permalink / raw)
  To: stable; +Cc: yskoh, christian.ehrhardt, ktraynor, Luca Boccassi

From: Luca Boccassi <bluca@debian.org>

We noticed that it's not clear if a patch is cleanly cherry-picked or if
it gets adjusted due to merge conflicts.
This change will add to the backport notice email a diff-of-diffs, and
a note asking the developer/maintainer to review it.
This way it the work we do will be more transparent.

Signed-off-by: Luca Boccassi <bluca@debian.org>
---
 compose-notice | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/compose-notice b/compose-notice
index e5996f4..95260bd 100644
--- a/compose-notice
+++ b/compose-notice
@@ -41,6 +41,10 @@ Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
 It will be pushed if I get no objections before $(date --date="+2 days" "+%D"). So please
 shout if anyone has objections.
 $(cat notice-more 2>/dev/null | grep -v "^#")
+Also note that after the patch there's a diff of the upstream commit vs the patch applied
+to the branch. If the code is different (ie: not only metadata diffs), due for example to
+a change in context or macro names, please double check it.
+
 Thanks.
 
 ${SIGNATURE}
@@ -54,6 +58,19 @@ construct_patch()
 	cat $patch
 }
 
+construct_diff_of_diff()
+{
+	upstream_commit=$(grep "\[ upstream commit " $patch | sed "s/\[ upstream commit \(.*\) \]/\1/")
+	if [ -n "$upstream_commit" ]
+	then
+		echo "---"
+		echo "  Diff of the applied patch vs upstream commit (please double-check if non-empty:"
+		echo "---"
+		$GIT format-patch --stdout -1 $upstream_commit | diff -Naur - $patch
+	fi
+}
+
 construct_header
 construct_notice
 construct_patch
+construct_diff_of_diff
-- 
2.18.0

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

* Re: [dpdk-stable] [PATCH stable-scripts] Add diff-of-diff below backported patch to 2-notice
  2018-08-20 18:03 [dpdk-stable] [PATCH stable-scripts] Add diff-of-diff below backported patch to 2-notice bluca
@ 2018-08-20 18:28 ` Yongseok Koh
  2018-08-22 12:33   ` Christian Ehrhardt
  0 siblings, 1 reply; 3+ messages in thread
From: Yongseok Koh @ 2018-08-20 18:28 UTC (permalink / raw)
  To: bluca; +Cc: stable, christian.ehrhardt, ktraynor


> On Aug 20, 2018, at 11:03 AM, bluca@debian.org wrote:
> 
> From: Luca Boccassi <bluca@debian.org>
> 
> We noticed that it's not clear if a patch is cleanly cherry-picked or if
> it gets adjusted due to merge conflicts.
> This change will add to the backport notice email a diff-of-diffs, and
> a note asking the developer/maintainer to review it.
> This way it the work we do will be more transparent.
> 
> Signed-off-by: Luca Boccassi <bluca@debian.org>
> ---

Terrific!

Acked-by: Yongseok Koh <yskoh@mellanox.com>
 
Thanks

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

* Re: [dpdk-stable] [PATCH stable-scripts] Add diff-of-diff below backported patch to 2-notice
  2018-08-20 18:28 ` Yongseok Koh
@ 2018-08-22 12:33   ` Christian Ehrhardt
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Ehrhardt @ 2018-08-22 12:33 UTC (permalink / raw)
  To: yskoh; +Cc: Luca Boccassi, stable, Kevin Traynor

On Mon, Aug 20, 2018 at 8:28 PM Yongseok Koh <yskoh@mellanox.com> wrote:

>
> > On Aug 20, 2018, at 11:03 AM, bluca@debian.org wrote:
> >
> > From: Luca Boccassi <bluca@debian.org>
> >
> > We noticed that it's not clear if a patch is cleanly cherry-picked or if
> > it gets adjusted due to merge conflicts.
> > This change will add to the backport notice email a diff-of-diffs, and
> > a note asking the developer/maintainer to review it.
> > This way it the work we do will be more transparent.
> >
> > Signed-off-by: Luca Boccassi <bluca@debian.org>
> > ---
>
> Terrific!
>
> Acked-by: Yongseok Koh <yskoh@mellanox.com>
>

After our discussion that turns out less code than I was expecting.
Even better !
And certainly very useful - thanks!

Acked-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

Thanks
>


-- 
Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd

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

end of thread, other threads:[~2018-08-22 12:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-20 18:03 [dpdk-stable] [PATCH stable-scripts] Add diff-of-diff below backported patch to 2-notice bluca
2018-08-20 18:28 ` Yongseok Koh
2018-08-22 12:33   ` Christian Ehrhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).