arcanist

What's the difference between `arc graft` and `arc patch`?

断了今生、忘了曾经 提交于 2020-05-11 06:27:09
问题 arc help --full | less reveals this for graft : graft revision Grafts revision and its dependencies (if any) onto your working tree. --force Do not run any sanity checks. --skip-landed Do not try to patch landed/closed diffs. and this for patch : patch D12345 patch --revision revision_id patch --diff diff_id patch --patch file patch --arcbundle bundlefile Supports: git, svn, hg Apply the changes in a Differential revision, patchfile, or arc bundle to the working copy. --arcbundle bundlefile

Merging a branch of a branch after first branch is squashed when merged to master

人走茶凉 提交于 2020-01-30 13:42:31
问题 Here's a workflow that I commonly deal with at work. git checkout -b feature_branch # Do some development git add . git commit git push origin feature_branch At this point the feature branch is up for review from my colleagues, but I want to keep developing on other features that are dependent on feature_branch . So while feature_branch is in review... git checkout feature_branch git checkout -b dependent_branch # Do some more development git add . git commit Now I make some changes in

Automatically running PHPUnit tests with Arcanist (Phabricator)

扶醉桌前 提交于 2020-01-02 05:38:29
问题 A "simple" question: how can I automatically run PHPunit tests with Arcanist? According to the documentation I should first load a custom library. As stated here I should create a .arcconfig file and load the appropriate library. So: I've create a dir "arc_libs" in my project and in the dir "src" I used arc liberate to generate the needed files. My config is now: { "project.name" : "arc_libs", "phabricator.uri" : "https://phabricator.xxx.xxx.net/", "unit.engine" : "PhpunitTestEngine", "load"

How do I disable “test plan” enforcement in Phabricator?

空扰寡人 提交于 2019-12-10 03:34:41
问题 arc diff rejects the commit if no test plan is specified. Is there any way to disable this feature? 回答1: Set differential.show-test-plan-field or differential.require-test-plan-field in your configuration. 来源: https://stackoverflow.com/questions/20598026/how-do-i-disable-test-plan-enforcement-in-phabricator

Automatically running PHPUnit tests with Arcanist (Phabricator)

流过昼夜 提交于 2019-12-05 13:14:00
A "simple" question: how can I automatically run PHPunit tests with Arcanist? According to the documentation I should first load a custom library. As stated here I should create a .arcconfig file and load the appropriate library. So: I've create a dir "arc_libs" in my project and in the dir "src" I used arc liberate to generate the needed files. My config is now: { "project.name" : "arc_libs", "phabricator.uri" : "https://phabricator.xxx.xxx.net/", "unit.engine" : "PhpunitTestEngine", "load" : ["arc_libs/src"] } The libary DOES get loaded because I can run arc unit [matthijs@xx xxx]$ arc unit

使用 arc diff 只对特定范围的 commit 提交 code revision

和自甴很熟 提交于 2019-11-29 02:33:38
arc diff 会合并提交一个范围内的所有 commit 为一条 revision,默认范围是 git merge-base origin/master HEAD 到 HEAD 。可以通过 arc diff <commit> 指定范围为从 git merge-base <commit> HEAD 到 HEAD 。 我们可以通过 arc which 查看 arc diff 的 commit 范围。 当我们想合并的是中间的部分 commit 的时候,可以这么做: $ git branch revision $ git checkout revision $ git reset --hard <last-commit> $ arc diff <first-commit> 当 revision 被通过,我们可以通过 arc land <branch> 来合并 branch 到 master 分支,然后 push 到远端仓库。 有其他需求,详询官方文档: https://secure.phabricator.com/book/phabricator/article/arcanist_diff/ 来源: oschina 链接: https://my.oschina.net/u/2313378/blog/768475

Arcanist 安装及使用

旧城冷巷雨未停 提交于 2019-11-27 18:26:30
Arcanist是Phabricator的命令行接口. 安装: # sudo apt-get install php5 php5-curl # ubuntu 系统 # sudo yum install php5 # centos 系统 # cd /usr/local/bin # 安装目标路径, 如目录不在PATH, 则将 export PATH=$PATH:/usr/local/bin 加入 .bashrc # git clone https://github.com/phacility/libphutil.git # git clone https://github.com/phacility/arcanist.git # ln -s arcanist/bin/arc arc # 创建软链接, 使arc命令位于PATH中 在.bashrc加入下面一行, 使arc命令可以自动补全: source /usr/local/bin/arcanist/resources/shell/bash-completion (或用 npm 安装: npm install -g arcanist , 无需配置, 参见 https://www.npmjs.com/package/arcanist ) 配置: 在git库目录创建 .arcconfig, 内容如下: { "phabricator.uri"