Generate patchset name from commit subject

This is a reland of 947f2ee80883852e73fbe6fb2b624f354cebd800,
which was reverted in a5a1eea537ca2d82a0296dd703e038af7eee2fde

BUG=672332

Change-Id: If33c54e500fbeac11f60d81a19549880506c63d8
Reviewed-on: https://chromium-review.googlesource.com/419737
Reviewed-by: Andrii Shyshkalov <[email protected]>
Commit-Queue: Aaron Gable <[email protected]>
2 files changed
tree: 3bf9082632e2d210c0539c5adb0f377aa0730c56
  1. bootstrap/
  2. fetch_configs/
  3. git-templates/
  4. infra/
  5. man/
  6. recipe_modules/
  7. support/
  8. testing_support/
  9. tests/
  10. third_party/
  11. win_toolchain/
  12. zsh-goodies/
  13. .gitignore
  14. .style.yapf
  15. annotated_gclient.py
  16. appengine_mapper.py
  17. apply_issue
  18. apply_issue.bat
  19. apply_issue.py
  20. auth.py
  21. breakpad.py
  22. buildbucket.py
  23. checkout.py
  24. cipd
  25. cipd.bat
  26. cipd.ps1
  27. cipd_client_version
  28. cit
  29. cit.bat
  30. cit.py
  31. clang-format
  32. clang-format.bat
  33. clang_format.py
  34. clang_format_merge_driver
  35. clang_format_merge_driver.bat
  36. clang_format_merge_driver.py
  37. codereview.settings
  38. commit_queue
  39. commit_queue.bat
  40. commit_queue.py
  41. cpplint.bat
  42. cpplint.py
  43. cpplint_chromium.py
  44. create-ntfs-junction.c
  45. create-ntfs-junction.exe
  46. dart_format.py
  47. depot-tools-auth
  48. depot-tools-auth.bat
  49. depot-tools-auth.py
  50. download_from_google_storage
  51. download_from_google_storage.bat
  52. download_from_google_storage.py
  53. fetch
  54. fetch.bat
  55. fetch.py
  56. fix_encoding.py
  57. gclient
  58. gclient-new-workdir.py
  59. gclient.bat
  60. gclient.py
  61. gclient_completion.sh
  62. gclient_scm.py
  63. gclient_utils.py
  64. gerrit_util.py
  65. git-cache
  66. git-cherry-pick-upload
  67. git-cl
  68. git-crrev-parse
  69. git-crsync
  70. git-drover
  71. git-find-releases
  72. git-footers
  73. git-freeze
  74. git-gs
  75. git-hyper-blame
  76. git-map
  77. git-map-branches
  78. git-mark-merge-base
  79. git-nav-downstream
  80. git-nav-upstream
  81. git-new-branch
  82. git-number
  83. git-rebase-update
  84. git-rename-branch
  85. git-reparent-branch
  86. git-retry
  87. git-runhooks
  88. git-squash-branch
  89. git-thaw
  90. git-upstream-diff
  91. git_cache.py
  92. git_cherry_pick_upload.py
  93. git_cl.py
  94. git_cl_completion.sh
  95. git_common.py
  96. git_dates.py
  97. git_drover.py
  98. git_find_releases.py
  99. git_footers.py
  100. git_freezer.py
  101. git_hyper_blame.py
  102. git_map.py
  103. git_map_branches.py
  104. git_mark_merge_base.py
  105. git_nav_downstream.py
  106. git_new_branch.py
  107. git_number.py
  108. git_rebase_update.py
  109. git_rename_branch.py
  110. git_reparent_branch.py
  111. git_retry.py
  112. git_squash_branch.py
  113. git_upstream_diff.py
  114. gn
  115. gn.bat
  116. gn.py
  117. gsutil.py
  118. LICENSE
  119. my_activity.py
  120. my_reviews.py
  121. ninja
  122. ninja-linux32
  123. ninja-linux64
  124. ninja-mac
  125. ninja.exe
  126. OWNERS
  127. owners.py
  128. owners_finder.py
  129. patch.py
  130. PRESUBMIT.py
  131. presubmit_canned_checks.py
  132. presubmit_support.py
  133. profile.xml
  134. pylint
  135. pylint.py
  136. pylintrc
  137. python_runner.sh
  138. README.gclient.md
  139. README.git-cl.md
  140. README.md
  141. README.testing
  142. recipes.py
  143. repo
  144. rietveld.py
  145. roll-dep
  146. roll-dep-svn
  147. roll-dep-svn.bat
  148. roll-dep.bat
  149. roll_dep.py
  150. roll_dep_svn.py
  151. scm.py
  152. setup_color.py
  153. subcommand.py
  154. subprocess2.py
  155. update_depot_tools
  156. update_depot_tools.bat
  157. upload_to_google_storage.py
  158. WATCHLISTS
  159. watchlists.py
  160. weekly
  161. wtf
README.md

depot_tools

This package contains 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 [email protected],[email protected] --send-mail

# Edit change description if needed.
git cl desc

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

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

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.