You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
Allen Li 65acc1df40 [scm_mock] Make params keyword only
None of the optional params are used currently, so make them keyword
to ease future changes, like adding the global_config in the next CL.

Change-Id: I213cccb945c969b4211adad8ccd9170ef6209e0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5773568
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Allen Li <ayatane@chromium.org>
10 months ago
bootstrap
fetch_configs Add fetch config for web-workload 12 months ago
hooks
infra
man
metadata metadata: relax versioning info check if Chromium is the canonical repo of a dependency 10 months ago
python-bin cipd/python: optimize cat usage 2 years ago
python2-bin
recipes Roll recipe dependencies (trivial). 10 months ago
testing_support
tests [scm_mock] Make params keyword only 10 months ago
third_party
win_toolchain
zsh-goodies
.cipd_impl.ps1
.flake8
.gitattributes
.gitignore
.isort.cfg
.style.yapf
.vpython3
BUILD_OWNERS
CROS_OWNERS
DIR_METADATA
LICENSE
LUCI_OWNERS
OWNERS
PRESUBMIT.py
README.gclient.md
README.git-cl.md
README.md
RECLIENT_OWNERS
WATCHLISTS
auth.py [auth.py] Fix quoting of scopes 11 months ago
autoninja
autoninja.bat
autoninja.py
bazel
bazel.py
bb
bb.bat
black
bootstrap_python3
breakpad.py
build_telemetry autoninja: Implement build_telemetry utils 11 months ago
build_telemetry.bat
build_telemetry.py build_telemetry: Print status 11 months ago
cbuildbot
cipd
cipd.bat
cipd_bin_setup.bat
cipd_bin_setup.sh
cipd_client_version
cipd_client_version.digests
cipd_manifest.txt
cipd_manifest.versions
cipd_manifest_cros_python2.txt
cipd_manifest_cros_python2.versions
clang-format
clang-format.bat
clang_format.py [clang_format] Update clang path 1 year ago
codereview.settings
compile_single_file
compile_single_file.bat
compile_single_file.py Make 'compile_single_file' use vpython3 1 year ago
cpplint.bat
cpplint.py
cpplint_chromium.py switch to 4 space indent 2 years ago
cros
cros_python2.vpython Redirect cros calls to py2.7 scripts to the vpython2.7 package. 2 years ago
cros_sdk
detect_host_arch.py
dirmd
dirmd.bat
download_from_google_storage
download_from_google_storage.bat
download_from_google_storage.py
ensure_bootstrap
fetch
fetch.bat
fetch.py
gclient
gclient-new-workdir.py
gclient.bat
gclient.py
gclient_completion.sh
gclient_eval.py [gclient] remove output_file from gcs object setdep 1 year ago
gclient_paths.py gclient: resolve symlink in gclient_entries before checking with current path 12 months ago
gclient_scm.py [gclient_scm] Add new auth stack setup to gclient 10 months ago
gclient_utils.py
gerrit
gerrit_client.py
gerrit_util.py
git-cache
git-cl
git-credential-luci
git-credential-luci.bat
git-crrev-parse
git-drover
git-find-releases
git-footers
git-freeze
git-gs
git-hyper-blame
git-map
git-map-branches Add quotes around paths in bash scripts 5 years ago
git-mark-merge-base
git-nav-downstream
git-nav-upstream
git-new-branch
git-number
git-rebase-update
git-rename-branch
git-reparent-branch
git-retry
git-runhooks Revert "Remove unused functionality in bot_update.py" 3 years ago
git-squash-branch Add quotes around paths in bash scripts 5 years ago
git-squash-branch-tree Add git squash-branch-tree 12 months ago
git-thaw
git-upstream-diff
git_auth.py [gclient_scm] Add new auth stack setup to gclient 10 months ago
git_cache.py
git_cl.py
git_cl_completion.sh
git_common.py
git_completion.sh
git_dates.py
git_find_releases.py
git_footers.py fail gracefully if git footers is called in cog 1 year ago
git_freezer.py fail gracefully if git freeze or git thaw are called in cog 1 year ago
git_hyper_blame.py fail gracefully if git hyper-blame are called in cog 1 year ago
git_map.py fail gracefully if git map is called in cog 1 year ago
git_map_branches.py fail gracefully if git map-branches is called in cog 1 year ago
git_mark_merge_base.py
git_nav_downstream.py
git_new_branch.py fail gracefully if git new-branch is called in cog 1 year ago
git_rebase_update.py
git_rename_branch.py fail gracefully if git rename-branch is called in cog 1 year ago
git_reparent_branch.py fail gracefully if git reparent-branch is called in cog 1 year ago
git_retry.py Fix multiline comment formatting 1 year ago
git_squash_branch.py
git_squash_branch_tree.py
git_upstream_diff.py fail gracefully if git upstream-diff is called in cog 1 year ago
gn
gn.bat
gn.py Reland "[depot_tools] Support both gn paths in gn.py" 1 year ago
gn_helper.py
google-java-format
google-java-format.bat
google_java_format.py Fix google-java-format/cipd exists check. 1 year ago
gsutil.py
gsutil.py.bat
gsutil.vpython3
isort switch to 4 space indent 2 years ago
led
led.bat Add revert instructions 4 years ago
lockfile.py [gsutil] Fix race when downloading gsutil 1 year ago
luci-auth
luci-auth.bat
lucicfg
lucicfg.bat
mac_toolchain
metrics.README.md
metrics.py
metrics_utils.py
my_activity.py
newauth.py [git_cl] Let creds-check revert new auth config changes 11 months ago
ninja
ninja.bat
ninja.py ninja: error if trying to build for use_remoteexec=true 12 months ago
ninjalog_uploader.py
owners_client.py
owners_finder.py
pinpoint
pinpoint.bat
post_build_ninja_summary.py allow v6 ninja log format 1 year ago
presubmit_canned_checks.py
presubmit_diff.py
presubmit_support.py Add flush_cache flag to input_api.change.NewContents 11 months ago
prpc
prpc.bat
pylint-2.6
pylint-2.6.bat
pylint-2.7
pylint-2.7.bat Add pylint-2.7 4 years ago
pylint-2.17
pylint-2.17.bat
pylint_main.py Remove __future__ imports 2 years ago
pylintrc
pylintrc-2.17
python_runner.sh
rdb
rdb.bat
rdb_wrapper.py
reclient_helper.py
reclientreport
reclientreport.bat
reclientreport.py [reclient] Keep previous 5 builds worth of logs 2 years ago
repo
repo_launcher
roll-dep
roll-dep.bat
roll_dep.py
roll_downstream_gcs_deps.py
rustfmt.py
scm.py
setup_color.py
siso
siso.bat
siso.py
split_cl.py Edit warning in split_cl.py 11 months ago
subcommand.py
subprocess2.py Fix multiline comment formatting 1 year ago
swift-format
swift_format.py switch to 4 space indent 2 years ago
update_depot_tools
update_depot_tools.bat
update_depot_tools_toggle.py
upload_metrics.py switch to 4 space indent 2 years ago
upload_to_google_storage.py Revert "Reland "Add support for GCS deps"" 1 year ago
upload_to_google_storage_first_class.py
utils.py
vpython3
vpython3.bat
watchlists.py
whitespace.txt
win32imports.py
yapf
yapf.bat

README.md

depot_tools

Tools for working with Chromium development. It requires python 3.8.

Tools

The most important tools are:

  • fetch: A gclient wrapper to checkout a project. Use fetch --help for more details.
  • gclient: A meta-checkout tool. Think repo or git submodules, except that it support OS-specific rules, e.g. do not checkout Windows only dependencies when checking out for Android. Use gclient help for more details and README.gclient.md.
  • git cl: A code review tool to interact with Rietveld or Gerrit. Use git cl help for more details and README.git-cl.md.
  • roll-dep: A gclient dependency management tool to submit a dep roll, updating a dependency to a newer revision.

There are a lot of git utilities included.

Updating

depot_tools updates itself automatically when running gclient tool. To disable auto update, set the environment variable DEPOT_TOOLS_UPDATE=0 or run ./update_depot_tools_toggle.py --disable.

To update package manually, run update_depot_tools.bat on Windows, or ./update_depot_tools on Linux or Mac.

On Windows only, running gclient will install git and python.

Contributing

To contribute change for review:

git new-branch <somename>
# Hack
git add .
git commit -a -m "Fixes goat teleporting"
# find reviewers
git cl owners
git log -- <yourfiles>

# Request a review.
git cl upload -r reviewer1@chromium.org,reviewer2@chromium.org --send-mail

# Edit change description if needed.
git cl desc

# If change is approved, flag it to be committed.
git cl set-commit

# If change needs more work.
git rebase-update
...
git cl upload -t "Fixes goat teleporter destination to be Australia"

See also open bugs, open reviews, forum or report problems.

cpplint.py

Until 2018, our cpplint.py was a copy of the upstream version at https://github.com/google/styleguide/tree/gh-pages/cpplint. Unfortunately, that repository is not maintained any more. If you want to update cpplint.py in depot_tools, just upload a patch to do so. We will figure out a long-term strategy via issue https://crbug.com/916550.

Note that the cpplint.py here is also used by the Tricium analyzer, so if the cpplint.py here changes, we should also update the copy used there.