Commit 33578fe2 authored by rogerta@chromium.org's avatar rogerta@chromium.org

Allow the caller to specify a username and password so that private issues

can be applied.  This is the first part for this bug; the second part is in commands.py where this is called by the TS.

BUG=149941

Review URL: https://chromiumcodereview.appspot.com/10917306

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@157355 0039d316-1c4b-4281-b951-d872f2087c98
parent 6afd0c36
......@@ -31,9 +31,11 @@ def main():
'-v', '--verbose', action='count', default=0,
help='Prints debugging infos')
parser.add_option(
'-e',
'--email',
help='IGNORED: Kept for compatibility.')
'-e', '--email', default='',
help='Email address to access rietveld. If not specified, anonymous '
'access will be used.')
parser.add_option(
'-w', '--password', default=None, help='Password for email addressed.')
parser.add_option(
'-i', '--issue', type='int', help='Rietveld issue number')
parser.add_option(
......@@ -61,7 +63,7 @@ def main():
if not options.server:
parser.error('Require a valid server')
obj = rietveld.Rietveld(options.server, '', None)
obj = rietveld.Rietveld(options.server, options.email, options.password)
try:
properties = obj.get_issue_properties(options.issue, False)
except rietveld.upload.ClientLoginError, e:
......
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