Get the App
SLTechnology News&Howtos  ›  Servers  › 

Phabricator client working with documentation

Shulou Source: shulou.com Published: 2022-06-03 05:49:38 10月03日 Update

Arcanist is a code review aid created by phabricator. Its function is shown in Figure:

1. installation

Arcanist installation is very simple, pull two code libraries from github to the same local folder, and then configure the environment variables

git clone https://github.com/phacility/arcanist.git git clone https://github.com/phacility/libphutil.gitvim #Add the following #/Users/qinshixu/test/arcanist directory export PATH="$PATH:/Users/qinshixu/test/arcanist/bin"source /etc/profilearc help #View command help information

2. Add references to projects

cd your_project #Enter the project directory vim .arcconfig #Add the following { "phabricator.uri": "https://** */", #phabricator access address "editor": "vim"} installs certificate for project, certification arc install-certificate for phabricator API Token verification successful

3. Submit Differential

git add git commit -m "***"arc diff #Submit review request, open by vim, fill in the following information,wq save exit Test Plan: #Required, specify your test plan Reviewers: #Required, reviewer's account, multiple separated by ","; Subscribers: #Non-required subscribers, multiple use "," separated #After successful submission, reviewers can receive notifications in Differential #Reviewers modify status to Accept Revision means pass, after passing, use arc land ##Code push, default is master branch

4. command guide

Arcanist can do the following:· arc help: Get available instructions/tools wrapped in arc· arc diff: Send Differential function of code for review (see Arcanist User Guide: arc diff for more information on this directive)· arc list : Displays code information that has not been submitted for modification· arc cover: can find the author of a code modification· arc patch: adapt to a modification and work on it· arc export: Download/export a patch file via Differential arc amend: review Git update submitted information· arc commit: Submit SVN library modifications· arc land: Push changes to Git and Mercurial libraries to the server side· arc branch: You can see more information about Git branch commit

1. git checkout branch name

2.git add xx

3.git commit -m ""

4. arc diff branch name

5. arc land --onto branch name #push to branch

Tags: Branches code information projects success content functions commands multiple tools instructions files more directories related two functions variables addresses differences Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Docker Huawei Linux Redmi