7

I want to download the patch series RFC PATCH 00/26 i.MX5/6 IPUv3 CSI/IC

In patchwork I can get access to individual patches https://patchwork.linuxtv.org/patch/24331/. But downloading 26 patches and then applying them one by one gets tedious. Is there a way to download the complete patch series with patchwork or by other means?

The question How do I get a linux kernel patch set from the mailing list? suggests marc.info and lkml.org for downloading individual patches but I want the whole series at once. How do I do that?

Daniel Näslund
  • 1,822
  • 1
  • 17
  • 18

3 Answers3

5

The patchwork project information page at https://patchwork.linuxtv.org/project/linux-media/ has a couple of links at the bottom to pwclient and a sample .pwclientrc

Once you set these up, you can use pwclient list to search for patches and pwclient git-am to apply them. The awkward part is that there's apparently no single command to search and apply in one go. I used a combination of the two to get (for example) Philipp Zabel's recent IPU CSI patch series like this...

pwclient list -w "Philipp Zabel" -s New v2 -f %{id} | egrep '^[0-9]' | xargs pwclient git-am
Ian-Arkver
  • 106
  • 1
  • 4
  • Not all patchworks provides a "front page" to it. OTOH the address [should be constant](http://patchwork.readthedocs.io/projects/pwclient/en/latest/pwclientrc/) for every patchwork. And you could append `curl 'https://patchwork.linuxtv.org/project/linux-media/pwclientrc/' | sed '7,8s/^#//g' > ~/.pwclientrc &&` to that to make everything straightforward. – mirh Mar 28 '18 at 19:09
3

In addition to Ian-Arkver's answer, if your mailing list supports at least patchwork 2.0 you can also use git-pw. Which can handle series directly (for the moment only ozlabs seems to have updated though, so I'll just make an artificial example)

git-pw --server https://patchwork.ozlabs.org --project linux-imx series apply 34215

Please take note, you'll also need to provide authentication with either their api token or your account credentials.

mirh
  • 528
  • 4
  • 11
2

One way I can think of is to access gmane.linux.drivers.video-input-infrastructure mailing list using Gmane NNTP interface with a client and download all messages. For example, you can use a command-line client called slrn. There are also many GUI clients available. Many of them are capable of downloading multiple messages in mbox format.

Arkadiusz Drabczyk
  • 25,049
  • 5
  • 53
  • 68