* [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
@ 2013-05-02 13:51 Michael S. Tsirkin
2013-05-02 14:09 ` Peter Maydell
` (2 more replies)
0 siblings, 3 replies; 21+ messages in thread
From: Michael S. Tsirkin @ 2013-05-02 13:51 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel
Anthony, can we please make it a rule that
all patches in pull request are tagged specially?
As it is, patchwork is full of patches that were already reviewed and
merged, all my scripts that were filtering and sorting patches are also
useless, and I get to wade through each patch for the second time.
Maybe you could teach your scripts to ignore [PULL X/Y] where X>0?
This way people could tag all resent patches
as PULL.
Further,
PULL 0/2
PULL 1/2
PULL 2/2
aligns better than
PULL 0/2
PATCH 1/2
PATCH 2/2
On Thu, May 02, 2013 at 03:35:34PM +0200, Andreas Färber wrote:
> From: "Michael S. Tsirkin" <mst@redhat.com>
>
> Wrapper to avoid open-coded loops and to make CPUState iteration
> independent of CPUArchState.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> Signed-off-by: Igor Mammedov <imammedo@redhat.com>
> Signed-off-by: Andreas Färber <afaerber@suse.de>
> ---
> exec.c | 10 ++++++++++
> include/qom/cpu.h | 9 +++++++++
> 2 files changed, 19 insertions(+)
>
> diff --git a/exec.c b/exec.c
> index fa1e0c3..19725db 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -265,6 +265,16 @@ CPUState *qemu_get_cpu(int index)
> return env ? cpu : NULL;
> }
>
> +void qemu_for_each_cpu(void (*func)(CPUState *cpu, void *data), void *data)
> +{
> + CPUArchState *env = first_cpu;
> +
> + while (env) {
> + func(ENV_GET_CPU(env), data);
> + env = env->next_cpu;
> + }
> +}
> +
> void cpu_exec_init(CPUArchState *env)
> {
> CPUState *cpu = ENV_GET_CPU(env);
> diff --git a/include/qom/cpu.h b/include/qom/cpu.h
> index 1b4de17..a28e5ff 100644
> --- a/include/qom/cpu.h
> +++ b/include/qom/cpu.h
> @@ -216,6 +216,15 @@ bool cpu_is_stopped(CPUState *cpu);
> void run_on_cpu(CPUState *cpu, void (*func)(void *data), void *data);
>
> /**
> + * qemu_for_each_cpu:
> + * @func: The function to be executed.
> + * @data: Data to pass to the function.
> + *
> + * Executes @func for each CPU.
> + */
> +void qemu_for_each_cpu(void (*func)(CPUState *cpu, void *data), void *data);
> +
> +/**
> * qemu_get_cpu:
> * @index: The CPUState@cpu_index value of the CPU to obtain.
> *
> --
> 1.8.1.4
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 13:51 [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu()) Michael S. Tsirkin
@ 2013-05-02 14:09 ` Peter Maydell
2013-05-02 14:17 ` Michael S. Tsirkin
2013-05-02 18:15 ` Anthony Liguori
2013-05-02 15:01 ` Stefan Hajnoczi
2013-05-02 15:30 ` Paolo Bonzini
2 siblings, 2 replies; 21+ messages in thread
From: Peter Maydell @ 2013-05-02 14:09 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: qemu-devel, Anthony Liguori
On 2 May 2013 14:51, Michael S. Tsirkin <mst@redhat.com> wrote:
> As it is, patchwork is full of patches that were already reviewed and
> merged, all my scripts that were filtering and sorting patches are also
> useless, and I get to wade through each patch for the second time.
You need to fix patchwork to have some conception of a
patch series. Then you can just select the whole series
which is the pull request and say "ignore this" and you're
done. Any patch-handling tool that doesn't let you operate
at the level of a complete series is always going to mean
you're doing huge amounts of busywork sometimes.
I don't particularly object to suggesting that pullreq
patches are all tagged 'PULL'; I don't think it's very
likely that you'll get 100% consistency out of everybody
though.
-- PMM
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 14:09 ` Peter Maydell
@ 2013-05-02 14:17 ` Michael S. Tsirkin
2013-05-02 14:21 ` Peter Maydell
2013-05-02 18:15 ` Anthony Liguori
1 sibling, 1 reply; 21+ messages in thread
From: Michael S. Tsirkin @ 2013-05-02 14:17 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-devel, Anthony Liguori
On Thu, May 02, 2013 at 03:09:04PM +0100, Peter Maydell wrote:
> On 2 May 2013 14:51, Michael S. Tsirkin <mst@redhat.com> wrote:
> > As it is, patchwork is full of patches that were already reviewed and
> > merged, all my scripts that were filtering and sorting patches are also
> > useless, and I get to wade through each patch for the second time.
>
> You need to fix patchwork to have some conception of a
> patch series. Then you can just select the whole series
> which is the pull request and say "ignore this" and you're
> done. Any patch-handling tool that doesn't let you operate
> at the level of a complete series is always going to mean
> you're doing huge amounts of busywork sometimes.
Sometimes I'm Cc'd on 1 patch out of series.
I might not want to go dig out the series only
to check if it actually needs review.
> I don't particularly object to suggesting that pullreq
> patches are all tagged 'PULL'; I don't think it's very
> likely that you'll get 100% consistency out of everybody
> though.
>
> -- PMM
As there's one person that does the merges, it's pretty
easy to get consistency. If you are not
sending a patch for review it's just wrong to say PATCH
in a subject. Or should I now ignore everything that
doesn't explicitly say [PATCH pleasereview] ?
--
MST
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 14:17 ` Michael S. Tsirkin
@ 2013-05-02 14:21 ` Peter Maydell
2013-05-02 14:22 ` Michael S. Tsirkin
2013-05-02 14:46 ` Gerd Hoffmann
0 siblings, 2 replies; 21+ messages in thread
From: Peter Maydell @ 2013-05-02 14:21 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: qemu-devel, Anthony Liguori
On 2 May 2013 15:17, Michael S. Tsirkin <mst@redhat.com> wrote:
> On Thu, May 02, 2013 at 03:09:04PM +0100, Peter Maydell wrote:
> Sometimes I'm Cc'd on 1 patch out of series.
> I might not want to go dig out the series only
> to check if it actually needs review.
I think cc'ing somebody on half a pullrequest or series is
a bit odd, personally.
>> I don't particularly object to suggesting that pullreq
>> patches are all tagged 'PULL'; I don't think it's very
>> likely that you'll get 100% consistency out of everybody
>> though.
> As there's one person that does the merges, it's pretty
> easy to get consistency.
Every submaintainer sends pullrequests, so there's a
relatively large body of people sending these emails.
-- PMM
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 14:21 ` Peter Maydell
@ 2013-05-02 14:22 ` Michael S. Tsirkin
2013-05-02 14:46 ` Gerd Hoffmann
1 sibling, 0 replies; 21+ messages in thread
From: Michael S. Tsirkin @ 2013-05-02 14:22 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-devel, Anthony Liguori
On Thu, May 02, 2013 at 03:21:14PM +0100, Peter Maydell wrote:
> On 2 May 2013 15:17, Michael S. Tsirkin <mst@redhat.com> wrote:
> > On Thu, May 02, 2013 at 03:09:04PM +0100, Peter Maydell wrote:
>
> > Sometimes I'm Cc'd on 1 patch out of series.
> > I might not want to go dig out the series only
> > to check if it actually needs review.
>
> I think cc'ing somebody on half a pullrequest or series is
> a bit odd, personally.
>
> >> I don't particularly object to suggesting that pullreq
> >> patches are all tagged 'PULL'; I don't think it's very
> >> likely that you'll get 100% consistency out of everybody
> >> though.
>
> > As there's one person that does the merges, it's pretty
> > easy to get consistency.
>
> Every submaintainer sends pullrequests, so there's a
> relatively large body of people sending these emails.
>
> -- PMM
Well everyone used to send requests without patches.
We managed to change that we can change the format too :)
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 14:21 ` Peter Maydell
2013-05-02 14:22 ` Michael S. Tsirkin
@ 2013-05-02 14:46 ` Gerd Hoffmann
2013-05-02 14:57 ` Peter Maydell
1 sibling, 1 reply; 21+ messages in thread
From: Gerd Hoffmann @ 2013-05-02 14:46 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-devel, Anthony Liguori, Michael S. Tsirkin
On 05/02/13 16:21, Peter Maydell wrote:
> On 2 May 2013 15:17, Michael S. Tsirkin <mst@redhat.com> wrote:
>> On Thu, May 02, 2013 at 03:09:04PM +0100, Peter Maydell wrote:
>
>> Sometimes I'm Cc'd on 1 patch out of series.
>> I might not want to go dig out the series only
>> to check if it actually needs review.
>
> I think cc'ing somebody on half a pullrequest or series is
> a bit odd, personally.
Not uncommon if you do this ...
[sendemail]
to = qemu-devel@nongnu.org
cccmd = scripts/get_maintainer.pl --nogit-fallback
... in .git/config.
cheers,
Gerd
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 14:46 ` Gerd Hoffmann
@ 2013-05-02 14:57 ` Peter Maydell
2013-05-02 15:59 ` Andreas Färber
0 siblings, 1 reply; 21+ messages in thread
From: Peter Maydell @ 2013-05-02 14:57 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: qemu-devel, Anthony Liguori, Michael S. Tsirkin
On 2 May 2013 15:46, Gerd Hoffmann <kraxel@redhat.com> wrote:
> On 05/02/13 16:21, Peter Maydell wrote:
>> I think cc'ing somebody on half a pullrequest or series is
>> a bit odd, personally.
>
> Not uncommon if you do this ...
>
> [sendemail]
> to = qemu-devel@nongnu.org
> cccmd = scripts/get_maintainer.pl --nogit-fallback
Wow, you trust get_maintainer.pl that much? IME it
tends to give a huge pile of useless cc suggestions.
-- PMM
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 14:57 ` Peter Maydell
@ 2013-05-02 15:59 ` Andreas Färber
2013-05-02 16:08 ` Peter Maydell
0 siblings, 1 reply; 21+ messages in thread
From: Andreas Färber @ 2013-05-02 15:59 UTC (permalink / raw)
To: Peter Maydell
Cc: Michael S. Tsirkin, Gerd Hoffmann, Anthony Liguori, qemu-devel
Am 02.05.2013 16:57, schrieb Peter Maydell:
> On 2 May 2013 15:46, Gerd Hoffmann <kraxel@redhat.com> wrote:
>> On 05/02/13 16:21, Peter Maydell wrote:
>>> I think cc'ing somebody on half a pullrequest or series is
>>> a bit odd, personally.
>>
>> Not uncommon if you do this ...
>>
>> [sendemail]
>> to = qemu-devel@nongnu.org
>> cccmd = scripts/get_maintainer.pl --nogit-fallback
>
> Wow, you trust get_maintainer.pl that much? IME it
> tends to give a huge pile of useless cc suggestions.
Useless? It's based on MAINTAINERS, which I expect maintainers to keep
up-to-date if they no longer want to maintain something. It's rather
that new files don't get entries and thus too few CCs at times IME.
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 15:59 ` Andreas Färber
@ 2013-05-02 16:08 ` Peter Maydell
2013-05-02 16:11 ` Michael S. Tsirkin
2013-05-02 17:09 ` Andreas Färber
0 siblings, 2 replies; 21+ messages in thread
From: Peter Maydell @ 2013-05-02 16:08 UTC (permalink / raw)
To: Andreas Färber
Cc: Michael S. Tsirkin, Gerd Hoffmann, Anthony Liguori, qemu-devel
On 2 May 2013 16:59, Andreas Färber <afaerber@suse.de> wrote:
> Am 02.05.2013 16:57, schrieb Peter Maydell:
>> Wow, you trust get_maintainer.pl that much? IME it
>> tends to give a huge pile of useless cc suggestions.
>
> Useless? It's based on MAINTAINERS, which I expect maintainers to keep
> up-to-date if they no longer want to maintain something. It's rather
> that new files don't get entries and thus too few CCs at times IME.
The ccs based on MAINTAINERS are fine -- it's the random
extras it picks based on other people who've made patches
to the same files in the past that are usually wrong.
For example I tried running it on a patch to MAINTAINERS
itself, and it suggested ccing you, Alex, Stefan H,
Peter Crosthwaite and Edgar, which is a random mishmash
and doesn't include the key person you actually need
to CC, ie Anthony.
The actual rule as far as I can tell for CCs is "if
file is explicitly listed in MAINTAINERS, cc those people;
otherwise CC either Blue and Aurelien [if a random
target-* patch] or Anthony [everything else]; cc trivial
if sufficiently small; also for bugfixes CC whoever wrote
the commit you're fixing". get_maintainer.pl doesn't do
that, so I just write CCs manually.
thanks
-- PMM
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 16:08 ` Peter Maydell
@ 2013-05-02 16:11 ` Michael S. Tsirkin
2013-05-02 17:09 ` Andreas Färber
1 sibling, 0 replies; 21+ messages in thread
From: Michael S. Tsirkin @ 2013-05-02 16:11 UTC (permalink / raw)
To: Peter Maydell
Cc: qemu-devel, Andreas Färber, Anthony Liguori, Gerd Hoffmann
On Thu, May 02, 2013 at 05:08:06PM +0100, Peter Maydell wrote:
> On 2 May 2013 16:59, Andreas Färber <afaerber@suse.de> wrote:
> > Am 02.05.2013 16:57, schrieb Peter Maydell:
> >> Wow, you trust get_maintainer.pl that much? IME it
> >> tends to give a huge pile of useless cc suggestions.
> >
> > Useless? It's based on MAINTAINERS, which I expect maintainers to keep
> > up-to-date if they no longer want to maintain something. It's rather
> > that new files don't get entries and thus too few CCs at times IME.
>
> The ccs based on MAINTAINERS are fine -- it's the random
> extras it picks based on other people who've made patches
> to the same files in the past that are usually wrong.
Just add --nogit then?
> For example I tried running it on a patch to MAINTAINERS
> itself, and it suggested ccing you, Alex, Stefan H,
> Peter Crosthwaite and Edgar, which is a random mishmash
> and doesn't include the key person you actually need
> to CC, ie Anthony.
>
> The actual rule as far as I can tell for CCs is "if
> file is explicitly listed in MAINTAINERS, cc those people;
> otherwise CC either Blue and Aurelien [if a random
> target-* patch] or Anthony [everything else]; cc trivial
> if sufficiently small; also for bugfixes CC whoever wrote
> the commit you're fixing". get_maintainer.pl doesn't do
> that, so I just write CCs manually.
>
> thanks
> -- PMM
You could also try to make get_maintainer.pl do what you want.
Well maybe beside trivial.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 16:08 ` Peter Maydell
2013-05-02 16:11 ` Michael S. Tsirkin
@ 2013-05-02 17:09 ` Andreas Färber
1 sibling, 0 replies; 21+ messages in thread
From: Andreas Färber @ 2013-05-02 17:09 UTC (permalink / raw)
To: Peter Maydell
Cc: Michael S. Tsirkin, Gerd Hoffmann, Anthony Liguori, qemu-devel
Am 02.05.2013 18:08, schrieb Peter Maydell:
> On 2 May 2013 16:59, Andreas Färber <afaerber@suse.de> wrote:
>> Am 02.05.2013 16:57, schrieb Peter Maydell:
>>> Wow, you trust get_maintainer.pl that much? IME it
>>> tends to give a huge pile of useless cc suggestions.
>>
>> Useless? It's based on MAINTAINERS, which I expect maintainers to keep
>> up-to-date if they no longer want to maintain something. It's rather
>> that new files don't get entries and thus too few CCs at times IME.
>
> The ccs based on MAINTAINERS are fine -- it's the random
> extras it picks based on other people who've made patches
> to the same files in the past that are usually wrong.
> For example I tried running it on a patch to MAINTAINERS
> itself, and it suggested ccing you, Alex, Stefan H,
> Peter Crosthwaite and Edgar, which is a random mishmash
> and doesn't include the key person you actually need
> to CC, ie Anthony.
That's why Gerd correctly wrote scripts/get_maintainer.pl
--nogit-fallback - it doesn't do what you claim, although the default does.
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 14:09 ` Peter Maydell
2013-05-02 14:17 ` Michael S. Tsirkin
@ 2013-05-02 18:15 ` Anthony Liguori
1 sibling, 0 replies; 21+ messages in thread
From: Anthony Liguori @ 2013-05-02 18:15 UTC (permalink / raw)
To: Peter Maydell, Michael S. Tsirkin; +Cc: qemu-devel
Peter Maydell <peter.maydell@linaro.org> writes:
> On 2 May 2013 14:51, Michael S. Tsirkin <mst@redhat.com> wrote:
>> As it is, patchwork is full of patches that were already reviewed and
>> merged, all my scripts that were filtering and sorting patches are also
>> useless, and I get to wade through each patch for the second time.
>
> You need to fix patchwork to have some conception of a
> patch series. Then you can just select the whole series
> which is the pull request and say "ignore this" and you're
> done. Any patch-handling tool that doesn't let you operate
> at the level of a complete series is always going to mean
> you're doing huge amounts of busywork sometimes.
patches solves this problem. It just requires someone to write a bridge
that updates patchwork based on the information that patches mines.
> I don't particularly object to suggesting that pullreq
> patches are all tagged 'PULL'; I don't think it's very
> likely that you'll get 100% consistency out of everybody
> though.
Ack.
Regards,
Anthony Liguori
>
> -- PMM
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 13:51 [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu()) Michael S. Tsirkin
2013-05-02 14:09 ` Peter Maydell
@ 2013-05-02 15:01 ` Stefan Hajnoczi
2013-05-02 15:30 ` Paolo Bonzini
2 siblings, 0 replies; 21+ messages in thread
From: Stefan Hajnoczi @ 2013-05-02 15:01 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: qemu-devel, Anthony Liguori
On Thu, May 02, 2013 at 04:51:43PM +0300, Michael S. Tsirkin wrote:
> Anthony, can we please make it a rule that
> all patches in pull request are tagged specially?
>
> As it is, patchwork is full of patches that were already reviewed and
> merged, all my scripts that were filtering and sorting patches are also
> useless, and I get to wade through each patch for the second time.
>
> Maybe you could teach your scripts to ignore [PULL X/Y] where X>0?
>
> This way people could tag all resent patches
> as PULL.
>
> Further,
> PULL 0/2
> PULL 1/2
> PULL 2/2
>
> aligns better than
>
> PULL 0/2
> PATCH 1/2
> PATCH 2/2
Seems like a nice idea. I'm also occassionally hit by a stray PATCH
email that's actually part of a larger pull request.
Stefan
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 13:51 [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu()) Michael S. Tsirkin
2013-05-02 14:09 ` Peter Maydell
2013-05-02 15:01 ` Stefan Hajnoczi
@ 2013-05-02 15:30 ` Paolo Bonzini
2013-05-02 15:33 ` Peter Maydell
2 siblings, 1 reply; 21+ messages in thread
From: Paolo Bonzini @ 2013-05-02 15:30 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: qemu-devel, Anthony Liguori
Il 02/05/2013 15:51, Michael S. Tsirkin ha scritto:
> Anthony, can we please make it a rule that
> all patches in pull request are tagged specially?
>
> As it is, patchwork is full of patches that were already reviewed and
> merged, all my scripts that were filtering and sorting patches are also
> useless, and I get to wade through each patch for the second time.
>
> Maybe you could teach your scripts to ignore [PULL X/Y] where X>0?
>
> This way people could tag all resent patches
> as PULL.
>
> Further,
> PULL 0/2
> PULL 1/2
> PULL 2/2
>
> aligns better than
>
> PULL 0/2
> PATCH 1/2
> PATCH 2/2
Sure, I was just following others for example.
/me changes his scripts...
-s/PATCH/PULL/ if (/PATCH 0+\\//);
+s/PATCH/PULL/ if (/^Subject:/);
Yes, Perl...
Paolo
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 15:30 ` Paolo Bonzini
@ 2013-05-02 15:33 ` Peter Maydell
2013-05-02 15:52 ` Anthony Liguori
2013-05-03 0:15 ` Peter Crosthwaite
0 siblings, 2 replies; 21+ messages in thread
From: Peter Maydell @ 2013-05-02 15:33 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: qemu-devel, Anthony Liguori, Michael S. Tsirkin
On 2 May 2013 16:30, Paolo Bonzini <pbonzini@redhat.com> wrote:
> /me changes his scripts...
>
> -s/PATCH/PULL/ if (/PATCH 0+\\//);
> +s/PATCH/PULL/ if (/^Subject:/);
>
> Yes, Perl...
Heh, I use sed for this bit:
sed -i -e 's/^Subject: \[PULL\(.*\)].*/Subject: [PULL\1]
'"$BRANCHPFX"' queue/;/^$/q' "$COVERLETTER"
(I really must put my random scripts into git.)
-- PMM
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 15:33 ` Peter Maydell
@ 2013-05-02 15:52 ` Anthony Liguori
2013-05-02 15:55 ` Peter Maydell
2013-05-02 16:06 ` Michael S. Tsirkin
2013-05-03 0:15 ` Peter Crosthwaite
1 sibling, 2 replies; 21+ messages in thread
From: Anthony Liguori @ 2013-05-02 15:52 UTC (permalink / raw)
To: Peter Maydell, Paolo Bonzini; +Cc: qemu-devel, Michael S. Tsirkin
Peter Maydell <peter.maydell@linaro.org> writes:
> On 2 May 2013 16:30, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> /me changes his scripts...
>>
>> -s/PATCH/PULL/ if (/PATCH 0+\\//);
>> +s/PATCH/PULL/ if (/^Subject:/);
>>
>> Yes, Perl...
>
> Heh, I use sed for this bit:
> sed -i -e 's/^Subject: \[PULL\(.*\)].*/Subject: [PULL\1]
> '"$BRANCHPFX"' queue/;/^$/q' "$COVERLETTER"
You can also just do git format-patch --subject-prefix=PULL and avoid
any fixups...
Regards,
Anthony Liguori
>
> (I really must put my random scripts into git.)
>
> -- PMM
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 15:52 ` Anthony Liguori
@ 2013-05-02 15:55 ` Peter Maydell
2013-05-02 16:06 ` Michael S. Tsirkin
1 sibling, 0 replies; 21+ messages in thread
From: Peter Maydell @ 2013-05-02 15:55 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Paolo Bonzini, qemu-devel, Michael S. Tsirkin
On 2 May 2013 16:52, Anthony Liguori <anthony@codemonkey.ws> wrote:
> Peter Maydell <peter.maydell@linaro.org> writes:
>> Heh, I use sed for this bit:
>> sed -i -e 's/^Subject: \[PULL\(.*\)].*/Subject: [PULL\1]
>> '"$BRANCHPFX"' queue/;/^$/q' "$COVERLETTER"
>
> You can also just do git format-patch --subject-prefix=PULL and avoid
> any fixups...
I do (now), in fact -- the sed is still needed to make the
cover letter subject say '"arm-devs" queue'.
-- PMM
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 15:52 ` Anthony Liguori
2013-05-02 15:55 ` Peter Maydell
@ 2013-05-02 16:06 ` Michael S. Tsirkin
2013-05-02 16:59 ` Paolo Bonzini
1 sibling, 1 reply; 21+ messages in thread
From: Michael S. Tsirkin @ 2013-05-02 16:06 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Peter Maydell, qemu-devel, Paolo Bonzini
On Thu, May 02, 2013 at 10:52:47AM -0500, Anthony Liguori wrote:
> Peter Maydell <peter.maydell@linaro.org> writes:
>
> > On 2 May 2013 16:30, Paolo Bonzini <pbonzini@redhat.com> wrote:
> >> /me changes his scripts...
> >>
> >> -s/PATCH/PULL/ if (/PATCH 0+\\//);
> >> +s/PATCH/PULL/ if (/^Subject:/);
> >>
> >> Yes, Perl...
> >
> > Heh, I use sed for this bit:
> > sed -i -e 's/^Subject: \[PULL\(.*\)].*/Subject: [PULL\1]
> > '"$BRANCHPFX"' queue/;/^$/q' "$COVERLETTER"
>
> You can also just do git format-patch --subject-prefix=PULL and avoid
> any fixups...
>
> Regards,
>
> Anthony Liguori
Don't forget -M please, especially if you are Paolo :)
> >
> > (I really must put my random scripts into git.)
> >
> > -- PMM
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 16:06 ` Michael S. Tsirkin
@ 2013-05-02 16:59 ` Paolo Bonzini
2013-05-02 18:19 ` Anthony Liguori
0 siblings, 1 reply; 21+ messages in thread
From: Paolo Bonzini @ 2013-05-02 16:59 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: Peter Maydell, qemu-devel, Anthony Liguori
Il 02/05/2013 18:06, Michael S. Tsirkin ha scritto:
> On Thu, May 02, 2013 at 10:52:47AM -0500, Anthony Liguori wrote:
>> Peter Maydell <peter.maydell@linaro.org> writes:
>>
>>> On 2 May 2013 16:30, Paolo Bonzini <pbonzini@redhat.com> wrote:
>>>> /me changes his scripts...
>>>>
>>>> -s/PATCH/PULL/ if (/PATCH 0+\\//);
>>>> +s/PATCH/PULL/ if (/^Subject:/);
>>>>
>>>> Yes, Perl...
>>>
>>> Heh, I use sed for this bit:
>>> sed -i -e 's/^Subject: \[PULL\(.*\)].*/Subject: [PULL\1]
>>> '"$BRANCHPFX"' queue/;/^$/q' "$COVERLETTER"
>>
>> You can also just do git format-patch --subject-prefix=PULL and avoid
>> any fixups...
I still want to avoid any mistakes in case I override the subject prefix
(e.g. to include 1.5)... Keeping the substitution is cheap and a nice
safety net.
> Don't forget -M please, especially if you are Paolo :)
Or
[diff]
renames = true
renamelimit = 2000
Paolo
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 16:59 ` Paolo Bonzini
@ 2013-05-02 18:19 ` Anthony Liguori
0 siblings, 0 replies; 21+ messages in thread
From: Anthony Liguori @ 2013-05-02 18:19 UTC (permalink / raw)
To: Paolo Bonzini, Michael S. Tsirkin; +Cc: Peter Maydell, qemu-devel
Paolo Bonzini <pbonzini@redhat.com> writes:
> Il 02/05/2013 18:06, Michael S. Tsirkin ha scritto:
>> On Thu, May 02, 2013 at 10:52:47AM -0500, Anthony Liguori wrote:
>>> Peter Maydell <peter.maydell@linaro.org> writes:
>>>
>>>> On 2 May 2013 16:30, Paolo Bonzini <pbonzini@redhat.com> wrote:
>>>>> /me changes his scripts...
>>>>>
>>>>> -s/PATCH/PULL/ if (/PATCH 0+\\//);
>>>>> +s/PATCH/PULL/ if (/^Subject:/);
>>>>>
>>>>> Yes, Perl...
>>>>
>>>> Heh, I use sed for this bit:
>>>> sed -i -e 's/^Subject: \[PULL\(.*\)].*/Subject: [PULL\1]
>>>> '"$BRANCHPFX"' queue/;/^$/q' "$COVERLETTER"
>>>
>>> You can also just do git format-patch --subject-prefix=PULL and avoid
>>> any fixups...
>
> I still want to avoid any mistakes in case I override the subject prefix
> (e.g. to include 1.5)... Keeping the substitution is cheap and a nice
> safety net.
>
>> Don't forget -M please, especially if you are Paolo :)
>
> Or
>
> [diff]
> renames = true
> renamelimit = 2000
BTW, this is all great stuff to put in a SubmitAPullRequest page on the
wiki. I don't send pull requests so I don't have a script to do this,
but I'd encourage those that do to share their scripts on the wiki.
Regards,
Anthony Liguori
>
> Paolo
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu())
2013-05-02 15:33 ` Peter Maydell
2013-05-02 15:52 ` Anthony Liguori
@ 2013-05-03 0:15 ` Peter Crosthwaite
1 sibling, 0 replies; 21+ messages in thread
From: Peter Crosthwaite @ 2013-05-03 0:15 UTC (permalink / raw)
To: Peter Maydell
Cc: Paolo Bonzini, qemu-devel, Anthony Liguori, Michael S. Tsirkin
Hi Peter,
On Fri, May 3, 2013 at 1:33 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 2 May 2013 16:30, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> /me changes his scripts...
>>
>> -s/PATCH/PULL/ if (/PATCH 0+\\//);
>> +s/PATCH/PULL/ if (/^Subject:/);
>>
>> Yes, Perl...
>
> Heh, I use sed for this bit:
> sed -i -e 's/^Subject: \[PULL\(.*\)].*/Subject: [PULL\1]
> '"$BRANCHPFX"' queue/;/^$/q' "$COVERLETTER"
>
> (I really must put my random scripts into git.)
>
Intending to publish them? (or commit some of them to QEMU /scripts
even). I'm currently maintaining scripts to do some of this which will
be different to everyone elses, but perhaps committing the PULL req
script to the git satisfies the variation problem?
Regards,
Peter
> -- PMM
>
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2013-05-03 0:15 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-02 13:51 [Qemu-devel] posting patches in pull requests (was Re: [PATCH 08/29] cpu: Add qemu_for_each_cpu()) Michael S. Tsirkin
2013-05-02 14:09 ` Peter Maydell
2013-05-02 14:17 ` Michael S. Tsirkin
2013-05-02 14:21 ` Peter Maydell
2013-05-02 14:22 ` Michael S. Tsirkin
2013-05-02 14:46 ` Gerd Hoffmann
2013-05-02 14:57 ` Peter Maydell
2013-05-02 15:59 ` Andreas Färber
2013-05-02 16:08 ` Peter Maydell
2013-05-02 16:11 ` Michael S. Tsirkin
2013-05-02 17:09 ` Andreas Färber
2013-05-02 18:15 ` Anthony Liguori
2013-05-02 15:01 ` Stefan Hajnoczi
2013-05-02 15:30 ` Paolo Bonzini
2013-05-02 15:33 ` Peter Maydell
2013-05-02 15:52 ` Anthony Liguori
2013-05-02 15:55 ` Peter Maydell
2013-05-02 16:06 ` Michael S. Tsirkin
2013-05-02 16:59 ` Paolo Bonzini
2013-05-02 18:19 ` Anthony Liguori
2013-05-03 0:15 ` Peter Crosthwaite
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).