今天升级了下RBTools,安装RBTools需要git、python。
安装配置
输入:
1 2 3 | |
OK,post-review已经更新好了,post-review —version发现版本已经更新到0.4.2了
然后需要配置一下,在svn项目的根目录下,建立:.reviewboardrc文件,在文件中输入:
1 2 | |
这2行分别代表你们公司的review board地址和svn仓库地址。发现0.4有个变化,原来是REPOSITORY=xxx,现在需要写成REPOSITORY_URL=xxx,否则会提示:
1 | |
要求你指定仓库地址。
使用
使用就很简单了,只需在项目目录下输入post-review即可。svn和git的使用略有区别,svn review的是uncommit的代码,git review的是本地仓库的最新更新,使用svn还是打击了我提交代码的积极性啊。
post-review还可以更新以前提交的diff,方法是用 -r 指定review number即可。具体的可以用post-review –help来查看详细信息。也可以去review board官网查看详细的说明:RBTools使用说明