Skip to contentSkip to conversation

Howto: instructing patchew about patch dependency

Qemu-devel Fam Zheng 3 participants 5 messages Aug 8, 2017

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

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: [email protected]
([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

#1 lore raw
Quoted 10 lines · Fam Zheng

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.

Quoted 7 lines

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: [email protected]

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

thanks
-- PMM

author
#2 lore raw
Quoted 14 lines · Peter Maydell
Quoted 13 lines · Fam Zheng

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

Quoted 7 lines
Quoted 4 lines

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

Based-on: [email protected]

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

#3 lore raw
In reply to Fam Zheng
Quoted 13 lines · Fam Zheng

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

Quoted 8 lines

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

Based-on: [email protected]
([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

author
#4 lore raw
Quoted 20 lines · Laszlo Ersek
Quoted 19 lines · Fam Zheng

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: [email protected]
([PATCH for-2.10] vmdk: Fix error handling/reporting of vmdk_check)

Quoted 6 lines
Quoted 2 lines

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