Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1145834
  • 博文数量: 312
  • 博客积分: 12522
  • 博客等级: 上将
  • 技术积分: 3376
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-27 18:35
文章分类

全部博文(312)

文章存档

2016年(3)

2015年(1)

2013年(1)

2012年(28)

2011年(101)

2010年(72)

2009年(13)

2008年(93)

分类: 项目管理

2011-04-02 16:29:22

The android project uses for code reviews and as far as I know, seems to use gerrit internally for some of their repository hosting and code reviews (see ). I've been on the look out for some simple issue trackers and or project management software that isn't overly complicated to use and to setup. It was just an accident that I had come across gerrit after I was looking at some of the released code for things like , and , who are supporting also seem to be using gerrit to review code.

Although it's not an issue tracker or a project management piece of software, it seems to be an interesting tool to open up repositories for contributors who are not apart of the core group of developers of a project. It seems to be like a gatekeeper to a repository, anyone can clone and submit code to the system, but the changes aren't applied till the changes are reviewed and verified.

There's already a few blog posts out there such as Code Review with Gerrit, a mostly visual guide and which describe how to install and configure gerrit, and also how to import existing repositories into the system. It's not difficult to install and configure gerrit for evaluating or production for small projects, it's almost pleasant to setup.

One thing to note about newer versions of gerrit is that you will need to configure new projects with the enough temporary permissions to push a branch or tag. Apart from initially playing with the permissions for a project there's isn't really too much need to fiddle with it.

In just testing the system, I have found that doing something like this in my .git/config to be useful

[remote "review"]
url = ssh://gerrithost:29418/project
push = HEAD:refs/for/master

and using the commit-msg hook is also very useful

scp -p -P 29418 gerrithost:hooks/commit-msg .git/hooks/

or else if you have a different ssh identity for your gerrithost, you can configure ssh with the appropriate identity

Host gerrithost
User username
IdentityFile ~/.ssh/id_rsa
Port 29418

So far I've been toying with gerrit as a single user, it doesn't seem very useful projects with less than two or three developers. What I have found it useful for, it is to use it as a dumping ground for changes and a place for making notes for the changes. It's acting as a barrier for myself, protecting my projects from me. Other useful scenarios would be to use it to review code submissions from student projects. I think if I replaced and with a simple to install bug tracker like things might work a bit better.


阅读(1265) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~