61 | | If you use a Git-based mirror (such as https://github.com/0ad/0ad), this may fail because Arcanist demands to find the latest SVN revision in the git-log which might not be mirrored yet. It does this slowly searching the full git history for a commit message containing `git-svn-id: @{latest-revision}`, which it will then never find. (Upstream issue: https://secure.phabricator.com/T9044). The `--force` and `--skip-dependencies` options do not prevent this issue. To workaround this, use `arc patch --patch /file/to.diff` instead, like so (the download url can be copied from the "Download Raw Diff" link in the web interface): |
| 61 | === Download a patch (Git) === |
| 62 | If you use a Git-based mirror (such as https://github.com/0ad/0ad), then using `arc diff` may fail because Arcanist demands to find the latest SVN revision in the git-log which might not be mirrored yet. Arcanist tries to searching the full git commit history for a commit message containing `git-svn-id: @{latest-revision}`, which it will then never find. (Upstream issue: https://secure.phabricator.com/T9044). The `--force` and `--skip-dependencies` options to `arc diff` do not solve this issue. |
| 63 | |
| 64 | As a workaround, you can download the diff from Phabricator Differential directly (using the "Download Raw Diff" link), and then applying it using the `patch` command. Below is a function you can use (e.g. place in `~/.bash_profile`). |