gitphabricator

How to push to remote using phabricator


Phabricator provides endpoints for creating diff, editing diff, or searching revisions. But I could not find the endpoint for pushing a revision to remote repository, say origin/master. Do I have to use the basic git commands (git pull + git push) to do so?

Another related question is about arc land. What happens after arc land is called? Is it a wrapper of basic git pushing?


Solution

  • arc land does a bit more than just git push. It also fetches any parallel changes that were made in the remote and rebases and deletes your temporary branch after pushing.

    Before that, it also potentially triggers a linter and unit tests.

    After push, it also potentially triggers a CI/CD.

    Some references:

    https://we.phorge.it/book/phorge/article/arcanist/

    https://we.phorge.it/book/phorge/article/arcanist_lint/

    https://we.phorge.it/book/phorge/article/arcanist_lint_unit/