Fix GitCheckout to be sane and use git-cache

The commit queue uses checkout.GitCheckout to manage the
local git repository. It resets it to a clean state,
commits patches locally, and pushes those changes to the
golden-source-of-truth repo.

This CL fixes the prepare() method to use the new git-cache
tool, and in the process makes it more consistent, more
readable, and more correct. It also makes minor changes to
other methods to bring them in line with the git-cache
approach.

R=iannucci@chromium.org, rmistry@chromium.org
BUG=261619

Review URL: https://codereview.chromium.org/175873003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@256681 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed
tree: aacf22837954a0b8cc071f102ff5b62b1760e7f4
  1. bootstrap/
  2. git-templates/
  3. git_utils/
  4. recipes/
  5. support/
  6. testing_support/
  7. tests/
  8. third_party/
  9. win_toolchain/
  10. zsh-goodies/
  11. .gitignore
  12. annotated_gclient.py
  13. apply_issue
  14. apply_issue.bat
  15. apply_issue.py
  16. breakpad.py
  17. checkout.py
  18. chrome-update-create-task.bat
  19. chrome-update.bat
  20. chrome-update.py
  21. clang-format
  22. clang-format.bat
  23. clang_format.py
  24. codereview.settings
  25. commit_queue.py
  26. cpplint.bat
  27. cpplint.py
  28. cpplint_chromium.py
  29. create-chromium-git-src
  30. create-ntfs-junction.c
  31. create-ntfs-junction.exe
  32. crup-runner.sh
  33. download_from_google_storage
  34. download_from_google_storage.bat
  35. download_from_google_storage.py
  36. drover
  37. drover.bat
  38. drover.py
  39. fetch
  40. fetch.bat
  41. fetch.py
  42. fix_encoding.py
  43. gcl
  44. gcl.bat
  45. gcl.py
  46. gclient
  47. gclient-new-workdir.py
  48. gclient.bat
  49. gclient.py
  50. gclient_completion.sh
  51. gclient_scm.py
  52. gclient_utils.py
  53. gerrit_util.py
  54. git-cache
  55. git-cl
  56. git-cl-upload-hook
  57. git-crsync
  58. git-crup
  59. git-gs
  60. git-lkgr
  61. git-map
  62. git-map-branches
  63. git-nav-downstream
  64. git-nav-upstream
  65. git-number
  66. git-runhooks
  67. git-try
  68. git_cache.py
  69. git_cl.py
  70. git_common.py
  71. git_map.py
  72. git_map_branches.py
  73. git_nav_downstream.py
  74. git_number.py
  75. git_try.py
  76. gn
  77. gn.bat
  78. gn.py
  79. hammer
  80. hammer.bat
  81. LICENSE
  82. my_activity.py
  83. my_reviews.py
  84. ninja
  85. ninja-linux32
  86. ninja-linux64
  87. ninja-mac
  88. ninja.exe
  89. OWNERS
  90. owners.py
  91. owners_finder.py
  92. patch.py
  93. PRESUBMIT.py
  94. presubmit_canned_checks.py
  95. presubmit_support.py
  96. profile.xml
  97. pylint
  98. pylint.py
  99. pylintrc
  100. python_git_runner.sh
  101. README
  102. README.codereview
  103. README.gclient
  104. README.git-cl
  105. README.testing
  106. repo
  107. rietveld.py
  108. scm.py
  109. subcommand.py
  110. subprocess2.py
  111. trychange.py
  112. update_depot_tools
  113. update_depot_tools.bat
  114. upload_to_google_storage.py
  115. WATCHLISTS
  116. watchlists.py
  117. weekly
  118. wtf