qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Howto: instructing patchew about patch dependency
@ 2017-08-08  2:02 Fam Zheng
  2017-08-08 12:43 ` Peter Maydell
  2017-08-08 14:00 ` Laszlo Ersek
  0 siblings, 2 replies; 5+ messages in thread
From: Fam Zheng @ 2017-08-08  2:02 UTC (permalink / raw)
  To: qemu-devel

Hi, QEMU patch submitters,

I've patched patchew so that if you add a line:

Based-on: $MESSAGE_ID

in your cover letter body, or in a reply to it (or reply to reply), patchew will
try to apply your series on top of the one $MESSAGE_ID refers to, assuming the
base series _was_ successfully applied by patchew earlier.

In the single patch case, you can put the line under the "---" mark in the
commit message (no need to let it enter git history).

For human readability, around the "Based-on:" line it may be better if the
subject is noted. E.g.:

Based-on: 20170804140942.19342-1-famz@redhat.com
([PATCH for-2.10] vmdk: Fix error handling/reporting of vmdk_check)

Please don't join them in one line because it will confuse the parser, after all
following the message id text, there aren't many spaces left.

Fam

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

* Re: [Qemu-devel] Howto: instructing patchew about patch dependency
  2017-08-08  2:02 [Qemu-devel] Howto: instructing patchew about patch dependency Fam Zheng
@ 2017-08-08 12:43 ` Peter Maydell
  2017-08-08 13:59   ` Fam Zheng
  2017-08-08 14:00 ` Laszlo Ersek
  1 sibling, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2017-08-08 12:43 UTC (permalink / raw)
  To: Fam Zheng; +Cc: QEMU Developers

On 8 August 2017 at 03:02, Fam Zheng <famz@redhat.com> wrote:
> Hi, QEMU patch submitters,
>
> I've patched patchew so that if you add a line:
>
> Based-on: $MESSAGE_ID
>
> in your cover letter body, or in a reply to it (or reply to reply), patchew will
> try to apply your series on top of the one $MESSAGE_ID refers to, assuming the
> base series _was_ successfully applied by patchew earlier.
>
> In the single patch case, you can put the line under the "---" mark in the
> commit message (no need to let it enter git history).
>
> For human readability, around the "Based-on:" line it may be better if the
> subject is noted. E.g.:
>
> Based-on: 20170804140942.19342-1-famz@redhat.com

Does the parser accept message-ids with their angle-brackets <>
around them, or does it insist they be stripped out?

thanks
-- PMM

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

* Re: [Qemu-devel] Howto: instructing patchew about patch dependency
  2017-08-08 12:43 ` Peter Maydell
@ 2017-08-08 13:59   ` Fam Zheng
  0 siblings, 0 replies; 5+ messages in thread
From: Fam Zheng @ 2017-08-08 13:59 UTC (permalink / raw)
  To: Peter Maydell; +Cc: QEMU Developers

On Tue, 08/08 13:43, Peter Maydell wrote:
> On 8 August 2017 at 03:02, Fam Zheng <famz@redhat.com> wrote:
> > Hi, QEMU patch submitters,
> >
> > I've patched patchew so that if you add a line:
> >
> > Based-on: $MESSAGE_ID
> >
> > in your cover letter body, or in a reply to it (or reply to reply), patchew will
> > try to apply your series on top of the one $MESSAGE_ID refers to, assuming the
> > base series _was_ successfully applied by patchew earlier.
> >
> > In the single patch case, you can put the line under the "---" mark in the
> > commit message (no need to let it enter git history).
> >
> > For human readability, around the "Based-on:" line it may be better if the
> > subject is noted. E.g.:
> >
> > Based-on: 20170804140942.19342-1-famz@redhat.com
> 
> Does the parser accept message-ids with their angle-brackets <>
> around them, or does it insist they be stripped out?

No. Good point, I've added angle-brackets handling just now.

Fam

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

* Re: [Qemu-devel] Howto: instructing patchew about patch dependency
  2017-08-08  2:02 [Qemu-devel] Howto: instructing patchew about patch dependency Fam Zheng
  2017-08-08 12:43 ` Peter Maydell
@ 2017-08-08 14:00 ` Laszlo Ersek
  2017-08-08 14:12   ` Fam Zheng
  1 sibling, 1 reply; 5+ messages in thread
From: Laszlo Ersek @ 2017-08-08 14:00 UTC (permalink / raw)
  To: Fam Zheng, qemu-devel

On 08/08/17 04:02, Fam Zheng wrote:
> Hi, QEMU patch submitters,
> 
> I've patched patchew so that if you add a line:
> 
> Based-on: $MESSAGE_ID
> 
> in your cover letter body, or in a reply to it (or reply to reply), patchew will
> try to apply your series on top of the one $MESSAGE_ID refers to, assuming the
> base series _was_ successfully applied by patchew earlier.
> 
> In the single patch case, you can put the line under the "---" mark in the
> commit message (no need to let it enter git history).
> 
> For human readability, around the "Based-on:" line it may be better if the
> subject is noted. E.g.:
> 
> Based-on: 20170804140942.19342-1-famz@redhat.com
> ([PATCH for-2.10] vmdk: Fix error handling/reporting of vmdk_check)
> 
> Please don't join them in one line because it will confuse the parser, after all
> following the message id text, there aren't many spaces left.

If the basis is a multi-patch series, should Based-on refer to the msgid
of the last patch in that series, or its blurb? (I guess "refer to
blurb" is more logical, but asking shouldn't hurt.)

Thanks
Laszlo

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

* Re: [Qemu-devel] Howto: instructing patchew about patch dependency
  2017-08-08 14:00 ` Laszlo Ersek
@ 2017-08-08 14:12   ` Fam Zheng
  0 siblings, 0 replies; 5+ messages in thread
From: Fam Zheng @ 2017-08-08 14:12 UTC (permalink / raw)
  To: Laszlo Ersek; +Cc: qemu-devel

On Tue, 08/08 16:00, Laszlo Ersek wrote:
> On 08/08/17 04:02, Fam Zheng wrote:
> > Hi, QEMU patch submitters,
> > 
> > I've patched patchew so that if you add a line:
> > 
> > Based-on: $MESSAGE_ID
> > 
> > in your cover letter body, or in a reply to it (or reply to reply), patchew will
> > try to apply your series on top of the one $MESSAGE_ID refers to, assuming the
> > base series _was_ successfully applied by patchew earlier.
> > 
> > In the single patch case, you can put the line under the "---" mark in the
> > commit message (no need to let it enter git history).
> > 
> > For human readability, around the "Based-on:" line it may be better if the
> > subject is noted. E.g.:
> > 
> > Based-on: 20170804140942.19342-1-famz@redhat.com
> > ([PATCH for-2.10] vmdk: Fix error handling/reporting of vmdk_check)
> > 
> > Please don't join them in one line because it will confuse the parser, after all
> > following the message id text, there aren't many spaces left.
> 
> If the basis is a multi-patch series, should Based-on refer to the msgid
> of the last patch in that series, or its blurb? (I guess "refer to
> blurb" is more logical, but asking shouldn't hurt.)

My bad for not making it clear: patchew identifies patch series by cover letter
message id, so yes, "blurb" is right.

Fam

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

end of thread, other threads:[~2017-08-08 14:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-08  2:02 [Qemu-devel] Howto: instructing patchew about patch dependency Fam Zheng
2017-08-08 12:43 ` Peter Maydell
2017-08-08 13:59   ` Fam Zheng
2017-08-08 14:00 ` Laszlo Ersek
2017-08-08 14:12   ` Fam Zheng

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).