[git_auth] Remove old option cleanup

Change-Id: I426199d05613397a74aba87ad8dcbd67a0175ee7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5869051
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Allen Li <ayatane@chromium.org>
1 file changed
tree: b103dac8a7128ade26478a1f670eae84e5a81273
  1. bootstrap/
  2. fetch_configs/
  3. hooks/
  4. infra/
  5. infra_lib/
  6. man/
  7. metadata/
  8. python-bin/
  9. python2-bin/
  10. recipes/
  11. testing_support/
  12. tests/
  13. third_party/
  14. win_toolchain/
  15. zsh-goodies/
  16. .cipd_impl.ps1
  17. .flake8
  18. .gitattributes
  19. .gitignore
  20. .isort.cfg
  21. .style.yapf
  22. .vpython3
  23. auth.py
  24. autoninja
  25. autoninja.bat
  26. autoninja.py
  27. bazel.py
  28. bb
  29. bb.bat
  30. black
  31. bootstrap_python3
  32. breakpad.py
  33. BUILD_OWNERS
  34. build_telemetry
  35. build_telemetry.bat
  36. build_telemetry.py
  37. cipd
  38. cipd.bat
  39. cipd_bin_setup.bat
  40. cipd_bin_setup.sh
  41. cipd_client_version
  42. cipd_client_version.digests
  43. cipd_manifest.txt
  44. cipd_manifest.versions
  45. cipd_manifest_cros_python2.txt
  46. cipd_manifest_cros_python2.versions
  47. clang-format
  48. clang-format.bat
  49. clang_format.py
  50. codereview.settings
  51. compile_single_file
  52. compile_single_file.bat
  53. compile_single_file.py
  54. cpplint.bat
  55. cpplint.py
  56. cpplint_chromium.py
  57. cros
  58. CROS_OWNERS
  59. cros_python2.vpython
  60. detect_host_arch.py
  61. DIR_METADATA
  62. dirmd
  63. dirmd.bat
  64. download_from_google_storage
  65. download_from_google_storage.bat
  66. download_from_google_storage.py
  67. ensure_bootstrap
  68. fetch
  69. fetch.bat
  70. fetch.py
  71. gclient
  72. gclient-new-workdir.py
  73. gclient.bat
  74. gclient.py
  75. gclient_completion.sh
  76. gclient_eval.py
  77. gclient_paths.py
  78. gclient_scm.py
  79. gclient_utils.py
  80. gerrit_client.py
  81. gerrit_util.py
  82. git-cache
  83. git-cl
  84. git-credential-luci
  85. git-credential-luci.bat
  86. git-crrev-parse
  87. git-drover
  88. git-find-releases
  89. git-footers
  90. git-freeze
  91. git-gs
  92. git-hyper-blame
  93. git-map
  94. git-map-branches
  95. git-mark-merge-base
  96. git-nav-downstream
  97. git-nav-upstream
  98. git-new-branch
  99. git-number
  100. git-rebase-update
  101. git-rename-branch
  102. git-reparent-branch
  103. git-retry
  104. git-runhooks
  105. git-squash-branch
  106. git-squash-branch-tree
  107. git-thaw
  108. git-upstream-diff
  109. git_auth.py
  110. git_cache.py
  111. git_cl.py
  112. git_cl_completion.sh
  113. git_common.py
  114. git_completion.sh
  115. git_dates.py
  116. git_find_releases.py
  117. git_footers.py
  118. git_freezer.py
  119. git_hyper_blame.py
  120. git_map.py
  121. git_map_branches.py
  122. git_mark_merge_base.py
  123. git_nav_downstream.py
  124. git_new_branch.py
  125. git_number.py
  126. git_rebase_update.py
  127. git_rename_branch.py
  128. git_reparent_branch.py
  129. git_retry.py
  130. git_squash_branch.py
  131. git_squash_branch_tree.py
  132. git_upstream_diff.py
  133. gn
  134. gn.bat
  135. gn.py
  136. gn_helper.py
  137. google-java-format
  138. google-java-format.bat
  139. google_java_format.py
  140. gsutil.py
  141. gsutil.py.bat
  142. gsutil.vpython3
  143. isort
  144. led
  145. led.bat
  146. LICENSE
  147. lockfile.py
  148. luci-auth
  149. luci-auth.bat
  150. LUCI_OWNERS
  151. lucicfg
  152. lucicfg.bat
  153. mac_toolchain
  154. metrics.py
  155. metrics.README.md
  156. metrics_utils.py
  157. my_activity.py
  158. newauth.py
  159. ninja
  160. ninja.bat
  161. ninja.py
  162. ninjalog_uploader.py
  163. OWNERS
  164. owners_client.py
  165. owners_finder.py
  166. pinpoint
  167. pinpoint.bat
  168. post_build_ninja_summary.py
  169. PRESUBMIT.py
  170. presubmit_canned_checks.py
  171. presubmit_diff.py
  172. presubmit_support.py
  173. prpc
  174. prpc.bat
  175. pylint-2.17
  176. pylint-2.17.bat
  177. pylint-2.6
  178. pylint-2.6.bat
  179. pylint-2.7
  180. pylint-2.7.bat
  181. pylint_main.py
  182. pylintrc
  183. pylintrc-2.17
  184. python_runner.sh
  185. rdb
  186. rdb.bat
  187. rdb_wrapper.py
  188. README.gclient.md
  189. README.git-cl.md
  190. README.md
  191. reclient_helper.py
  192. RECLIENT_OWNERS
  193. reclientreport
  194. reclientreport.bat
  195. reclientreport.py
  196. repo
  197. repo_launcher
  198. roll-dep
  199. roll-dep.bat
  200. roll_dep.py
  201. roll_downstream_gcs_deps.py
  202. rustfmt.py
  203. scm.py
  204. setup_color.py
  205. siso
  206. siso.bat
  207. siso.py
  208. split_cl.py
  209. subcommand.py
  210. subprocess2.py
  211. swift-format
  212. swift_format.py
  213. update_depot_tools
  214. update_depot_tools.bat
  215. update_depot_tools_toggle.py
  216. upload_metrics.py
  217. upload_to_google_storage.py
  218. upload_to_google_storage_first_class.py
  219. utils.py
  220. vpython3
  221. vpython3.bat
  222. WATCHLISTS
  223. watchlists.py
  224. whitespace.txt
  225. win32imports.py
  226. yapf
  227. 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.