summaryrefslogtreecommitdiffstats
path: root/tools/repopick.py
Commit message (Collapse)AuthorAgeFilesLines
* build: Rebrand to LineageOSZhao Wei Liew2016-12-271-3/+4
| | | | Change-Id: Ie03583dc2a974a159fa50c6cb19cb68aa256ca77
* build: repopick: Avoid failing on commits lookupAdrian DC2016-12-041-0/+2
| | | | | | | | | | * Some projects with multiple merges and discountinuous histories could trigger an error here when the HEAD~{?} does not exist, hence avoid this by ignoring the commit and continue the search Change-Id: Ice28c87d1bf8897da52236b637bbb0c5d349f848
* build: repopick: Support squashed commits for Change-Id detectionAdrian DC2016-12-041-1/+5
| | | | | | | | | | | | * Commits are identified by their last Change-Id, but the parser only considers the first one found * Reverse the list to find the last Change-Id and avoid multiple repopick attempts on the same commit RM-290 Change-Id: Ie0204245a47799f8ead21148e0b4e9356cf271eb
* build: repopick: Support projects with less than 10 commitsAdrian DC2016-12-041-2/+8
| | | | | | | | | * Verify that the project has at least 10 commits to verify, if not check only the amount of existing commits RM-290 Change-Id: Ic95212510d8f5b980c9a94af8d5ac1e0dfd94b3e
* repopick: handle revisions with slashesDan Pasanen2016-12-041-1/+2
| | | | | | RM-290 Change-Id: I6f7891a52fb1538e88f5a68dd28ef1c603ee7067
* repopick: don't re-pick duplicate changesSimon Shields2016-12-041-0/+14
| | | | | | | | check the last 10 commits to HEAD for a dupe change id. RM-290 Change-Id: Icfbf8b4eae165cf84ef4a82f54f792e9c9acd67b
* repopick: try to use remote's default revisionDan Pasanen2016-12-041-1/+6
| | | | | | | | | | * If the project doesn't have a revision specified, try to see if it's remote has one specified before falling back to the global default. RM-290 Change-Id: I05129413b154e5d08d0fa9ef0ce853631b7e1562
* repopick: support specifying a range of commits to pickDan Pasanen2016-05-111-2/+8
| | | | | | * for example: repopick 12345-12350 Change-Id: I3b8f2c331a6ac5488032432e133bd4b44d0bf007
* repopick: Don't crash if change not foundMatt Mower2016-02-111-1/+5
| | | | | | | | | | | | If change is not located, skip it. Resolves the following: Traceback (most recent call last): File "(omitted)/build/tools/repopick.py", line 258, in <module> review = [x for x in reviews if x['number'] == change][0] IndexError: list index out of range Change-Id: I96423ddc809ac1c7994998db4e1929ca813f20ca
* py3: update all the thingsAnthony King2016-01-041-2/+5
| | | | Change-Id: I5e11b46b7c2f7f8760d6c0e713ca99c1e88b7cd3
* py3: repopickAnthony King2016-01-041-2/+2
| | | | Change-Id: I65e6bb295bd475cc391579023940642b5747f521
* repopick: Allow commits to be excluded from a topic importationAdrianDC2015-12-191-1/+10
| | | | | | | * Add the ability to 'repopick -t TOPIC -e 120586,120587' Change-Id: Ib99c095174a0987f68cb8261b7af3f59272b05b5 Signed-off-by: AdrianDC <radian.dc@gmail.com>
* repopick: Actually try to fetch from Gerrit if fetching from GitHub failsChirayu Desai2015-11-201-2/+2
| | | | | | * Exit on failure only if fetching didn't fail. Change-Id: Iae75dfcff590ed72afd93f58772440e4f3b0ca27
* repopick: support projects which get checked out multiple timesTom Powell2015-10-081-37/+23
| | | | | | | | | | see: caf branches for multimedia, where different branches get checked out under different paths. Change removes hacks needed for -caf branches, as this data is taken directly out of 'repo manifest' Change-Id: Id7aa24709c3dc6bc874899ef605e58271fec082c
* repopick: Update script with some fixesBrint E. Kriebel2015-10-081-24/+53
| | | | | | | | | | | Make quiet actually be quiet. Allow overriding the path for a repopick. Sort query and topic results to have a better chance of them applying cleanly. Don't try to pull from github when using a custom gerrit address. Catch git command failures and properly return failure codes. Change-Id: I7ff010fbfbf1026c6fe03cb27649f677637e1bb5
* repopick: print the status of a skipped cherry pickDan Pasanen2015-10-081-1/+1
| | | | Change-Id: I5181910dc80fe4cf2d69cc22089e191b36a80c9e
* repopick: open changes are either NEW or OPEN, not just OPENTom Powell2015-10-081-1/+1
| | | | | | Gerrit's API is terrible. I believe it was written by monkeys. Change-Id: Idb39a357c241ce7923549a3d217f7ee632326e92
* Fix custom URL error. Merged from cm_build_configTom Powell2015-10-081-2/+4
| | | | | Change-Id: Iffe7766f137889f113bc5a94254058dc4dbf0ea3 (cherry picked from commit 04d470c5efa7510cc86e614cb401a9b6a41947f0)
* repopick: handle hardware_ril/ril-cafAnthony King2015-10-081-0/+4
| | | | Change-Id: Ib72255d899529effb0d6121034f42a7532d4a02b
* repopick: skip abandoned commitsjrior0012015-10-081-5/+5
| | | | Change-Id: I7f203fc4f790bf26acce1112c5c24c703acd9326
* Support custom gerrit servers via HTTP or SSHTom Powell2015-10-081-365/+285
| | | | | | | Please test/provide feedback. Change-Id: Id7043dc009c1fe5614f73a5da2aa021c0d784a4b Ticket: RM-14
* repopick: Allow the github fetch to failChirayu Desai2015-10-061-4/+5
| | | | | | | | | | | * This is optional and done to save gerrit server bandwidth, however it may fail in cases where the 'github' remote is a mirror which doesn't sync the changes. * Let it try fetching from gerrit if fetching from github fails. Change-Id: I6d183ff83572d817d78633280d8b20e3efdaf8f0
* repopick: Allow using a custom queryChirayu Desai2015-10-061-9/+19
| | | | Change-Id: I87e92d3cbfa35367d87f55c92a6d12a6d4282232
* repopick: Catch errors on url load failureMatt Mower2015-10-061-1/+7
| | | | | | Exit gracefully if server cannot be reached or if it reports an error. Change-Id: I86a1a45d3a1f8dfdb49a0400cb728c965dbad8df
* Allow repopick to cherry-pick a specific patch setIan Roy2015-10-061-8/+45
| | | | | | | Use 'repopick 123456/9' where '123456' is the change number and '9' is the desired patchset. Change-Id: I2d9f6939fbde50b2a6057b75d2e7f722be5a3e21
* repopick: handle variant hal branchingrbox2015-10-061-0/+22
| | | | Change-Id: Ib0dee19abc13a7fb8d8e42c09b73c1b4f35ca938
* repopick: support specifying a range of commits to pickinvisiblek2015-10-061-0/+13
| | | | | | * for example: repopick 12345-12350 Change-Id: I21dd0ef5f19d7b3899fa40ec4c28a0e9dba8a4df
* repopick: allow specifying a topic to pick all commits frominvisiblek2015-10-061-1/+34
| | | | Change-Id: I4fb60120794a77986bf641de063a8d41f4f45a23
* RepoPick : Add support for git pullDanesh M2015-10-061-3/+11
| | | | | | | Allow user to git pull patchsets and dependencies. Change-Id: If5520b45fe79836eac628b3caf0526f11f8953d9 (cherry picked from commit df646304bdcef329e3fe7c12b68107de1f4cd42a)
* repopick: skip a cherry pick if its already been mergedDan Pasanen2015-10-061-2/+12
| | | | | | * override this behavior with the -f argument Change-Id: I280b4945344e7483a192d1c9769c42b8fd2a2aef
* repopick: let's be nice to our servers :)Chirayu Desai2015-10-061-24/+35
| | | | | | | * Prefer fetching changes from GitHub, and if that fails, silently fall-back to Gerrit. Change-Id: Ibf68d4b69a7e8dbee2adb8f7f4250340b8be629c
* repopick: remove the superfluous information from dateDavid Ferguson2015-10-061-2/+3
| | | | | | * '2011-11-17 06:54:52.000000000' -> '2011-11-17 06:54:52' Change-Id: I73d37c9aba13d4be6b4d2d2fc0f2f83971a3e77b
* repopick: gracefully handle empty/non-JSON server responsesDavid Ferguson2015-10-061-3/+15
| | | | Change-Id: Idbabdbfb4a910de0ad405f02b2a84cf2bc9ef3dc
* repopick: decode the result as UTF-8Chirayu Desai2015-10-061-1/+1
| | | | Change-Id: I51f2defa861c86b51baa7bad1df1d9666b952160
* repopick: initial commitChirayu Desai2015-10-061-0/+250
Change-Id: Ie42c11d335da07f6d164a0fcb887011e5fd6dcf4 repopick: add -b shortcut option * useful for people like me who want to pick into temp branch so that the picks survive a repo sync * shortcut to "--start-branch auto --abandon-first --ignore-missing" Change-Id: Ia4d4309d27e46a15ff4b74525668d974f4251dcb repopick: handle additional error cases around subprocesses * gracefully error if the project path cannot be found * poll() was not a reliable determination of EOF on my Darwin-Python 2.7 system. Change-Id: I203c2a75820f8acc079a5c9751d1c04daf6f3a16 repopick: allow running from a subdir of ANDROID_BUILD_TOP Change-Id: I6dfcd5dfe700174ed87dc8627b23519c62b4cb27 envsetup: hmm repopick Change-Id: I483cb36721f31dbf1f67e46cbe8a306b2a9e2c15 Conflicts: envsetup.sh