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

Unified Diff: apply_issue.py

Issue 10917306: Allow the caller to specify a username and password so that private issues (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Address review comments Created 8 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apply_issue.py
===================================================================
--- apply_issue.py (revision 157107)
+++ apply_issue.py (working copy)
@@ -27,10 +27,12 @@
'-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(
'-p', '--patchset', type='int', help='Rietveld issue\'s patchset number')
@@ -57,7 +59,7 @@
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:
« 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