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

Issue 330008: Change the default workdir for drover. (Closed)

Created:
11 years, 2 months ago by Nicolas Sylvain
Modified:
9 years, 7 months ago
Reviewers:
laforge
CC:
chromium-reviews_googlegroups.com, M-A Ruel
Base URL:
svn://chrome-svn.corp.google.com/chrome/trunk/tools/depot_tools/
Visibility:
Public.

Description

Change the default workdir for drover. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29965

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M drover.py View 2 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Nicolas Sylvain
11 years, 2 months ago (2009-10-23 22:24:36 UTC) #1
laforge
11 years, 2 months ago (2009-10-23 22:26:53 UTC) #2
LGTM

Kind Regards,

Anthony Laforge
Technical Program Manager
Mountain View, CA


On Fri, Oct 23, 2009 at 3:24 PM, <nsylvain@chromium.org> wrote:

> Reviewers: laforge,
>
> Description:
> Change the default workdir for drover.
>
> Please review this at http://codereview.chromium.org/330008
>
> SVN Base: svn://chrome-svn.corp.google.com/chrome/trunk/tools/depot_tools/
>
> Affected files:
>  M     drover.py
>
>
> 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:
>
>
>

Powered by Google App Engine
This is Rietveld 408576698