git cl: record additional tag for builds triggered via retry-failed.

Tag is the same as used by Gerrit plugin for the same functionality:
  retry_failed:1

R=ehmaldonado

Change-Id: I14ef435b676088c86ae7cc0536c6a68fa58bd89f
Bug: 445502
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1848258
Commit-Queue: Andrii Shyshkalov <tandrii@google.com>
Auto-Submit: Andrii Shyshkalov <tandrii@google.com>
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
2 files changed
tree: fb33d9923e703cfebb8bb2565e84f4b09b7c44f2
  1. .gitattributes
  2. .gitignore
  3. .style.yapf
  4. .vpython
  5. .vpython3
  6. CROS_OWNERS
  7. LICENSE
  8. OWNERS
  9. PRESUBMIT.py
  10. README.gclient.md
  11. README.git-cl.md
  12. README.md
  13. annotated_gclient.py
  14. auth.py
  15. autoninja
  16. autoninja.bat
  17. autoninja.py
  18. bb
  19. bb.bat
  20. bootstrap/
  21. bootstrap_python3
  22. breakpad.py
  23. cipd
  24. cipd.bat
  25. cipd.ps1
  26. cipd_bin_setup.bat
  27. cipd_bin_setup.sh
  28. cipd_client_version
  29. cipd_client_version.digests
  30. cipd_manifest.txt
  31. cipd_manifest.versions
  32. cit
  33. cit.bat
  34. cit.py
  35. clang-format
  36. clang-format.bat
  37. clang_format.py
  38. clang_format_merge_driver
  39. clang_format_merge_driver.bat
  40. clang_format_merge_driver.py
  41. codereview.settings
  42. compile_single_file
  43. compile_single_file.bat
  44. compile_single_file.py
  45. cpplint.bat
  46. cpplint.py
  47. cpplint_chromium.py
  48. crosjobs
  49. dart_format.py
  50. depot-tools-auth
  51. depot-tools-auth.bat
  52. depot-tools-auth.py
  53. detect_host_arch.py
  54. download_from_google_storage
  55. download_from_google_storage.bat
  56. download_from_google_storage.py
  57. ensure_bootstrap
  58. fetch
  59. fetch.bat
  60. fetch.py
  61. fetch_configs/
  62. fix_encoding.py
  63. gclient
  64. gclient-new-workdir.py
  65. gclient.bat
  66. gclient.py
  67. gclient_completion.sh
  68. gclient_eval.py
  69. gclient_paths.py
  70. gclient_scm.py
  71. gclient_utils.py
  72. gerrit_client.py
  73. gerrit_util.py
  74. git-cache
  75. git-cl
  76. git-crrev-parse
  77. git-drover
  78. git-find-releases
  79. git-footers
  80. git-freeze
  81. git-gs
  82. git-hyper-blame
  83. git-map
  84. git-map-branches
  85. git-mark-merge-base
  86. git-nav-downstream
  87. git-nav-upstream
  88. git-new-branch
  89. git-number
  90. git-rebase-update
  91. git-rename-branch
  92. git-reparent-branch
  93. git-retry
  94. git-runhooks
  95. git-squash-branch
  96. git-templates/
  97. git-thaw
  98. git-upstream-diff
  99. git_cache.py
  100. git_cl.py
  101. git_cl_completion.sh
  102. git_common.py
  103. git_dates.py
  104. git_drover.py
  105. git_find_releases.py
  106. git_footers.py
  107. git_freezer.py
  108. git_hyper_blame.py
  109. git_map.py
  110. git_map_branches.py
  111. git_mark_merge_base.py
  112. git_nav_downstream.py
  113. git_new_branch.py
  114. git_number.py
  115. git_rebase_update.py
  116. git_rename_branch.py
  117. git_reparent_branch.py
  118. git_retry.py
  119. git_squash_branch.py
  120. git_upstream_diff.py
  121. gn
  122. gn.bat
  123. gn.py
  124. gsutil.py
  125. gsutil.py.bat
  126. gsutil.vpython
  127. infra/
  128. led
  129. led.bat
  130. luci-auth
  131. luci-auth.bat
  132. lucicfg
  133. lucicfg.bat
  134. mac_toolchain
  135. man/
  136. metrics.README.md
  137. metrics.py
  138. metrics_utils.py
  139. my_activity.py
  140. ninja
  141. ninja-linux32
  142. ninja-linux64
  143. ninja-mac
  144. ninja.exe
  145. ninjalog.README.md
  146. ninjalog_uploader.py
  147. ninjalog_uploader_wrapper.py
  148. owners.py
  149. owners_finder.py
  150. post_build_ninja_summary.py
  151. presubmit_canned_checks.py
  152. presubmit_support.py
  153. profile.xml
  154. prpc
  155. prpc.bat
  156. pylint
  157. pylint-1.5
  158. pylint-1.6
  159. pylint-1.7
  160. pylint-1.8
  161. pylint-1.9
  162. pylint.bat
  163. pylint_main.py
  164. pylintrc
  165. python_runner.sh
  166. recipes/
  167. repo
  168. roll-dep
  169. roll-dep-svn
  170. roll-dep-svn.bat
  171. roll-dep.bat
  172. roll_dep.py
  173. roll_dep_svn.py
  174. scm.py
  175. setup_color.py
  176. split_cl.py
  177. subcommand.py
  178. subprocess2.py
  179. support/
  180. testing_support/
  181. tests/
  182. third_party/
  183. update_depot_tools
  184. update_depot_tools.bat
  185. update_depot_tools_toggle.py
  186. upload_metrics.py
  187. upload_to_google_storage.py
  188. vpython
  189. vpython.bat
  190. vpython3
  191. vpython3.bat
  192. watchlists.py
  193. weekly
  194. win_toolchain/
  195. wtf
  196. yapf
  197. yapf.bat
  198. zsh-goodies/
README.md

depot_tools

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

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.

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.