Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP goldflame09

17th November 2013, 03:23 AM   |  #1  
goldflame09's Avatar
OP Recognized Contributor
Flag CT
Thanks Meter: 1,463
 
2,224 posts
Join Date:Joined: Jul 2012
Donate to Me
More
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 02:31 PM.
The Following 20 Users Say Thank You to goldflame09 For This Useful Post: [ View ]
17th November 2013, 03:23 AM   |  #2  
goldflame09's Avatar
OP Recognized Contributor
Flag CT
Thanks Meter: 1,463
 
2,224 posts
Join Date:Joined: Jul 2012
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 03:46 PM.
The Following 8 Users Say Thank You to goldflame09 For This Useful Post: [ View ]
17th November 2013, 03:23 AM   |  #3  
goldflame09's Avatar
OP Recognized Contributor
Flag CT
Thanks Meter: 1,463
 
2,224 posts
Join Date:Joined: Jul 2012
Donate to Me
More
Reserved
The Following 2 Users Say Thank You to goldflame09 For This Useful Post: [ View ]
17th November 2013, 03:52 AM   |  #4  
Papa Smurf151's Avatar
Senior Member
Flag Atlanta
Thanks Meter: 6,751
 
5,671 posts
Join Date:Joined: Feb 2010
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, 04:01 AM   |  #5  
Recognized Contributor
Thanks Meter: 4,138
 
1,734 posts
Join Date:Joined: Apr 2010
Donate to Me
Great idea! Thank you dev for adding Vanir!
17th November 2013, 04:07 AM   |  #6  
Mazda's Avatar
Recognized Developer
Flag Milton, Florida ✖✖✖✖✖✖✖✖✖✖
Thanks Meter: 10,524
 
4,742 posts
Join Date:Joined: Oct 2008
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, 04:08 AM   |  #7  
Papa Smurf151's Avatar
Senior Member
Flag Atlanta
Thanks Meter: 6,751
 
5,671 posts
Join Date:Joined: Feb 2010
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, 03:45 PM   |  #8  
goldflame09's Avatar
OP Recognized Contributor
Flag CT
Thanks Meter: 1,463
 
2,224 posts
Join Date:Joined: Jul 2012
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, 03:53 PM   |  #9  
camcory's Avatar
Recognized Developer
Flag Spring Hill, Fl
Thanks Meter: 4,534
 
1,451 posts
Join Date:Joined: Jan 2012
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