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

Unified Diff: drover.py

Issue 8360007: Move code starting the editor into a common function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Rebase against HEAD Created 9 years, 2 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 | gcl.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: drover.py
diff --git a/drover.py b/drover.py
index f473955d290fc2458593a62cfa2cfff05a26b02f..ef8cee50be7aecbd81594c800a5caf6df768a04e 100755
--- a/drover.py
+++ b/drover.py
@@ -477,7 +477,10 @@ def drover(options, args):
change_cmd = 'change ' + str(revision) + " " + filename
if options.revertbot:
- change_cmd += ' --silent'
+ if sys.platform == 'win32':
+ os.environ['SVN_EDITOR'] = 'cmd.exe /c exit'
+ else:
+ os.environ['SVN_EDITOR'] = 'true'
runGcl(change_cmd)
os.unlink(filename)
« no previous file with comments | « no previous file | gcl.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698