Tuesday, 4 November 2008
Gerrit and Repo, the Android Source Management Tools
Recent Posts
- New Google Tricks: 15+ Cool and Amazing Secret Hidden Google Tricks
- Weekend Tech News: Battlegrounds Mobile India gameplay, WhatsApp policy canceled?, OPPO foldable phone
- PUBG Mobile India release date: Relaunching as Battlegrounds Mobile India officially announced
- Difference B/W Blogs & Websites Things People Haven't Told You
- Watch Live IPL 2021: How to watch today's Live streaming of IPL 2021? All Methods
A couple weeks ago, we announced the Android open source release. Beside it, we silently released the tools that we wrote in order to make handling a large multi-repository project manageable in git. If you had a chance to look through the Android open source website, you'll notice references to a tool called repo. Why did we write this? With approximately 8.5 million lines of code (not including things like the Linux Kernel!), keeping this all in one git tree would've been problematic for a few reasons:
* We want to delineate access control based on location in the tree.
* We want to be able to make some components replaceable at a later date.
* We needed trivial overlays for OEMs and other projects who either aren't ready or aren't able to embrace open source.
* We don't want our most technical people to spend their time as patch monkeys.
The repo tool uses an XML-based manifest file describing where the upstream repositories are, and how to merge them into a single working checkout. repo will recurse across all the git subtrees and handle uploads, pulls, and other needed items. repo has built-in knowledge of topic branches and makes working with them an essential part of the workflow.
The gerrit code review tool is based off of rietveld. Gerrit is itself split into two components: Half that runs on Google App Engine to provide front-end web service, and half that runs on a machine to handle attempted merges into the "upstream" branch, and the various code review branches. When we integrate the auto-builders into the system, that will also be handled by Gerrit.
We have a workflow diagram that shows how code gets into the system for Android. If you're looking to switch to git, but don't want to lose the ability for multiple people to commit into an upstream tree, this is one solution for you to consider. Interested? Find us at repo-discuss@googlegroups.com
Related tricks
- Download, Install and Flash Android 4.1.1 Jelly Bean On Nexus S (i9023/i9020/i9020T/i9020A) Devices - Tutorial
- How to: Turn Off and Disable Apps Notification In Android 4.1 Jelly Bean Devices - Tutorial
- How to Be a Successful Mobile eCommerce App Developer - Be a Game Changer
- Introducing Solar Permit AppEngine Examples
- Gerrit and Repo, the Android Source Management Tools
- Gerrit Hackathon #3, May 7-11, 2012
- Gerrit Hackathon #3, May 7-11, 2012
- GitTogether 2011
- Shawn Pearce on FLOSS Weekly
- 5 Apps To Control Your LED Lighting
- Setup, Install and Run Ubuntu/Linux OS on Android's Galaxy S III Smartphone - Tutorial and Guide
(+)