Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: third_party/upload.py

Issue 298703003: Upload project option (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/git_cl_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/upload.py
diff --git a/third_party/upload.py b/third_party/upload.py
index 908edc476a4b9e70886f5c5b81547c3c62502f20..74b97b6a0758f227f466b5e0080c44cef54a3988 100755
--- a/third_party/upload.py
+++ b/third_party/upload.py
@@ -629,6 +629,8 @@ group.add_option("-j", "--number-parallel-uploads",
group = parser.add_option_group("Issue options")
group.add_option("-t", "--title", action="store", dest="title",
help="New issue subject or new patch set title")
+group.add_option("--project", action="store", dest="project",
+ help="The project the issue belongs to")
group.add_option("-m", "--message", action="store", dest="message",
default=None,
help="New issue description or new patch set message")
@@ -2596,6 +2598,8 @@ def RealMain(argv, data=None):
for cc in options.cc.split(','):
CheckReviewer(cc)
form_fields.append(("cc", options.cc))
+ if options.project:
+ form_fields.append(("project", options.project))
# Process --message, --title and --file.
message = options.message or ""
« no previous file with comments | « tests/git_cl_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698