I've combined the two scripts to pull data from the patchwork instance instead of stdin or a csv file. Also to get the patch ids for the old patches that do not belong to any series. To get these individual patches python scripts/apply-patches.py -u I'll try to fix a few small things like taking page numbers for pulling the data from the command line itself by this weekend. Once this is done, this script can be invoked after a regular interval of time to check if the new patches can be applied. Also I will try to set up a local patchwork instance this weekend (I was supposed to do this a couple of weeks back but got too busy and could not do that). Thanks. Girish Joshi girishjoshi.io On Tue, Dec 22, 2020 at 8:43 PM Girish Joshi wrote: > > I've created this[1] script to go through all available series and get > the patches that do not belong to any one of them. > It dumps a json containing individual patch ids in /tmp directory. > This script can be merged with the previous one "apply-patches.py". > I'll do that soon. > Currently we have around 106 individual patches with the state "new" > that do not belong to any of the series. > > Girish Joshi > girishjoshi.io > > On Sat, Dec 19, 2020 at 6:55 PM Girish Joshi wrote: > > > > On Fri, Dec 18, 2020 at 9:34 AM Siddhesh Poyarekar wrote: > > > > > > On 12/17/20 11:19 PM, Girish Joshi wrote: > > > > Hi Siddhesh, > > > > On Thu, Dec 17, 2020 at 12:19 AM Siddhesh Poyarekar wrote: > > > >> I'm surprised there are 1114 series that need action; maybe it's > > > >> including series that have already been committed and you need to filter > > > >> those out? > > > > Yeah, in the git output we can see that a lot of those are already applied. > > > > > > Are they marked as committed though? If not then they should be. > > Yes, the status for (almost all of) those patches is "committed" on > > the patchwork instance. > > To verify it I'm writing down the IDs for such series in a separate file now. > > Although I did not find an option from the git-pw cli for checking if > > a series is already committed. > > The work around for that could be to go through all of the patches in > > that series and check if all of them are committed. > > > > Girish Joshi