FORUMS

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

Optimize Battery Life with This Useful App

Battery life is an important aspect of your smartphone, especially if you use it for more … more

The OnePlus 2 & The Year of Smartphone Compromises

We are very close to entering the last third of 2015, and we have now seen many of … more

OnePlus 2 Teardown, Major Android Vulnerability – XDA TV

The OnePlus 2 has been officially released. That and much more news is … more

[Tool-BETA]PAC's Universal Gerrit Script - Push patches to gerrits with ease

2,222 posts
Thanks Meter: 1,470
 
Post Reply Subscribe to Thread Email Thread
MULTI-GERRIT SCRIPT

This script removes the hassle of trying to remember how to push different patches to different gerrits for different ROMS.
This script IS in BETA for the time being.



Quote:

* Many teams already in place

Quote:

  • AOKP
  • Carbon
  • Chameleon-OS
  • CyanogenMod
  • Dirty-Unicorns
  • Gummy
  • Omni
  • Paranoid-Android
  • PAC-Man
  • Vanir

* Easy to use

With commits you can:

Quote:

  • Push them to a gerrit
  • Amend them
  • Change authors of the commit(s)
  • Find you SSH key

These features are all explained right below


Explanation of Features

Quote:

setup/-su --- This is the option to run the initial setup again should you need to for some reason

team/-nt --- This allows you to change the gerrit that you are going to push to (CyanogenMod, PAC, Vanir, etc)

add+push/-ap --- This brings you through the process of adding a Change-ID if needed, then adding and pushing the files (git add -A, git commit -a, etc)

amend/-am --- This allows you to make changes to a commit that you have already pushed (aka, a patchset)

author/-au --- This allows you to change the author of the commit to help keep the correct commit history

name/-n --- This allows you to change the gerrit username you are using when pushing commits

push/-p --- This allows you to just push the changes to gerrit if that is all you need to do

sshkey/-ssh --- For those of you who don't know your ssh key and still need to put it into your gerrit account, this will open/create an ssh key that you can add to gerrit to be able to push

update/-u --- This will allow the script to check for a new version and update itself automatically if able to


Explanation of ADVANCED Features

WARNING: These options are only for people who know what they are doing and can fix it, should it break

Quote:

addgerrit/-ag --- This allows you to add your own gerrit to push to, should we have missed one

force/-uf --- This will force the script to download a new version of itself and update

safety/-sa --- This will turn off (most of) the questions that are there to help prevent accidental pushing to wrong branches, etc



Code:
* Everything should be working



Quote:

  1. Right click on link and click "Save link as"
  2. Save script
  3. Create folder in home directory called "bin" - ex: home/goldflame09/bin
  4. Execute in terminal: chmod a+x ~/bin/universal-review
  5. Some of you may need to either reboot or logout here in order for script to be recognized
  6. Run script by executing: universal-review
  7. Follow promts
  8. Enjoy!!

Script: http://pac-rom.com/downloads/gerritp...iversal-review




Quote:

  1. Open terminal
  2. Execute: universal-review -u
  3. Follow promts and wait
  4. Enjoy the updated version



Thanks to:

Quote:

@Papa Smurf151
@soupmagnet
@wedgess
@pvyParts

XDA:DevDB Information
Multi-Gerrit, a Tool/Utility for the Android General

Contributors
goldflame09, Papa Smurf151

Version Information
Status: Beta
Current Beta Version: 1
Beta Release Date: 2013-11-16

Created 2013-11-17
Last Updated 2013-11-16
Last edited by goldflame09; 17th November 2013 at 01:31 PM.
The Following 20 Users Say Thank You to goldflame09 For This Useful Post: [ View ]
 
 
17th November 2013, 02:23 AM |#2  
goldflame09's Avatar
OP Recognized Contributor
Flag CT
Thanks Meter: 1,470
 
Donate to Me
More
Reserved
CHANGELOG:

Quote:

11/16: First release

11/17: Fixed infinite loop when changing safety checks

Last edited by goldflame09; 17th November 2013 at 02:46 PM.
The Following 8 Users Say Thank You to goldflame09 For This Useful Post: [ View ]
17th November 2013, 02:23 AM |#3  
goldflame09's Avatar
OP Recognized Contributor
Flag CT
Thanks Meter: 1,470
 
Donate to Me
More
Reserved
The Following 2 Users Say Thank You to goldflame09 For This Useful Post: [ View ]
17th November 2013, 02:52 AM |#4  
Papa Smurf151's Avatar
Senior Member
Flag Atlanta
Thanks Meter: 6,772
 
Donate to Me
More
Been waiting days for use to be able to release this. Glad to have worked on this with you, pvyparts, soupmagnet, and others.
The Following 6 Users Say Thank You to Papa Smurf151 For This Useful Post: [ View ]
17th November 2013, 03:01 AM |#5  
Recognized Developer / Recognized Contributor
Thanks Meter: 4,159
 
Donate to Me
More
Great idea! Thank you dev for adding Vanir!
17th November 2013, 03:07 AM |#6  
Mazda's Avatar
Recognized Developer
Flag Milton, Florida
Thanks Meter: 11,192
 
More
Same here! Great job guys!! Really means a lot to have DU added on to a list with some of the big name ROMs out there

Will spread the word on this for sure!!
17th November 2013, 03:08 AM |#7  
Papa Smurf151's Avatar
Senior Member
Flag Atlanta
Thanks Meter: 6,772
 
Donate to Me
More
For anyone that wishes to reshare this on G+ and help get the word out

https://plus.google.com/+Pac-rom/posts/9qUZRyHfFo5
The Following 2 Users Say Thank You to Papa Smurf151 For This Useful Post: [ View ]
17th November 2013, 02:45 PM |#8  
goldflame09's Avatar
OP Recognized Contributor
Flag CT
Thanks Meter: 1,470
 
Donate to Me
More
Well, this didn't take long, but there is now a new version up

11/17:
Fix infinite loop when changing safety checks

Enjoy
17th November 2013, 02:53 PM |#9  
camcory's Avatar
Recognized Developer
Flag Spring Hill, Fl
Thanks Meter: 4,567
 
More
Perfect tool for slow folks like me! Thanks
The Following User Says Thank You to camcory For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes