Commit 3884d769 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix gcl that was broken in revision 32611 because a change in upload.py

Review URL: http://codereview.chromium.org/436036

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@33005 0039d316-1c4b-4281-b951-d872f2087c98
parent 37c629a3
...@@ -577,13 +577,12 @@ def GetFilesNotInCL(): ...@@ -577,13 +577,12 @@ def GetFilesNotInCL():
def SendToRietveld(request_path, payload=None, def SendToRietveld(request_path, payload=None,
content_type="application/octet-stream", timeout=None): content_type="application/octet-stream", timeout=None):
"""Send a POST/GET to Rietveld. Returns the response body.""" """Send a POST/GET to Rietveld. Returns the response body."""
server = GetCodeReviewSetting("CODE_REVIEW_SERVER")
def GetUserCredentials(): def GetUserCredentials():
"""Prompts the user for a username and password.""" """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) password = getpass.getpass("Password for %s: " % email)
return email, password return email, password
server = GetCodeReviewSetting("CODE_REVIEW_SERVER")
rpc_server = upload.HttpRpcServer(server, rpc_server = upload.HttpRpcServer(server,
GetUserCredentials, GetUserCredentials,
host_override=server, host_override=server,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment