vendor: import repopick from android-7.1
Add repopick script from CM
patchset 4: cybojenix
clean up the script:
remove fetching from github
cleaned up fetching locations of binaries
if ANDROID_BUILD_TOP isn't defined, error out
PS 5:
Added back the check if fetch succeeded.
Fixed verbose print about fetching.
patchset 6:
final changes
fix detecting ANDROID_BUILD_TOP
send all relavant data to stderr
- Add function description from LineageOS
Change-Id: If67c5f178d03fadd8b79b1908f4a9cb231efbb28
repopick: Add a way to checkout instead of cherrypick
This helps if you want to take a commit and its dependencies, and not
just a particular commit
Change-Id: Ib245cce560c7b0d6fd03198a8c69a13d4720a4cb
repopick: Allow picking batch of commits with the same Change-Id
Gerrit does allow assigning the same Change-Id for multiple commits. This patch allows picking them properly.
Change-Id: Idedc64f58eebe41a0d212c72329d15acff24efb9
Make repopick support gerrit 2.9
Change-Id: I5b5fcfdfb69fd8639a7170f68966817ba1bb98b7
repopick: skip a cherry-pick if its already been merged
Change-Id: I280b4945344e7483a192d1c9769c42b8fd2a2aef
repopick: open changes are either NEW or OPEN, not just OPEN
Gerrit's API is terrible. I believe it was written by monkeys.
Change-Id: I8ec97a1e4277b1ee89070976c5d0994ee178cf79
repopick: support specifying a range of commits to pick
* for example: repopick 12345-123450
Change-Id: I58e26125d3e8e836637ccd41d60cb56ab488e999
repopick: remove symbols from author and committer name
Change-Id: I3885ac89c2d1e2a72d8d95212faff00338ad3e3a
repopick: allow specifying a topic to pick all commits from
Change-Id: I4fb60120794a77986bf641de063a8d41f4f45a23
repopick: cleanup some redundancy
Change-Id: Ic1ad5e717d1bfc47cf8137cf2fe71bfd5d3456c7
diff --git a/build/envsetup.sh b/build/envsetup.sh
index 917dbed..538660d 100644
--- a/build/envsetup.sh
+++ b/build/envsetup.sh
@@ -8,6 +8,7 @@
- mka: Builds using SCHED_BATCH on all processors.
- pushboot: Push a file from your OUT dir to your phone and
reboots it, using absolute path.
+- repopick: Utility to fetch changes from Gerrit.
EOF
}
@@ -84,3 +85,10 @@
adb push $OUT/$* /$*
adb reboot
}
+
+function repopick() {
+ set_stuff_for_environment
+ T=$(gettop)
+ $T/vendor/omni/build/tools/repopick.py $@
+}
+