]> git.ozlabs.org Git - patchwork/commit
pwclient: support 'archived' filtering and updating
authorBrian Norris <computersforpeace@gmail.com>
Sun, 23 Nov 2014 05:49:53 +0000 (21:49 -0800)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 22 Mar 2015 13:08:30 +0000 (21:08 +0800)
commit968f33eff4be769159771d7b5db4444a8112b227
tree2294bac67fe0881db340dcfb041aca928c611e5a
parent235238fdfbfbf4e201a36c0ea57576bf63bc3536
pwclient: support 'archived' filtering and updating

Examples:

  # Mark patch as uperseded and archived
  pwclient update -s Superseded -a yes <ID>

  # List all archived patches
  pwclient list -a yes

Notably, we still leave the '-s' option as required for 'pwclient
update'; so you can't *just* archive a patch without setting its state.
I couldn't quite figure out the right argparse usage to represent that
the user must include one or both of '-s' and '-a'.

And of course, the server must have an updated xmlrpc that supports the
'archived' field for list filtering (recently patched), otherwise you'll
just get an empty list.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/bin/pwclient