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

Unified Diff: drover.py

Issue 330008: Change the default workdir for drover. (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/tools/depot_tools/
Patch Set: Created 11 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 | 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 29936)
+++ drover.py (working copy)
@@ -343,13 +343,20 @@
return answer
def main(options, args):
+ revision = options.revert or options.merge
+
+ # Initialize some variables used below. They can be overwritten by
+ # the drover.properties file.
BASE_URL = "svn://chrome-svn/chrome"
TRUNK_URL = BASE_URL + "/trunk/src"
BRANCH_URL = BASE_URL + "/branches/$branch/src"
- DEFAULT_WORKING = "working"
SKIP_CHECK_WORKING = True
PROMPT_FOR_AUTHOR = False
+ DEFAULT_WORKING = "drover_" + str(revision)
+ if options.branch:
+ DEFAULT_WORKING += ("_" + options.branch)
+
# Override the default properties if there is a drover.properties file.
global file_pattern_
if os.path.exists("drover.properties"):
@@ -359,8 +366,6 @@
if FILE_PATTERN:
file_pattern_ = FILE_PATTERN
- revision = options.revert or options.merge
-
if options.revert and options.branch:
url = BRANCH_URL.replace("$branch", options.branch)
else:
« 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