[PATCH 5/6] pwclient: add project option to single-patch commands
Brian Norris
computersforpeace at gmail.com
Sun Nov 23 15:38:45 AEDT 2014
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 at gmail.com>
---
apps/patchwork/bin/pwclient | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/apps/patchwork/bin/pwclient b/apps/patchwork/bin/pwclient
index 2a809814a484..483330e5c876 100755
--- a/apps/patchwork/bin/pwclient
+++ b/apps/patchwork/bin/pwclient
@@ -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(
--
2.2.0.rc2
More information about the Patchwork
mailing list