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

Unified Diff: drover.py

Issue 551137: Fix condition where no author would be retrieved (revert on a branch for ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: Created 10 years, 11 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: drover.py
===================================================================
--- drover.py (revision 36872)
+++ drover.py (working copy)
@@ -477,7 +477,12 @@
revertExportRevision(url, revision)
# Check the base url so we actually find the author who made the change
- author = getAuthor(url, revision)
+ if options.auditor:
+ author = options.auditor
+ else:
+ author = getAuthor(url, revision)
+ if not author:
+ author = getAuthor(TRUNK_URL, revision)
filename = str(revision)+".txt"
out = open(filename,"w")
@@ -532,6 +537,8 @@
help='Revision to revert')
option_parser.add_option('-w', '--workdir',
help='subdir to use for the revert')
+ option_parser.add_option('-a', '--auditor',
+ help='overrides the author for reviewer')
option_parser.add_option('', '--revertbot', action='store_true',
default=False)
option_parser.add_option('', '--revertbot-commit', action='store_true',
@@ -547,4 +554,4 @@
option_parser.error("--merge requires a --branch")
sys.exit(1)
- sys.exit(main(options, args))
+ sys.exit(main(options, args))
« 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