Arcanist快速开始(代码review)

安装依赖

  1. 安装php
  2. 安装git
  3. 安装Arcanist
    1
    2
    3
    4
    $ mkdir somewhere/
    $ cd somewhere/
    somewhere/ $ git clone https://github.com/phacility/libphutil.git
    somewhere/ $ git clone https://github.com/phacility/arcanist.git
      环境变量export PATH="$PATH:/somewhere/arcanist/bin/"

配置项目

  在项目工作根目录创建.arcconfig文件
{
“project_id”: “news_spider”,
“phabricator.uri” : “http://p.datahorizon.top:3721/
}

安装Arcanist凭证

  凭证允许您进行身份验证。 您必须在 Phabricator 上有一个帐户,然后才能执行此步骤。

1
2
3
$ cd yourproject/
yourproject/ $ arc install-certificate
...

发送更改以供审核

1
arc diff

  如果已经push 的代码可以arc diff commitid