]> git.ozlabs.org Git - patchwork/commitdiff
pwclient: add project option to single-patch commands
authorBrian Norris <computersforpeace@gmail.com>
Sun, 23 Nov 2014 04:38:45 +0000 (20:38 -0800)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 22 Mar 2015 13:08:30 +0000 (21:08 +0800)
Previously, we could not target a particular server instance with the
apply, git-am, info, and view subcommands. Under a single-server design,
we never needed to target a particular project for a patch. We just
targeted the patch itself. But with the advent of multi-server
.pwclientrc configurations, we should allow pwclient to specify the
project for these commands.

This adds the '-p PROJECT' option to:
 * apply
 * git-am
 * info
 * view

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

index 2a809814a4848272b2311d6d4eaa2e40db4d46fa..483330e5c876a29c65ac8ce30b992b0f9ddaeeb0 100755 (executable)
@@ -359,6 +359,10 @@ def main():
         'id', metavar='ID', nargs='*', action='store', type=int,
         help='Patch ID',
     )
+    hash_parser.add_argument(
+        '-p', metavar='PROJECT',
+        help='''Lookup patch in project'''
+    )
 
     filter_parser = argparse.ArgumentParser(add_help=False, version=False)
     filter_parser.add_argument(