You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A CLI tool for picking bazel plugin commits from the AOSP to the git repository.
Setup
The tool can be installed into a local virtual environment using the Makefile:
make install
After the tool is installed, it can be executed from inside the virtual environment. To activate the virtual environment, run the following command:
source .venv/bin/activate
The tool needs access to the git repository. The path to repository can be specified for every command using the --repo option or by exporting the REPO environment variable.
Commit Pick
To pick a commit from the AOSP by its hash run the following command:
aosp pick <hash>
Make sure to check out the right branch in the git repository where the commit should be applied.
Commit Review
To review a commit, run the following command and specify the hash of the already applied commit:
aosp review --commit <hash># where <hash> is hash in bazelbuild/intellij
To review a PR from bazelbuild/intellij, run the following command ans specify the PR number without the leading #:
aosp review --pr <number>
The tool generates a diff between the patch applied to the git repository and the patch applied to the AOSP.