A CLI tool for picking bazel plugin commits from the AOSP to the git repository.
The tool can be installed into a local virtual environment using the Makefile:
make installAfter 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/activateThe 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.
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.
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/intellijTo 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.