The Wayback Machine - https://web.archive.org/web/20160404142602/https://www.mediawiki.org/wiki/Phabricator/Differential

Phabricator/Differential

From MediaWiki.org
Jump to: navigation, search

Differential is the code review tool in Phabricator[1]. As per discussions[2][3] with the technical community the WMF Release Engineering Team is driving the migration to Differential from Gerrit. See the #Gerrit-Migration Phabricator workboard and project to follow the progress.

Getting Started[edit]

  1. Read these recommended user guides from the upstream documentation on the two main parts of Differential code review:
    1. Differential User Guide
    2. Arcanist User Guide
  2. Read these recommended guides from upstream documentation on how code review happens and why:
    1. Writing Reviewable Code
    2. Differential Test Plans
  3. Install Arcanist, the command line tool that interfaces with Differential (instructions on linked article).
  4. Bonus points: Read this blog post from the lead developer of Phabricator about how and why Differential does code-review.
  5. Now, go contribute code!

How can I do this thing I did in Gerrit?[edit]

Firstly, not all actions that Gerrit provides will be available in Differential. This is by design. Not all code-review tools act exactly the same and design decisions are made to make the code-review tool internally consistent. Thus, please first try to understand how Differential and Arcanist are meant to be used (by reading the above links and trying things out) before asking for feature parity with Gerrit.

Take over another author's change[edit]

There is the "Commandeer Revision" action on every open diff. This will, as the name suggests, allow you to take over a change. Do this when, for example, the original author is unresponsive but you want to move the change forward.

Amend another author's change[edit]

Instead of in Gerrit:

 git-review -d 12345
 # fix the issue (typo, etc)
 git amend -a
 git-review
 # CR+2/merge

In Differential you do (still 3 commands, minus whatever fixes you make):

 # "accept" D12345 in the web interface (equiv of CR+2) then:
 arc patch D12345 # this applies D12345's change to your checkout of the repo
 # make minor change to fix typo or rebase and fix minor conflict
 git commit --amend -a
 arc land

References[edit]

  1. Upstream documentation on Differential: https://secure.phabricator.com/book/phabricator/article/differential/
  2. The Migrate code review and management to Phabricator from Gerrit RFC.
  3. Discussion at WikiDev16 - notes and follow-ups.

Navigation menu

Personal tools

Namespaces

Variants

More

In other languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.