Add retries to file operations for Windows.

BUG=chromium:663990
TEST=None
[email protected], [email protected]

Review-Url: https://codereview.chromium.org/2497503002
1 file changed
tree: 72bd123ee8ef8348982b6ed9a3520d0a7eb99c2a
  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. cit
  25. cit.bat
  26. cit.py
  27. clang-format
  28. clang-format.bat
  29. clang_format.py
  30. clang_format_merge_driver
  31. clang_format_merge_driver.bat
  32. clang_format_merge_driver.py
  33. codereview.settings
  34. commit_queue
  35. commit_queue.bat
  36. commit_queue.py
  37. cpplint.bat
  38. cpplint.py
  39. cpplint_chromium.py
  40. create-ntfs-junction.c
  41. create-ntfs-junction.exe
  42. dart_format.py
  43. depot-tools-auth
  44. depot-tools-auth.bat
  45. depot-tools-auth.py
  46. download_from_google_storage
  47. download_from_google_storage.bat
  48. download_from_google_storage.py
  49. fetch
  50. fetch.bat
  51. fetch.py
  52. fix_encoding.py
  53. gclient
  54. gclient-new-workdir.py
  55. gclient.bat
  56. gclient.py
  57. gclient_completion.sh
  58. gclient_scm.py
  59. gclient_utils.py
  60. gerrit_util.py
  61. git-cache
  62. git-cherry-pick-upload
  63. git-cl
  64. git-crrev-parse
  65. git-crsync
  66. git-drover
  67. git-find-releases
  68. git-footers
  69. git-freeze
  70. git-gs
  71. git-hyper-blame
  72. git-map
  73. git-map-branches
  74. git-mark-merge-base
  75. git-nav-downstream
  76. git-nav-upstream
  77. git-new-branch
  78. git-number
  79. git-rebase-update
  80. git-rename-branch
  81. git-reparent-branch
  82. git-retry
  83. git-runhooks
  84. git-squash-branch
  85. git-thaw
  86. git-upstream-diff
  87. git_cache.py
  88. git_cherry_pick_upload.py
  89. git_cl.py
  90. git_cl_completion.sh
  91. git_common.py
  92. git_dates.py
  93. git_drover.py
  94. git_find_releases.py
  95. git_footers.py
  96. git_freezer.py
  97. git_hyper_blame.py
  98. git_map.py
  99. git_map_branches.py
  100. git_mark_merge_base.py
  101. git_nav_downstream.py
  102. git_new_branch.py
  103. git_number.py
  104. git_rebase_update.py
  105. git_rename_branch.py
  106. git_reparent_branch.py
  107. git_retry.py
  108. git_squash_branch.py
  109. git_upstream_diff.py
  110. gn
  111. gn.bat
  112. gn.py
  113. gsutil.py
  114. LICENSE
  115. my_activity.py
  116. my_reviews.py
  117. ninja
  118. ninja-linux32
  119. ninja-linux64
  120. ninja-mac
  121. ninja.exe
  122. OWNERS
  123. owners.py
  124. owners_finder.py
  125. patch.py
  126. PRESUBMIT.py
  127. presubmit_canned_checks.py
  128. presubmit_support.py
  129. profile.xml
  130. pylint
  131. pylint.py
  132. pylintrc
  133. python_runner.sh
  134. README.gclient.md
  135. README.git-cl.md
  136. README.md
  137. README.testing
  138. recipes.py
  139. repo
  140. rietveld.py
  141. roll-dep
  142. roll-dep-svn
  143. roll-dep-svn.bat
  144. roll-dep.bat
  145. roll_dep.py
  146. roll_dep_svn.py
  147. scm.py
  148. setup_color.py
  149. subcommand.py
  150. subprocess2.py
  151. update_depot_tools
  152. update_depot_tools.bat
  153. upload_to_google_storage.py
  154. WATCHLISTS
  155. watchlists.py
  156. weekly
  157. 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.