[roll] Roll infra/recipes [checkout] Rearrange methods

1. Reorder methods to be roughly in call order; e.g. from_spec ->
   fuchsia_with_options -> with_options. This makes the code easier to
   read.
2. Move `project()` up with the other public methods to conform to the
   recipe style guide: http://go/fuchsia-recipe-docs#function-ordering
3. Inline `finalize_checkout()` into `fuchsia_with_options()` since it's
   only called there. `finalize_checkout()` doesn't make it very clear
   what the function does, so inlining the code makes
   `fuchsia_with_options()` easier to understand.
4. Make the `_from_patchset()` and `_from_commit()` methods private.
   They're only called from this module and are not particularly useful
   for other recipes, as they provide fairly low-level functionality.

This is a pure refactoring, so no expectation file diffs.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/recipes/+/516525
Original-Revision: 6a8e841b4c95b414f53ef11f9db05c2b9bdf7d42
GitOrigin-RevId: 9cecfc1c65790a69bcc88b6367943e2600e4338e
Change-Id: Ic82d0c4390c8e6614f18b4fcb2c97b3346a86653
1 file changed
tree: edd4dba86f11003d02ed9b272fafe2330c67b0b0
  1. garnet/
  2. infra/
  3. peridot/
  4. third_party/
  5. topaz/
  6. zircon/
  7. firmware
  8. flower
  9. jiri.lock
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.