Ingen beskrivning

Fumitoshi Ukai 3ca8d0d0ca add siso wrapper 2 år sedan
bootstrap faf64f1f63 Minor update to git. 2 år sedan
fetch_configs 0a590f3e18 Add gclient conversion script. 2 år sedan
git-templates a7d7d7ec35 Explicitly exec hooks inside a shell. 12 år sedan
infra 88f79dd119 Roll recipe dependencies (trivial). 2 år sedan
man 677da3c869 Revert "Add --no-squash argument to git rebase-update" 2 år sedan
python-bin 67702834cc cipd/python: optimize cat usage 2 år sedan
python2-bin 67702834cc cipd/python: optimize cat usage 2 år sedan
recipes 88f79dd119 Roll recipe dependencies (trivial). 2 år sedan
testing_support 7958e30579 Revert "Move scm.py to lib/" 2 år sedan
tests 3ca8d0d0ca add siso wrapper 2 år sedan
third_party c6798c8989 [depot tools] Update six version. 3 år sedan
win_toolchain 04206434e7 Improve .boto message visibility 2 år sedan
zsh-goodies 6e043f755b Remove unmaintained "gclient export" command, 14 år sedan
.cipd_impl.ps1 4f3b322a39 [cipd] Add windows-arm64 support to CIPD client bootstrap. 2 år sedan
.gitattributes f792c24879 Add lib to recipe cipd package 2 år sedan
.gitignore 252b19866a Redirect cros calls to py2.7 scripts to the vpython2.7 package. 2 år sedan
.isort.cfg 9a7b7675ba isort: make available to users 3 år sedan
.style.yapf fa40bfa39b Update "git cl format --python" to default to PEP-8 5 år sedan
.vpython b1bfb8b4f0 Add explicit vpython verification tags which include mac-arm64. 4 år sedan
.vpython3 274ada0567 Reland "Use py3 in gitiles recipe module" 3 år sedan
BUILD_OWNERS 3ca8d0d0ca add siso wrapper 2 år sedan
CROS_OWNERS de38174544 CROS_OWNERS: switch to our common shared lists 3 år sedan
DIR_METADATA 364205c70e [depot_tools] Migrate metadata to DIR_METADATA. 4 år sedan
LICENSE fb2b8eb2e2 Create the Next Generation of depot_tools. Eh. 16 år sedan
LUCI_OWNERS 9ceb914b2f Updating LUCI_OWNERS 2 år sedan
OWNERS 3ca8d0d0ca add siso wrapper 2 år sedan
PRESUBMIT.py 424814829a Specify encoding when opening text files 2 år sedan
README.gclient.md 186449d3e7 docs: Removing references to SVN 9 år sedan
README.git-cl.md 9c0dc3026e Replace non-inclusive terms 4 år sedan
README.md 64f5f26f1a Indicate py3 compatibility for update_depot_tools_toggle.py 3 år sedan
WATCHLISTS 59e6796cd2 Update Source team WATCHLIST entry. 3 år sedan
auth.py 0f402641d0 [auth] log errors from luci-auth token invocation. 4 år sedan
autoninja 10898d51d1 [autoninja] Respect user-provided AUTONINJA_BUILD_ID 3 år sedan
autoninja.bat 25334bb18e Handle goma_ctl/autoninja /? 2 år sedan
autoninja.py eb2866e654 Create reclient specific ninja wrapper to properly handle reproxy lifecyle 2 år sedan
bb 47a4b0bc59 Add revert instructions 4 år sedan
bb.bat 47a4b0bc59 Add revert instructions 4 år sedan
black 9997ceb9a1 black: add helper for formatting Python 3 år sedan
bootstrap_python3 a1b3db589f bootstrap_python3: Find 'cipd' in base_dir, not PATH 2 år sedan
breakpad.py dc58a97f02 Finally get rid of depot_tools' breakpad. 9 år sedan
cbuildbot 76c2e50d3b simplify the chromite wrappers 5 år sedan
cipd b4b22453f3 Revert "Resolve symlinks to cipd, vpython3" 2 år sedan
cipd.bat 939cac7adb [cipd] Suppress findstr stdout. 2 år sedan
cipd_bin_setup.bat 93fbd989e0 Revert "Retry switching to use CIPD ninja v1.8.2" 3 år sedan
cipd_bin_setup.sh a0aed87f71 Revert "put goma client in depot_tools" 5 år sedan
cipd_client_version d8fb7c9667 [auth][oob-deprecation]: Update CIPD entries for LUCI Auth. 2 år sedan
cipd_client_version.digests d8fb7c9667 [auth][oob-deprecation]: Update CIPD entries for LUCI Auth. 2 år sedan
cipd_manifest.txt e718a91487 [ResultDB] Roll RDB CLI. 2 år sedan
cipd_manifest.versions e718a91487 [ResultDB] Roll RDB CLI. 2 år sedan
cipd_manifest_cros_python2.txt 252b19866a Redirect cros calls to py2.7 scripts to the vpython2.7 package. 2 år sedan
cipd_manifest_cros_python2.versions 252b19866a Redirect cros calls to py2.7 scripts to the vpython2.7 package. 2 år sedan
cit 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
cit.bat 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
cit.py c5f0cbb865 Use pylint 2.7 for depot_tools 3 år sedan
clang-format 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
clang-format.bat 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
clang_format.py a964ca1296 clang-format: lookup for binary under third_party/clang-format 2 år sedan
clang_format_merge_driver 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
clang_format_merge_driver.bat 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
clang_format_merge_driver.py c5f0cbb865 Use pylint 2.7 for depot_tools 3 år sedan
codereview.settings fdd89469d6 update stale codereview.chromium.org links 4 år sedan
compile_single_file 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
compile_single_file.bat 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
compile_single_file.py fc04ff1628 Call ninja.py from compile_single_file.py 2 år sedan
cpplint.bat 6a8680a80e Use python3 for cpplint and get_toolchain on Win 3 år sedan
cpplint.py 0074158bf6 Fix various lint false positives. 2 år sedan
cpplint_chromium.py 0074158bf6 Fix various lint false positives. 2 år sedan
cros 50985d5fdd Don't run cipd from depot_tools, it lives in a different location on Swarming. 2 år sedan
cros_python2.vpython 252b19866a Redirect cros calls to py2.7 scripts to the vpython2.7 package. 2 år sedan
cros_sdk 76c2e50d3b simplify the chromite wrappers 5 år sedan
crosjobs 47a4b0bc59 Add revert instructions 4 år sedan
detect_host_arch.py 1b4407e7c6 Use x64 emulation for Windows on Arm targets 2 år sedan
dirmd 47a4b0bc59 Add revert instructions 4 år sedan
dirmd.bat 47a4b0bc59 Add revert instructions 4 år sedan
download_from_google_storage bc8802fd81 Switch download_from_google_storage to py3 4 år sedan
download_from_google_storage.bat 68df7954e3 use python3 for download_from_google_storage.bat 3 år sedan
download_from_google_storage.py 50c631e318 Skip 'ls' when downloading from gs. 3 år sedan
ensure_bootstrap ba94bbeaa8 Use python3 for gsutil bootstrapping 3 år sedan
fetch c621315d17 Make Python 3 default on Windows 5 år sedan
fetch.bat 544594e0b2 Reland "Make depot_tools scripts return exit codes properly on all platforms." 3 år sedan
fetch.py 512dfd676b fetch: make --no-history and --no-hooks switches consistent 2 år sedan
fix_encoding.py 00790d319f Fix \r\r\n line endings in presubmit output 3 år sedan
gclient c2a4f5db62 Skip gclient auto-update for "getdep", "root", "help", "--help" 2 år sedan
gclient-new-workdir.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
gclient.bat 544594e0b2 Reland "Make depot_tools scripts return exit codes properly on all platforms." 3 år sedan
gclient.py 3d760ccab5 Revert "Use default number of cores for gclient jobs" 2 år sedan
gclient_completion.sh 2dca41cf70 Added basic completion (the commands) for gclient. 11 år sedan
gclient_eval.py 03af44a516 Fix roll-dep commit message on Windows and add suggestions 2 år sedan
gclient_paths.py bc5906f6ff Suppress stderr of the git rev-parse command 2 år sedan
gclient_scm.py cf46585793 Reset alternates when the git_cache dir is updated 2 år sedan
gclient_utils.py 7958e30579 Revert "Move scm.py to lib/" 2 år sedan
gerrit ae46c3cecd Symlink gerrit CLI into depot_tools 2 år sedan
gerrit_client.py 91d2a5db01 Allow to pass CC list when create a gerrit change 3 år sedan
gerrit_util.py 9519fc1300 Add timeouts to the actual http calls in gerrit_util.py 2 år sedan
git-cache 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-cl 11f4a84bb1 Add quotes around paths in bash scripts. 5 år sedan
git-crrev-parse eee67fe5a5 Fix git-crrev-parse to work with both master & main branches 3 år sedan
git-drover 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-find-releases 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-footers 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-freeze 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-gs 7f02c0d981 Add *.ts (typescript files) to git-gs 3 år sedan
git-hyper-blame 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-map 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-map-branches 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-mark-merge-base 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-migrate-default-branch dfa44daef9 Add git-migrate-default-branch 4 år sedan
git-nav-downstream 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-nav-upstream e989bb2b45 Make git-nav-upstream use the upstream branch name 6 år sedan
git-new-branch 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-number 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-rebase-update 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-rename-branch 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-reparent-branch 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-retry 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-runhooks a59e9ea222 Revert "Remove unused functionality in bot_update.py" 3 år sedan
git-squash-branch 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-thaw 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-upstream-diff 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git_cache.py 6eccb0e24c Reset git_cache mirror when HEAD points to master 2 år sedan
git_cl.py 8d19d8641b Add newlines to info message so words aren't squashed together. 2 år sedan
git_cl_completion.sh cdaf0be1f4 Add git completion helper to cl upload 5 år sedan
git_common.py 2cbe95c7c8 Don't enforce branch limit on rebase-update if only rebasing current 2 år sedan
git_dates.py 819375653b Added git hyper-blame, a tool that skips unwanted commits in git blame. 9 år sedan
git_drover.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_find_releases.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_footers.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_freezer.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_hyper_blame.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_map.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_map_branches.py a2658217d2 git-map-branches: Fix --show-subject for branches that are gone 2 år sedan
git_mark_merge_base.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_migrate_default_branch.py 7958e30579 Revert "Move scm.py to lib/" 2 år sedan
git_nav_downstream.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_new_branch.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_number.py c5f0cbb865 Use pylint 2.7 for depot_tools 3 år sedan
git_rebase_update.py 677da3c869 Revert "Add --no-squash argument to git rebase-update" 2 år sedan
git_rename_branch.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_reparent_branch.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_retry.py 0959bb1c2a Fix git-retry on errors 3 år sedan
git_squash_branch.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_upstream_diff.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
gn 67574d7a19 gn: Call gn.bat in msysgit on Windows. 4 år sedan
gn.bat c70750b73e Revert "Call python3.bat explicitly from gn.bat on Windows." 3 år sedan
gn.py c5f0cbb865 Use pylint 2.7 for depot_tools 3 år sedan
goma_auth a806594b95 Reland "Reland "use python3 for goma related scripts"" 4 år sedan
goma_auth.bat df3228656a Set errorlevel in .bat wrappers on exit /b where appropriate. 3 år sedan
goma_ctl a806594b95 Reland "Reland "use python3 for goma related scripts"" 4 år sedan
goma_ctl.bat 25334bb18e Handle goma_ctl/autoninja /? 2 år sedan
gsutil.py 04206434e7 Improve .boto message visibility 2 år sedan
gsutil.py.bat 544594e0b2 Reland "Make depot_tools scripts return exit codes properly on all platforms." 3 år sedan
gsutil.vpython3 1909696991 Reland "Update gsutil to use gsutil version 4.68" 3 år sedan
infra_to_superproject.py c3dd9247b7 Print migration script steps. 2 år sedan
isort 9a7b7675ba isort: make available to users 3 år sedan
led 47a4b0bc59 Add revert instructions 4 år sedan
led.bat 47a4b0bc59 Add revert instructions 4 år sedan
lockfile.py 14a83aec56 Reland "Use OS level locking in git_cache.py" 5 år sedan
luci-auth 47a4b0bc59 Add revert instructions 4 år sedan
luci-auth.bat 47a4b0bc59 Add revert instructions 4 år sedan
lucicfg 47a4b0bc59 Add revert instructions 4 år sedan
lucicfg.bat 47a4b0bc59 Add revert instructions 4 år sedan
mac_toolchain 059f26bcb4 do not hardcode the path to bash by using the #!/usr/bin/env bash shebang 6 år sedan
metrics.README.md 9c0dc3026e Replace non-inclusive terms 4 år sedan
metrics.py 79499cf439 Update env_vars metrics name. 2 år sedan
metrics_utils.py 019e73a13b Replace metrics link to point to main 2 år sedan
my_activity.py c5f0cbb865 Use pylint 2.7 for depot_tools 3 år sedan
ninja c768fd8fc9 Revert "Use depot_tools python3 to call ninja.py" 2 år sedan
ninja.bat 2b1aa8dcab Add single file compile support for Windows in ninja wrappers 2 år sedan
ninja.py ef6c306221 Fix a spelling error in a comment 2 år sedan
ninja_reclient.py 87fa610fe0 Use an md5 hash of the tmpdir for the autoninja reclient pipe on windows 2 år sedan
ninjalog.README.md a657331e90 ninjalog_uploader: use goma_auth to detect googler 3 år sedan
ninjalog_uploader.py 8d6af632bf [ninjalog_uploader] Exclude absolute paths and options from targets 2 år sedan
ninjalog_uploader_wrapper.py cf9a776713 Typo when countdown is more than 1. 3 år sedan
owners_client.py 0f1addcbe9 Reland "Remove old DepotToolsOwners implementation" 2 år sedan
owners_finder.py c5f0cbb865 Use pylint 2.7 for depot_tools 3 år sedan
pinpoint 47a4b0bc59 Add revert instructions 4 år sedan
pinpoint.bat 47a4b0bc59 Add revert instructions 4 år sedan
post_build_ninja_summary.py 58da0c8284 Add elapsed-time sorting option to build summary 2 år sedan
presubmit_canned_checks.py 257ad53176 Compress the request body if it's too large to send to luci-config 2 år sedan
presubmit_support.py a9a7eecf37 Revert "Extract searching relevat files in utils function" 2 år sedan
profile.xml fb2b8eb2e2 Create the Next Generation of depot_tools. Eh. 16 år sedan
prpc 47a4b0bc59 Add revert instructions 4 år sedan
prpc.bat 47a4b0bc59 Add revert instructions 4 år sedan
pylint-1.5 c3e25c828d Fix hangs when running pylint with py3 3 år sedan
pylint-1.5.bat 866be0f290 Add an option to specify pylint version 4 år sedan
pylint-2.6 6cebde7ca2 Update pylint vpython specs to use a specific minor version. 3 år sedan
pylint-2.6.bat d60b99cd5a Get pylint-2.6 to work under vpython3 on Windows. 4 år sedan
pylint-2.7 6cebde7ca2 Update pylint vpython specs to use a specific minor version. 3 år sedan
pylint-2.7.bat 59e3296a7e Add pylint-2.7 3 år sedan
pylint_main.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
pylintrc 0985861970 CodeInclusion: Rename whitelist/blacklist -> allowlist/blocklist 5 år sedan
python_runner.sh c621315d17 Make Python 3 default on Windows 5 år sedan
rdb 47a4b0bc59 Add revert instructions 4 år sedan
rdb.bat 47a4b0bc59 Add revert instructions 4 år sedan
rdb_wrapper.py 9f38b63b4e Add snippets to presubmit failures in resultdb 2 år sedan
repo 3d7cc837bd repo: restore fstrings for Python 3.6 4 år sedan
repo_launcher 8daa8c5a94 Update repo_launcher to 2.32 2 år sedan
roll-dep c621315d17 Make Python 3 default on Windows 5 år sedan
roll-dep.bat c621315d17 Make Python 3 default on Windows 5 år sedan
roll_dep.py a111c9189d Fix roll dep to use update-index 2 år sedan
rustfmt.py 6e33ba049f Use rustfmt from third_party/rust-toolchain/bin directory. 2 år sedan
scm.py 7958e30579 Revert "Move scm.py to lib/" 2 år sedan
setup_color.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
siso 3ca8d0d0ca add siso wrapper 2 år sedan
siso.bat 3ca8d0d0ca add siso wrapper 2 år sedan
siso.py 3ca8d0d0ca add siso wrapper 2 år sedan
split_cl.py 7958e30579 Revert "Move scm.py to lib/" 2 år sedan
subcommand.py 940cd8e20f Use empty argument list in cmdhelp 3 år sedan
subprocess2.py cf06cad1be [subprocess2] Replace VOID with DEVNULL 4 år sedan
swift-format 0a6b544e20 Support git cl formatting for swift files 3 år sedan
swift_format.py 7f39e3d185 Make swift-format default True on Mac hosts 3 år sedan
update_depot_tools 7879da9e9d run `goma_ctl update_hook` in update_depot_tools 2 år sedan
update_depot_tools.bat 7879da9e9d run `goma_ctl update_hook` in update_depot_tools 2 år sedan
update_depot_tools_toggle.py 64f5f26f1a Indicate py3 compatibility for update_depot_tools_toggle.py 3 år sedan
upload_metrics.py 8dd1f99b2e Catch RemoteDisconnected on upload metrics 3 år sedan
upload_to_google_storage.py 787e71ac8b Fix code check in upload to google storage. 2 år sedan
utils.py a9a7eecf37 Revert "Extract searching relevat files in utils function" 2 år sedan
vpython c9f904f205 Move python2_usage.txt from depot_tools to temp 2 år sedan
vpython.bat c9f904f205 Move python2_usage.txt from depot_tools to temp 2 år sedan
vpython3 b4b22453f3 Revert "Resolve symlinks to cipd, vpython3" 2 år sedan
vpython3.bat 8d81365cf0 Use the bundled interpreter instead of passing -vpython-interpreter. 3 år sedan
watchlists.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
weekly 4de5deacd4 Explicitly run everything with python3 3 år sedan
whitespace.txt 74e3d80019 Change whitespace.txt 4 år sedan
win32imports.py 14a83aec56 Reland "Use OS level locking in git_cache.py" 5 år sedan
wtf 4de5deacd4 Explicitly run everything with python3 3 år sedan
yapf f8cab106a4 Update vpython spec for yapf to 0.31.0 2 år sedan
yapf.bat d73d069a76 Run yapf with vpython3 4 år sedan

README.gclient.md

gclient

gclient is a tool for managing a modular checkout of source code from multiple source code repositories. It wraps underlying source code management commands to provide support for distributing tree updates, status commands, and diffs across multiple checked-out working directories.

The gclient script is controlled by a .gclient file at the top of a directory tree which will contain source code from multiple locations. A .gclient file is a Python script that defines a list of solutions with the following format:

solutions = [
  { "name"        : "src",
    "url"         : "https://chromium.googlesource.com/chromium/src.git",
    "custom_deps" : {
      # To use the trunk of a component instead of what's in DEPS:
      #"component": "https://github.com/luci/luci-go",
      # To exclude a component from your working copy:
      #"data/really_large_component": None,
    }
  },
]

A solution is a collection of component pieces of software that will be checked out in a specific directory layout for building together.

Each entry in the solutions list is defined by a Python dictionary that contains the following items:

  • name: The name of the directory in which the solution will be checked out.
  • url: The URL from which this solution will be checked out. gclient expects that the checked-out solution will contain a file named DEPS that in turn defines the specific pieces that must be checked out to create the working directory layout for building and developing the solution's software.
  • deps_file: A string containing just the filename (not a path) of the file in the solution dir to use as the list of dependencies. This tag is optional, and defaults to DEPS.
  • custom_deps: A dictionary containing optional custom overrides for entries in the solution's DEPS file. This can be used to have the local working directory not check out and update specific components, or to sync the local working-directory copy of a given component to a different specific revision, or a branch, or the head of a tree. It can also be used to append new entries that do not exist in the DEPS file.

Within each checked-out solution, gclient expects to find a file typically named DEPS (it actually uses the value of the deps_file key above) which defines the different component pieces of software that must be checked out for the solution. The DEPS file is a Python script that defines a dictionary named deps:

deps = {
  "src/outside": "https://outside-server/one/repo.git@12345677890123456778901234567789012345677890",
  "src/component": "https://dont-use-github.com/its/unreliable.git@0000000000000000000000000000000000000000",
  "src/relative": "/another/repo.git@aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
}

Each item in the deps dictionary consists of a key-value pair. The key is the directory into which the component will be checked out, relative to the directory containing the .gclient file. The value is the URL from which that directory will be checked out. If there is no address scheme (that is, no http: prefix), then the value must begin with a slash and is treated relative to the root of the solution's repository.

The URL typically contains a specific revision or change number (as appropriate for the underlying SCM system) to freeze the external software at a specific, known state. Alternatively, if there is no revision or change number, the URL will track the latest changes on the specific trunk or branch.