Upload changes from multiple repositories
Certain changes require modifying more than one repository simultaneously. There are two supported methods for accomplishing this: soft and hard transitions.
In general, prefer soft transitions over hard transitions (see Making changes across multiple petals for further details). This means that if a change to one repository depends on a change in another repository, you must wait until the respective commit has been rolled before the dependent commit can be submitted to the queue.
Most multi-Petal changes (including updates to FIDL protocols) should be attempted using a soft transition, whereas coordinating changes across multiple Petals may require a hard transition. Typically, one should use the techniques described in the above references to avoid hard transitions wherever possible.
Using jiri upload {#using-jiri-upload}
To upload changes together, you need to create a branch with same name on all repositories.
Do the following:
-
Make and commit the first change in a Fuchsia repository:
-
Go to the repository:
1. Create a new branch; for example, add_my_new_feature: 1. Edit and add the files related to the feature: 1. Commit your first change:
-
-
Make and commit the second change in another Fuchsia repository:
-
Go to the second repository:
1. Create a new branch with the same name, add_my_new_feature: -
Edit and add the files related to the feature:
1. Commit your second change:
-
-
Use
-multipartto upload all changes with the same branch name across repos:
After the changes are submitted, clean up the local branches:
AndUsing Git command
You can also use the git command to upload all changes across repositories.
The steps are identical as the steps in Using jiri
upload; however, instead of jiri upload -multipart in Step 3, use the
following git command to upload your changes from each repository you have modified:
Note that this command must be run from the working directory of each repository.