Commit Graph

15 Commits

Author SHA1 Message Date
Jyotiraditya Panda c5cad2189d
repopick: Add support for AOSP Gerrit
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Change-Id: Ie0d75254ab5ea106950f9c6d1532c7e9e5443614
2022-03-03 17:21:16 +09:00
Jyotiraditya Panda 9d40fa5764
repopick: Pretty print commit details.
Before:

Applying change number 20887...
--> Subject:       "SystemUI: Allow skipping main display cutout if device has UDC"
--> Project path:  frameworks/base
--> Change number: 20887 (Patch Set 5)
['git fetch aospa', u'refs/changes/87/20887/5']
From github.com:AOSPA/android_frameworks_base
 * branch                      refs/changes/87/20887/5 -> FETCH_HEAD

After:

Applying change number 20887...
--> Subject       : "SystemUI: Allow skipping main display cutout if device has UDC"
--> Project path  : frameworks/base
--> Change number : 20887 (Patch Set 5)
--> Command       : "git fetch aospa refs/changes/87/20887/5"
From github.com:AOSPA/android_frameworks_base
 * branch                      refs/changes/87/20887/5 -> FETCH_HEAD

Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Change-Id: If16308c978d97dd2371e49c26c75e1467f0a4cc2
2022-03-03 17:21:15 +09:00
OmniBot Auto Verifier d6adb53dfe
aospa: build: tools: 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
2021-10-14 11:46:09 +09:00
Simon Shields e642bfac71
aospa: build: tools: repopick: fix --check-picked on Python 3
This is very subtly broken: we look for the string 'Change-Id:'
in an array of byte strings. Fix this by decoding the git output
to utf-8 strings.

Change-Id: I708ad0adacb61c89bfba0fd88eeb2e37648317af
2021-10-14 11:46:09 +09:00
Adrian DC 235d233dfd
aospa: build: tools: repopick: Support project paths detection on different branches
* When some projects are declared in the manifests with specific
    changes (revision="refs/changes/../....../."), the path
    detection does not work, while most cases have a unique paths

 * Allow projects with unique branches to select their paths
    upon repopick with a warning about the selection

Change-Id: Ic873d69f57c78f233db3d0de4ebd529f896799ea
2021-10-14 11:46:09 +09:00
LuK1337 e56ce7d5b4
aospa: build: tools: repopick: Print change subject as unicode
* This prevents from seeing stuff like
  "b'frameworks: Add unlinked ringtone and notification volumes'"
  when using python3 as default.

Change-Id: Ie1fa85681b648edcee65680d784da4dff1779616
2021-10-14 11:46:09 +09:00
Luca Weiss 9e0485422e
aospa: build: tools: repopick: cmp() is not available in Python 3, define it manually
Change-Id: I16a89aa555e62f105d888e87cb43afd26606076b
2021-10-14 11:46:08 +09:00
Vishalcj17 9f6d48721c
aospa: build: tools: Bring-in Repopick script from AOSPA.
Change-Id: I8eed4d9c039e4ced3b8bef2224140033ae330a80
2021-10-14 11:46:08 +09:00
Vishalcj17 ab0d34ec12
aospa: Cleanup as much as possible.
* bravo six, going in for a restructure.

Change-Id: Ib787d9e52cbd97a797c62a0053a525756bc74b2c
2021-10-14 11:45:32 +09:00
OmniBot Auto Verifier 9871e8aed7 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
2020-04-07 17:26:28 +00:00
Simon Shields 848d312e0d repopick: fix --check-picked on Python 3
This is very subtly broken: we look for the string 'Change-Id:'
in an array of byte strings. Fix this by decoding the git output
to utf-8 strings.

Change-Id: I708ad0adacb61c89bfba0fd88eeb2e37648317af
2019-12-19 16:13:34 +05:30
Adrian DC 48d45723ac repopick: Support project paths detection on different branches
* When some projects are declared in the manifests with specific
    changes (revision="refs/changes/../....../."), the path
    detection does not work, while most cases have a unique paths

 * Allow projects with unique branches to select their paths
    upon repopick with a warning about the selection

Change-Id: Ic873d69f57c78f233db3d0de4ebd529f896799ea
2019-12-19 16:13:28 +05:30
LuK1337 2b089ce898 repopick: Print change subject as unicode
* This prevents from seeing stuff like
  "b'frameworks: Add unlinked ringtone and notification volumes'"
  when using python3 as default.

Change-Id: Ie1fa85681b648edcee65680d784da4dff1779616
2019-12-19 16:13:05 +05:30
Luca Weiss daadd960fe repopick: cmp() is not available in Python 3, define it manually
Change-Id: I16a89aa555e62f105d888e87cb43afd26606076b
2019-08-12 15:43:13 +05:30
TheStrix 75e5110d48 pa: Add repopick.py script from LineageOS
- src: 49d26ba39a/build/tools/repopick.py
 - Adapt for AOSPA

Change-Id: Ifce28e3eda1817b6e5334a85c96deb56cda1c156
2019-02-05 14:27:41 +05:30