Changes between Version 9 and Version 10 of Phabricator
- Timestamp:
- Jul 16, 2019, 7:24:49 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Phabricator
v9 v10 44 44 Take a look at the [wiki:Phabricator#CommonproblemswithArcanist Common problems with Arcanist] section below if you have any trouble. 45 45 46 === Configura Arcanist === 46 47 Finally, associate arc with your credentials with our Phabricator instance by using 47 48 {{{#!sh … … 49 50 }}} 50 51 51 Two commands are important, that you can run at the root of a SVN clone (where .arcconfig is): 52 === Download a patch === 53 To download a patch from Phabricator using Arcanist, run the following command from the root of a local SVN clone (where .arcconfig is): 52 54 53 55 {{{#!sh 54 56 arc patch Dn 55 57 }}} 56 applies the revision Dn (n being an integer) to your working copy. No need to download and apply, easy to update when a contributor updates a revision with a new diff, and more... 58 59 This will apply the latest diff from a revision Dn (`n` being an integer) to your working copy. 60 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): 62 63 {{{#!sh 64 curl -L 'https://code.wildfiregames.com/D1991?download=true' > /tmp/arc.patch 65 arc patch --patch /tmp/arc.patch 66 }}} 67 68 69 === Upload a patch === 57 70 58 71 {{{#!sh … … 61 74 creates a diff from your working copy and uploads it to Phabricator. When following the given link, you will be able to create a new revision or update an existing one with the new code change. 62 75 63 Always create diffs from a clone to the public SVN. Since Phabricator tracks the public repo, if you create diffs from a clone of the commit-access one,paths won't match.76 If you're a team member with commit access, always create diffs from a clone of the public SVN. Since Phabricator tracks the public repo, if you create diffs from a clone of the commit-access one, the paths won't match. 64 77 65 78 === Manually uploading a patch ===