tree: b3d96f1f4404187cd3ac4314fcb0287876f2d901 [path history] [tgz]
  1. .gitattributes
  2. .gitignore
  3. .style.yapf
  4. LICENSE
  5. OWNERS
  6. PRESUBMIT.py
  7. README.gclient.md
  8. README.git-cl.md
  9. README.md
  10. README.testing
  11. WATCHLISTS
  12. annotated_gclient.py
  13. appengine_mapper.py
  14. apply_issue
  15. apply_issue.bat
  16. apply_issue.py
  17. auth.py
  18. autoninja
  19. autoninja.bat
  20. autoninja.py
  21. bootstrap/
  22. breakpad.py
  23. buildbucket.py
  24. checkout.py
  25. cipd
  26. cipd.bat
  27. cipd.ps1
  28. cipd_bin_setup.bat
  29. cipd_bin_setup.sh
  30. cipd_client_version
  31. cipd_manifest.txt
  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. dart_format.py
  49. depot-tools-auth
  50. depot-tools-auth.bat
  51. depot-tools-auth.py
  52. detect_host_arch.py
  53. download_from_google_storage
  54. download_from_google_storage.bat
  55. download_from_google_storage.py
  56. ensure_bootstrap
  57. fetch
  58. fetch.bat
  59. fetch.py
  60. fetch_configs/
  61. fix_encoding.py
  62. gclient
  63. gclient-new-workdir.py
  64. gclient.bat
  65. gclient.py
  66. gclient_completion.sh
  67. gclient_eval.py
  68. gclient_scm.py
  69. gclient_utils.py
  70. gerrit_client.py
  71. gerrit_util.py
  72. git-cache
  73. git-cl
  74. git-crrev-parse
  75. git-crsync
  76. git-drover
  77. git-find-releases
  78. git-footers
  79. git-freeze
  80. git-gs
  81. git-hyper-blame
  82. git-map
  83. git-map-branches
  84. git-mark-merge-base
  85. git-nav-downstream
  86. git-nav-upstream
  87. git-new-branch
  88. git-number
  89. git-rebase-update
  90. git-rename-branch
  91. git-reparent-branch
  92. git-retry
  93. git-runhooks
  94. git-squash-branch
  95. git-templates/
  96. git-thaw
  97. git-upstream-diff
  98. git_cache.py
  99. git_cl.py
  100. git_cl_completion.sh
  101. git_common.py
  102. git_dates.py
  103. git_drover.py
  104. git_find_releases.py
  105. git_footers.py
  106. git_freezer.py
  107. git_hyper_blame.py
  108. git_map.py
  109. git_map_branches.py
  110. git_mark_merge_base.py
  111. git_nav_downstream.py
  112. git_new_branch.py
  113. git_number.py
  114. git_rebase_update.py
  115. git_rename_branch.py
  116. git_reparent_branch.py
  117. git_retry.py
  118. git_squash_branch.py
  119. git_upstream_diff.py
  120. gn
  121. gn.bat
  122. gn.py
  123. gsutil.py
  124. gsutil.vpython
  125. infra/
  126. led
  127. led.bat
  128. luci-auth
  129. luci-auth.bat
  130. mac_toolchain
  131. man/
  132. my_activity.py
  133. my_reviews.py
  134. ninja
  135. ninja-linux32
  136. ninja-linux64
  137. ninja-mac
  138. ninja.exe
  139. owners.py
  140. owners_finder.py
  141. patch.py
  142. post_build_ninja_summary.py
  143. presubmit_canned_checks.py
  144. presubmit_support.py
  145. profile.xml
  146. prpc
  147. prpc.bat
  148. pylint
  149. pylint.py
  150. pylintrc
  151. python_runner.sh
  152. recipes/
  153. repo
  154. rietveld.py
  155. roll-dep
  156. roll-dep-svn
  157. roll-dep-svn.bat
  158. roll-dep.bat
  159. roll_dep.py
  160. roll_dep_svn.py
  161. scm.py
  162. setup_color.py
  163. split_cl.py
  164. subcommand.py
  165. subprocess2.py
  166. support/
  167. testing_support/
  168. tests/
  169. third_party/
  170. update_depot_tools
  171. update_depot_tools.bat
  172. update_depot_tools_toggle.py
  173. upload_to_google_storage.py
  174. vpython
  175. vpython.bat
  176. watchlists.py
  177. weekly
  178. win_toolchain/
  179. wtf
  180. 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

To update cpplint.py, please submit the change upstream first at https://github.com/google/styleguide/tree/gh-pages/cpplint then copy it down.