Chromium uses a package of scripts, the depot_tools, to manage interaction with the Chromium source code repository and the Chromium development process. It contains the following utilities: - gcl: A tool for uploading and managing code reviews on the Chromium project, using the Rietveld code review tool. More info at: http://code.google.com/p/rietveld/. The gcl tool also looks for and runs presubmit scripts.
- gclient: A script for managing a workspace with modular dependencies that are each checked out independently from different repositories. More info at: http://code.google.com/p/gclient/
- hammer: A wrapper script for building Chromium with the SCons software construction tool. More info at: http://www.scons.org/
- svn [Windows only]: The revision control system for Chromium development. More info at: http://subversion.tigris.org/ (Executable Subversion binaries are included in the depot_tools on Windows systems as a convenience, so that working with Chromium source code does not require a separate Subversion download.)
The depot_tools version of gclient is actually a wrapper script that will, by default, always update the depot_tools to the latest versions of the tools checked in at http://src.chromium.org/svn/trunk/tools/depot_tools/. If you don't want this auto-update behavior, you can disable it one of two ways: - Set the environment variable DEPOT_TOOLS_UPDATE=0. Note that the value must be an explicit 0 (zero) to disable auto-updates. If the DEPOT_TOOLS_UPDATE variable is not set, the default behavior is for the gclient wrapper to auto-update the depot_tools.
- Remove the .svn subdirectory from the depot_tools directory by hand. If the .svn directory does not exist, the gclient wrapper script will avoid updating the depot_tools. This may be appropriate if you choose to install depot_tools in a common location for use by multiple users (for example, /usr/local/bin on a Linux system).
Note that the initial version of depot_tools that you check out, or download as a .zip or .tar.gz file, is just a set of wrappers. If you choose to disable auto-updates, you must still run gclient at least once so that it can synchronize the latest versions of the functional portions of the scripts.
|
|