Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,940 Members 46,615 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
goldflame09
Old
(Last edited by goldflame09; 17th November 2013 at 01:31 PM.)
#1  
goldflame09's Avatar
Recognized Contributor - OP
Thanks Meter 1199
Posts: 2,064
Join Date: Jul 2012
Location: CT

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

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
The Following 20 Users Say Thank You to goldflame09 For This Useful Post: [ Click to Expand ]
 
goldflame09
Old
(Last edited by goldflame09; 17th November 2013 at 02:46 PM.)
#2  
goldflame09's Avatar
Recognized Contributor - OP
Thanks Meter 1199
Posts: 2,064
Join Date: Jul 2012
Location: CT

 
DONATE TO ME
Default Reserved

CHANGELOG:

Quote:
11/16: First release

11/17: Fixed infinite loop when changing safety checks
The Following 8 Users Say Thank You to goldflame09 For This Useful Post: [ Click to Expand ]
 
goldflame09
Old
#3  
goldflame09's Avatar
Recognized Contributor - OP
Thanks Meter 1199
Posts: 2,064
Join Date: Jul 2012
Location: CT

 
DONATE TO ME
Default Reserved

The Following 2 Users Say Thank You to goldflame09 For This Useful Post: [ Click to Expand ]
 
Papa Smurf151
Old
#4  
Papa Smurf151's Avatar
Senior Member
Thanks Meter 6733
Posts: 5,670
Join Date: Feb 2010
Location: Atlanta

 
DONATE TO ME
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: [ Click to Expand ]
 
PrimeDirective
Old
#5  
Recognized Contributor
Thanks Meter 4115
Posts: 1,728
Join Date: Apr 2010

 
DONATE TO ME
Great idea! Thank you dev for adding Vanir!
If you like my work.. send me a beer.
 
Mazda
Old
#6  
Mazda's Avatar
Senior Member
Thanks Meter 9839
Posts: 4,563
Join Date: Oct 2008
Location: Milton, Florida ✖✖✖✖✖✖✖✖✖✖
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!!
 
Papa Smurf151
Old
#7  
Papa Smurf151's Avatar
Senior Member
Thanks Meter 6733
Posts: 5,670
Join Date: Feb 2010
Location: Atlanta

 
DONATE TO ME
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: [ Click to Expand ]
 
goldflame09
Old
#8  
goldflame09's Avatar
Recognized Contributor - OP
Thanks Meter 1199
Posts: 2,064
Join Date: Jul 2012
Location: CT

 
DONATE TO ME
Well, this didn't take long, but there is now a new version up

11/17:
Fix infinite loop when changing safety checks

Enjoy

My Devices:
 
Galaxy Player: [KK-4.4]
Nexus 7 (2013) [JB-4.3]
G2


 
camcory
Old
#9  
camcory's Avatar
Recognized Developer
Thanks Meter 4532
Posts: 1,451
Join Date: Jan 2012
Location: Spring Hill, Fl
Perfect tool for slow folks like me! Thanks

The Following User Says Thank You to camcory For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes