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

Unified Diff: gcl.py

Issue 436036: Fix gcl that was broken in revision 32611 because a change in upload.py (Closed)
Patch Set: Created 11 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcl.py
diff --git a/gcl.py b/gcl.py
index 138aeb40179f3fb692709bb3aaaff76d96878680..e4b50859d68314ff6b065777767d20088ac765e3 100755
--- a/gcl.py
+++ b/gcl.py
@@ -577,13 +577,12 @@ def GetFilesNotInCL():
def SendToRietveld(request_path, payload=None,
content_type="application/octet-stream", timeout=None):
"""Send a POST/GET to Rietveld. Returns the response body."""
+ server = GetCodeReviewSetting("CODE_REVIEW_SERVER")
def GetUserCredentials():
"""Prompts the user for a username and password."""
- email = upload.GetEmail()
+ email = upload.GetEmail("Email (login for uploading to %s)" % server)
password = getpass.getpass("Password for %s: " % email)
return email, password
-
- server = GetCodeReviewSetting("CODE_REVIEW_SERVER")
rpc_server = upload.HttpRpcServer(server,
GetUserCredentials,
host_override=server,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698